> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Video Config • Rust AI Agent SDK

> VideoConfig: Configuration for video generation settings.

# VideoConfig

> Defined in the [**agents**](../modules/agents) module.

<Badge color="orange">Rust AI Agent SDK</Badge>

Configuration for video generation settings.

## Fields

| Name            | Type                   | Description                                     |
| --------------- | ---------------------- | ----------------------------------------------- |
| `seconds`       | `String`               | Video duration in seconds                       |
| `size`          | `Option&lt;String&gt;` | Video dimensions (e.g., "720x1280", "1280x720") |
| `timeout`       | `u32`                  | Timeout in seconds                              |
| `poll_interval` | `u32`                  | Poll interval for status checks                 |
| `max_wait_time` | `u32`                  | Maximum wait time                               |
| `api_base`      | `Option&lt;String&gt;` | API base URL                                    |
| `api_key`       | `Option&lt;String&gt;` | API key                                         |

## Methods

### `new`

```rust theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
fn new() -> Self
```

Create a new VideoConfig

### `seconds`

```rust theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
fn seconds(mut self, seconds: impl Into<String>) -> Self
```

Set the duration

**Parameters:**

| Name      | Type                      |
| --------- | ------------------------- |
| `seconds` | `impl Into&lt;String&gt;` |

### `size`

```rust theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
fn size(mut self, size: impl Into<String>) -> Self
```

Set the size

**Parameters:**

| Name   | Type                      |
| ------ | ------------------------- |
| `size` | `impl Into&lt;String&gt;` |

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-rust/praisonai/src/agents/mod.rs#L393">
  `praisonai/src/agents/mod.rs` at line 393
</Card>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Rust Configuration" icon="gear" href="/docs/rust/configuration" />

  <Card title="Rust Installation" icon="download" href="/docs/rust/installation" />

  <Card title="Rust Video" icon="video" href="/docs/rust/video" />
</CardGroup>
