# Options · media

Canonical URL: https://developers.iagenify.com/sdk/ref/agents/options/media/
Language: en

`media: { image, video, voice, music }`

Defaults for the four generators. They are defaults, not instructions: they apply only where the model said nothing.

Status: defaults, not rules · an unknown key is refused · the model still wins

```javascript
api.agents.create({
  runtime: "local", machine: pc, model,
  media: {
    image: { resolution: "2K", aspect: "16:9" },
    video: { model: "veo-3.1-lite", duration: 4, resolution: "720p" },
    voice: { voice: "Kore" },
    music: { duration: 30, style: "lo-fi" },
  },
});
```

## The four keys {#keys}

| Key | Tool | Settings |
| --- | --- | --- |
| `image` | `create_image` | `model` · `resolution` · `aspect` · `avoid` |
| `video` | `create_video` | `model` · `duration` · `resolution` · `audio` · `aspect` |
| `voice` | `create_voice` | `voice` |
| `music` | `create_music` | `duration` · `tempo` · `style` |

The key is the tool's short name — `create_video` is `video`. Anything else is refused at creation with `invalid_media` naming the four.

> **An unknown key is refused rather than ignored**
>
> A misspelled setting that does nothing is exactly what you do not want from a configuration panel: it looks applied and is not. Failing at creation is the only way to find out.

## The model's choice wins {#defaults}

A default applies where the model said nothing. « Make it portrait » in the conversation beats an `aspect` set here — which is what makes this a panel of defaults rather than a set of constraints.

## A default goes through the same guards {#guards}

The merged arguments are what is checked, so a default the chosen model cannot honour — audio on a model that has none — is caught before the call rather than failing at the provider with the credit already taken.

## They change what a run costs {#cost}

> **Resolution and duration are the price**
>
> An image default of 4K is 38 credits a picture instead of 17 at 1K. A video default of 8 seconds at the top model with sound is hundreds. Set these together with a budget.

- [create_image](/sdk/agent/tools/create-image): The parameters these default.
- [create_video](/sdk/agent/tools/create-video): And the expensive one.
- [budget](/sdk/ref/agents/options/budget): The ceiling to pair them with.

```python
from iagenify import MEDIA_OPTIONS

# The Python engine has no media option: the model passes these in each
# create_image / create_video / create_voice / create_music call.
MEDIA_OPTIONS["image"]["params"]   # resolution, aspect, …
MEDIA_OPTIONS["video"]["model"]    # the default video model

agent = api.agents.create(
    runtime="local", machine=pc, model=model,
    system="Images in 2K at 16:9; videos with veo-3.1-lite, 4 seconds at 720p; voice Kore; music 30 s lo-fi.",
)
```
