# Model list

Every model, its options and its prices, as JSON. `GET /v1/models` needs no key. The price you see is the listed price. You pay the listed price; if a backup route has to finish a call it can cost more, but never more than was held on your balance when it started, and a failed run costs nothing. See [Billing](/docs/billing).

```bash cURL
curl -s "https://vidlab.ai/v1/models?kind=video"
```

```python Python
import requests

models = requests.get("https://vidlab.ai/v1/models", params={"kind": "video"}).json()["data"]
for m in models:
    print(m["id"], m["unit"], m["prices"])
```

```js JavaScript
const res = await fetch("https://vidlab.ai/v1/models?kind=video");
const { data: models } = await res.json();
for (const m of models) console.log(m.id, m.unit, m.prices);
```

| Query | Values | What it does |
| - | - | - |
| `kind` | `video`, `image`, `audio`, `lipsync`, `upscale`, `text` | Only models of that kind. |
| `maker` | A maker's name, any case | Only that maker's models, for example `maker=Google`. |
| `search` | Words | Only models whose id, name, maker or description has every word. `q` works the same. |

The answer is `{ "object": "list", "data": [ ...models ] }`. `GET /v1/models/{id}` returns one model as `{ "data": model }`, or `404 model_not_found`. A model taken out of the list answers `410 model_retired` here and on every call that names it; generations already made with it stay readable. The list is public data: answers may be cached for up to 60 seconds.

## The model object

A model's starting rate is the lowest value in `prices`, including options with a reference video. Use the variant key to see which inputs qualify for that rate.

```json
{
  "id": "seedance-2.5",
  "name": "Seedance 2.5",
  "maker": "ByteDance",
  "kind": "video",
  "unit": "per_second",
  "description": "Generates video from a prompt and up to 30 reference images, 10 reference videos and 10 reference sounds",
  "prices": {
    "480p": 0.09,
    "720p": 0.21,
    "1080p": 0.52
  },
  "params": {
    "resolution": { "values": ["480p", "720p", "1080p"] },
    "prompt": { "required": true, "max_bytes": 40000 },
    "images": { "max": 30, "file": { "types": ["image/jpeg", "image/png", "image/webp"], "mb": 20, "convert": { "image/webp": "image/png" } } },
    "image_mode": { "values": ["first_frame", "reference"] },
    "end_image": {},
    "video": {},
    "videos": { "max": 10, "file": { "types": ["video/mp4", "video/quicktime"], "mb": 100, "seconds": { "min": 2, "max": 30, "total": 30 }, "pixels": { "min": 409600, "max": 8295044 } } },
    "audio": {},
    "audios": { "max": 10, "file": { "types": ["audio/mpeg", "audio/wav"], "mb": 15, "max_bytes": 15000000, "seconds": { "min": 2, "max": 30, "total": 30 } } },
    "generate_audio": { "values": [true, false] },
    "extra": { "keys": ["video_seconds", "videos", "audios", "image_mode", "images_as", "reference"] },
    "duration": { "min": 4, "max": 30 },
    "aspect_ratio": { "values": ["16:9", "9:16", "1:1", "4:3", "3:4", "21:9", "adaptive"] }
  },
  "reference_billing": { "min_output_ratio": 1.6666667, "rounding": "floor" },
  "featured": true,
  "save_pct": 34,
  "routes": 2,
  "status": "operational"
}
```

| Field | Type | What it is |
| - | - | - |
| `id` | string | The id you send as `model`. |
| `name`, `maker` | string | Display name and the company that made the model. |
| `kind` | string | `video`, `image`, `audio`, `lipsync` or `upscale`, or `text` (called with `POST /v1/chat/completions`, see [Text models](/docs/text-models)). |
| `unit` | string | What one unit of the price is (see [Units](#units)). |
| `description` | string | Optional. A one-line summary. |
| `prices` | object | USD per unit for each priced option (see [Variants](#variants)). |
| `reference_billing` | object | Optional. How a call with a reference video is counted: at least `min_output_ratio` × the output's seconds (rounded up), and the clips' seconds with `rounding` (`floor`: any part of a second dropped). See [Billing](/docs/billing#reference-video). |
| `params` | object | The input fields this model takes (see [The params object](#the-params-object)). |
| `media` | object | Optional. Example `still` and `video` paths. |
| `featured` | boolean | Shown first on the models page. |
| `save_pct` | number | Optional. The catalogue's comparison saving, rounded down. |
| `offer` | object | Optional. A comparison for one plain setting: `variant`, `price_usd`, `market_usd` (the usual price for that setting) and `pct` (the saving, rounded down). Only models we are cheaper on have one. |
| `duration_must_cover` | array | Optional. For models whose length comes from an input file: which files (`video`, `audio`) `duration` must cover. |
| `limits` | array | Optional. Combinations of options the model does not take (see [Limits](#limits)). |
| `routes` | number | How many routes can run this model right now. |
| `status` | string | `operational`, `degraded` or `down`. |

## Limits

Each option in `params` works on its own, but a few models do not take every combination. Those are listed in `limits`, one rule each:

```json
"limits": [
  { "when": { "resolution": ["1080p"] }, "then": { "duration": [6] }, "message": "At 1080p this model makes 6-second clips only. For 10 seconds, use 768p." }
]
```

When every test in `when` holds, every test in `then` must hold. A test is a list of allowed values, or a range (`{ "min": 2 }`). `images` is tested on how many you send; `end_image`, `prompt`, `text`, `video` and `audio` on whether you send one (`true` or `false`), and a range on `prompt` or `text` on its length in characters. An option you leave out in `then` gets a value the rule allows. A call that breaks a rule is refused with `400 invalid_input` and the rule's `message`, by the estimate, the quote and the generation alike, before anything is held.

Every value in `params` and `limits` is one the model really makes: each is checked against what the services behind it take, so a call inside them is never refused for its options after it starts.

## Units

| Unit | One unit is | Counted from |
| - | - | - |
| `per_second` | one second of output | `duration` |
| `per_image` | one image | `n` (default 1) |
| `per_job` | one call | always 1 |
| `per_1k_chars` | each started 1,000 characters | `text` (or `prompt`) |
| `per_minute` | each started minute | `duration` in seconds |

The price of a call is the variant's price times the units. A 5 second clip at 720p on a model priced `0.21` per second costs `1.05`. The price is exact: a `0.015` image costs `0.015`, and the quote and the charge are that same number. Your balance moves in whole credits (cents), so any part of a cent is carried to your next charge: over any run of calls you pay exactly the sum of their prices. The reservation held while a call runs is rounded up to the next cent and released when it finishes.

## Variants

A model's `prices` are keyed by variant. A variant is the resolution or quality, then flags joined with `+`:

- `+audio` when the call asks for sound (`generate_audio: true`),
- `+video_input` when the call sends a reference `video`,
- `*` when the model has one price for everything.

VidLab picks the variant from your input: the exact key first, then the key with fewer flags, then the bare resolution or quality, then `*`. Options you leave out get the model's first allowed value, so the quote and the run always agree. If no priced variant matches, the call answers `400 variant_unavailable` with the priced options in the message.

## The params object

`params` lists every input field the model accepts. A field that is not listed is refused, never ignored (except one the model has stopped taking: see [Warnings](/docs/input-fields#warnings)). Each entry has up to five keys:

| Key | Meaning |
| - | - |
| `required` | The field must be sent. |
| `values` | The only allowed values. Matching ignores letter case. |
| `min`, `max` | Number limits. For `images`, the most images; for `videos` and `audios`, the most reference clips or sounds (counted with `video` or `audio`); for `n`, how many images per call; for `duration`, seconds; for `prompt`, `negative_prompt` and `text`, the length in characters. |
| `keys` | On `extra` only: the only keys the model takes. Any other key is refused with 400. Where `extra` is not listed, its keys are model-specific and only the ones a model knows are used. |
| `max_bytes` | On a text field: the longest value in UTF-8 bytes. |
| `file` | What each file of a list must be, where the model sets it: `types` (MIME types), `mb` (the largest file; `max_bytes` when it is set exactly), `convert` (a type that is stored as another, e.g. WEBP as PNG), `seconds` (`min` and `max` for each clip or sound, `total` for all of them together) and `pixels` (width x height of each clip). `videos` covers `video` too, `audios` covers `audio`. A file outside them fails the generation before anything is charged. |

- `{}` means the field is accepted with no limit beyond [Input fields](/docs/input-fields).
- A list of lengths (`"duration": { "values": [4, 6, 8] }`) means only those lengths run.
- `params` only lists what the model can really do: an option that no route can carry is not listed. A reference `video` (and `videos`) or `generate_audio` is listed only while its price (`+video_input`, `+audio`) is.

## Model status

`GET /v1/status` lists every model with its `status` and `routes` count. No key needed.

```json
{ "object": "list", "data": [{ "model": "seedance-2.5", "status": "operational", "routes": 2 }] }
```

A model that is `down` can still be called: the generation is accepted and fails with `model_busy` if no route can take it, at no charge.

## VidLab UGC Image 1

`ugc-image-1` is VidLab's own image model, made for realistic phone-shot UGC people: the kind of picture a creator would take on a phone. Its prices are on its [model page](/models/ugc-image-1), next to real examples of what it makes. A call makes one image, in one job, and `POST /v1/estimate` gives its price before anything runs.

It works three ways:

| Way | What you send | Price |
| - | - | - |
| From words | `prompt` (up to 2,000 characters) and, for another shape, `aspect_ratio` (`9:16` by default) | $0.09 an image |
| With your pictures | the same, plus `images`: up to 15 pictures of a person, a product or anything else to put in the photo | $0.09 an image |
| Edit your photo | `images` with your own photo first (then up to 15 references), `extra.mode: "edit"`, and `prompt` saying what to change | $0.09 an image |

Describe the photo you want in plain words (who, where, what they do, the mood): a few words are enough. Your words are written out into a detailed description of a real phone photo, the photo is made from it, and every image is finished as a sharp 4K picture. With your pictures, the model looks at them, makes a new realistic photo from your words and then puts the person and the things from your pictures into it. Say which picture is which with `extra.image_roles`, one entry per picture in the same order: `person`, `product` or `reference` (with no roles, every picture is a reference). Editing changes your own photo the way `prompt` says and keeps everything else in it; no new photo is made first.

Every way is one price, $0.09 an image, however many pictures you send. The estimate is held, and you are charged once when the image is ready; a failed or blocked call is not charged. Pictures are JPEG, PNG or WEBP, up to 20 MB each. A field the model does not list (`n`, `resolution`, `seed`) is refused with `400 invalid_input` before anything is held, and so are more pictures than a way takes, roles that do not match the pictures, and an edit with no photo.

```bash cURL
curl -s -X POST https://vidlab.ai/v1/generations \
  -H "Authorization: Bearer $VIDLAB_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"model":"ugc-image-1","input":{"prompt":"a woman in her kitchen, talking to the camera"}}'
```

With a person and a product:

```bash cURL
curl -s -X POST https://vidlab.ai/v1/generations \
  -H "Authorization: Bearer $VIDLAB_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"model":"ugc-image-1","input":{"prompt":"she holds the serum up beside her cheek in a bright bathroom","images":["https://example.com/me.jpg","https://example.com/serum.png"],"extra":{"image_roles":["person","product"]}}}'
```

Editing your own photo:

```bash cURL
curl -s -X POST https://vidlab.ai/v1/generations \
  -H "Authorization: Bearer $VIDLAB_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"model":"ugc-image-1","input":{"prompt":"make her shirt red","images":["https://example.com/my-photo.jpg"],"extra":{"mode":"edit"}}}'
```

Poll the generation as for any other model. A finished call has one picture in `outputs`.

## VidLab 1.5

`vidlab-video-flash` makes a 10-second clip in portrait or landscape. Use `prompt` to describe a scene. Send one image in `images` to use it as the start frame. For the Talking Video preset, use `text` for the exact words the presenter should say and optionally add `audio` with any playable audio or video file as the voice reference. Set `aspect_ratio` to `9:16` for portrait or `16:9` for landscape. The start frame is fitted to that shape when needed.

It is priced per delivered second: `GET /v1/models/vidlab-video-flash` lists the price. Send the same input to `POST /v1/estimate` before starting. If an eligible backup route costs more, the estimate includes `up_to_usd` and `price_note`.

| Field | Required | What to send |
| - | - | - |
| `prompt` | Yes for Text to Video or Image to Video | Describe the scene in up to 2,000 characters. |
| `images` | No | One start frame, JPEG, PNG or WEBP up to 20 MB. |
| `audio` | No | Talking Video voice reference, up to 200 MB. Any playable audio or video file with sound (MP3, WAV, M4A, AAC, OGG, FLAC, MP4, MOV, WEBM, MKV, AVI, etc.) is accepted and converted into a clean voice sample on our backend. |
| `text` | Talking Video | The spoken script, up to 10 seconds of speech (about 25 words). |
| `aspect_ratio` | No | `9:16` (default) or `16:9`. |

The video comes back as one file in `outputs`. Existing model IDs and aliases continue to work.

```bash cURL
curl -s -X POST https://vidlab.ai/v1/generations \
  -H "Authorization: Bearer $VIDLAB_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"model":"vidlab-video-flash","input":{"prompt":"A slow camera push toward a cup by the window.","images":["https://example.com/start.jpg"],"aspect_ratio":"16:9"}}'
```

For the Talking Video preset, send `text` instead of `prompt`. Add `audio` to use a voice reference. Scripts longer than 10 seconds are refused before anything is held.

```bash cURL
curl -s -X POST https://vidlab.ai/v1/generations \
  -H "Authorization: Bearer $VIDLAB_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"model":"vidlab-video-flash","input":{"images":["https://example.com/me.jpg"],"audio":"https://example.com/my-voice.m4a","text":"I tried every serum out there and nothing worked. Then my sister made me try this one."}}'
```

With the script only (we make the start frame and pick the voice):

```bash cURL
curl -s -X POST https://vidlab.ai/v1/generations \
  -H "Authorization: Bearer $VIDLAB_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"model":"vidlab-video-flash","input":{"text":"I tried every serum out there and nothing worked. Then my sister made me try this one."}}'
```

Your voice stays yours. The recording and the sample made from it are used for this one video only, never shown back in any answer, and deleted as soon as the generation ends, whether it succeeded or not. `DELETE /v1/generations/{id}/voice` deletes them at once (and the file you uploaded for it with `POST /v1/uploads`); a generation still running is stopped and not charged.

Some words are refused before anything is held: a script that asks the speaker what it is or who made it, or that names other AI models, gets `400 invalid_input`. A video whose speech goes off script in that way is not delivered and not charged.

## VidLab Audio 1

`vidlab-audio-1` is VidLab's own speech model. You write one `prompt` (up to 2,048 plain letters, or about 680 Chinese or Japanese characters; a longer one gets `400 invalid_input` before anything is held): describe the voice and how it should sound, then the exact words to say. Ask for a room, sound effects or music in the same prompt and they are made with the voice. It gives one audio file.

There are three ways to call it:

| You send | What you get |
|---|---|
| `prompt` | A voice made from your description, saying your words. |
| `prompt` + `audios` (1 to 3) | The voice and feeling of your reference sounds. Name them in the prompt in order as `@Audio1`, `@Audio2`, `@Audio3`. Each MP3 or WAV, up to 30 seconds and 10 MB. |
| `prompt` + `images` (1) | A voice made for the character in your picture. JPEG, PNG or WEBP, up to 10 MB. |

Reference sounds and a picture cannot go in the same call: that gets `400 invalid_input` before anything is held.

Optional settings go in `extra`, all whole numbers: `speed` (-50 to 100; 100 is twice as fast, -50 half), `volume` (-50 to 100; 100 is twice as loud), `pitch` (-12 to 12). `extra.output_format` is `mp3` (the default), `wav`, `flac` or `ogg`.

```bash
curl https://vidlab.ai/v1/generations \
  -H "Authorization: Bearer $VIDLAB_API_KEY" -H "Content-Type: application/json" \
  -d '{"model":"vidlab-audio-1","input":{"prompt":"A warm, calm woman in her thirties, close to the microphone, quiet room. She says: \"I tried every serum out there and nothing worked. Then my sister made me try this one.\""}}'
```

With your own voice as the reference, a little faster:

```bash
curl https://vidlab.ai/v1/generations \
  -H "Authorization: Bearer $VIDLAB_API_KEY" -H "Content-Type: application/json" \
  -d '{"model":"vidlab-audio-1","input":{"prompt":"Use the voice of @Audio1, relaxed and friendly. Say: \"Okay, so this is the one I keep coming back to.\"","audios":["https://example.com/my-voice.mp3"],"extra":{"speed":10}}}'
```

You pay per second of the audio it makes. The model picks the length from your words, so `POST /v1/estimate` gives the most a call can cost (`output_seconds.max` seconds, 300); that much is held, and you are charged only for the seconds the model made, rounded up: a 10-second line pays for 10 seconds. With a `speed` above 0 that is the length before the speed-up, so a faster read costs a little more per second you hear. A failed call is not charged.

## MiniMax Speech 2.8

`minimax-speech-2.8` reads your `text` (up to 10,000 characters) in a voice you pick, with the delivery you set. It comes in two tiers, `quality`: `hd` (the default) and `turbo` (faster and cheaper).

There are two ways to choose the voice:

| You send | What you get |
|---|---|
| `text` + `voice` | One of the model's own voices, such as `English_expressive_narrator` (the default when you send none). `GET /v1/models` lists them all under `params.voice.values`. |
| `text` + `audio` | The voice of your recording: MP3, WAV or M4A, 10 seconds to 5 minutes, up to 20 MB, one speaker. |

A `voice` and a recording cannot go in the same call.

Settings go in `extra`: `emotion` (`auto`, `calm`, `happy`, `sad`, `angry`, `fearful`, `disgusted`, `surprised`), `speed` (0.5 to 2), `pitch` (a whole number, -12 to 12), `volume` (0.1 to 10), `language` (a language name, such as `English`, when the text's language is not clear), and `output_format` (`mp3`, the default, `wav` or `flac`). In the text itself, write a sound in brackets where it should happen, such as `(laughs)`, `(sighs)` or `(breath)`, and `<#0.5#>` for a pause of half a second.

```bash
curl https://vidlab.ai/v1/generations \
  -H "Authorization: Bearer $VIDLAB_API_KEY" -H "Content-Type: application/json" \
  -d '{"model":"minimax-speech-2.8","input":{"text":"I finally found a bottle that keeps my drinks cold all day (laughs) <#0.4#> honestly, I love it.","voice":"English_radiant_girl","extra":{"emotion":"happy","speed":1.1}}}'
```

In your own voice:

```bash
curl https://vidlab.ai/v1/generations \
  -H "Authorization: Bearer $VIDLAB_API_KEY" -H "Content-Type: application/json" \
  -d '{"model":"minimax-speech-2.8","input":{"text":"Okay, so this is the one I keep coming back to.","audio":"https://example.com/my-voice.mp3","extra":{"emotion":"calm"}}}'
```

**What it costs.** You pay for the characters you send, at the model's price per 1,000 characters for its tier (`GET /v1/models`). A Chinese, Japanese or Korean character counts as two. `POST /v1/estimate` gives the most a call can cost: each started 1,000 characters, counted the same way, is held, and you are charged only for the characters sent.

**A voice from a recording is made once.** The first time you send a recording, a voice is made from it and the model's new-voice fee (`voice_fee_usd` on `GET /v1/models`) is added to that call, once. It is saved to your account: send the same recording again, from any link, and you pay for the words alone. A voice not used for 7 days is dropped by the provider; the next call with that recording makes it again, with the fee. The fee is in the estimate and the hold of every call that carries a recording, and is charged only when the voice is new. A call that fails is never charged for it.


## Suno V6

`suno-v6` makes a song. Each call gives two takes of the song (two audio files in `outputs`) for one price, whatever their length. There are two ways to call it:

| You send | What you get |
|---|---|
| `prompt` | A song from your idea, up to 3,000 characters: the mood, the style, what it is about. The model writes the lyrics. |
| `prompt` + `text` | A song that sings your own lyrics. `text` is the lyrics, up to 5,000 characters, with section marks such as `[Verse]` and `[Chorus]`; `prompt` is the style ("bright pop, female vocal"). |

```bash
curl https://vidlab.ai/v1/generations \
  -H "Authorization: Bearer $VIDLAB_API_KEY" -H "Content-Type: application/json" \
  -d '{"model":"suno-v6","input":{"prompt":"bright pop, female vocal","text":"[Verse]\nCold all day, cold all day\nMy bottle keeps it cold all day\n[End]"}}'
```

A song takes a few minutes. A failed call is not charged.

## Seedance 2.5 Boost

`seedance-2.5-boost` is Seedance 2.5, rendered and enhanced to 1080p by VidLab, at about half the price of native 1080p. It takes the input of `seedance-2.5` (a `prompt`, up to 30 `images` as a first frame or references with `image_mode`, an `end_image`, reference videos and sounds, `generate_audio`, `aspect_ratio` from `9:16` to `16:9`) with two differences: `duration` is required (4 to 30 seconds), and there is no `21:9`. It gives one video with its sound.

| `resolution` | Price |
| - | - |
| `1080p` | $0.27 a second |

It is offered at 1080p only: any other `resolution` gets `400 invalid_input` before anything is held. A 10-second video costs $2.70. `POST /v1/estimate` gives the price before anything runs; that much is held, and you are charged once when the video is ready. A failed call is not charged. With a reference video the call is billed per second of the video plus the reference's seconds, as on `seedance-2.5`, at the price `GET /v1/models/seedance-2.5-boost` lists for it.

```bash cURL
curl -s -X POST https://vidlab.ai/v1/generations \
  -H "Authorization: Bearer $VIDLAB_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"model":"seedance-2.5-boost","input":{"prompt":"A golden retriever runs along a sunny beach toward the camera","resolution":"1080p","duration":10,"aspect_ratio":"16:9"}}'
```

## Vidra 3.0

`vidra-3.0` is VidLab's own video model: 4 to 30 seconds, from 480p up to 4K, with sound made together with the picture. It takes a `prompt` on every call, and there are three ways to call it:

| You send | What you get |
|---|---|
| `prompt` | A video from your words. |
| `prompt` + `images` (1) and an optional `end_image` | A video that starts on your picture and, with `end_image`, ends on the second one. |
| `prompt` + references: `images` (up to 30, with `image_mode: "reference"` when you send only one), `videos` (up to 10) and `audios` (up to 10) | A video that follows your references: a person, a product, a camera move, a voice. |

A first and last frame cannot go in the same call as reference videos or sounds, and a reference sound needs a reference picture or video with it: both get `400 invalid_input` before anything is held. Each reference video and sound is 2 to 15 seconds, 30 seconds together.

`resolution` is `480p`, `720p`, `1080p`, `2k` or `4k`. `duration` is a whole number from 4 to 30. `aspect_ratio` is `16:9`, `9:16`, `1:1`, `4:3`, `3:4`, `21:9` or `adaptive` (the model or your pictures decide). `generate_audio` turns the sound on or off, and `seed` repeats a result.

```bash cURL
curl -s -X POST https://vidlab.ai/v1/generations \
  -H "Authorization: Bearer $VIDLAB_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"model":"vidra-3.0","input":{"prompt":"A golden retriever runs along a sunny beach toward the camera, waves breaking behind it","resolution":"1080p","duration":8,"aspect_ratio":"16:9","generate_audio":true}}'
```

You pay per second of the video you ask for, at the price of its `resolution` (`GET /v1/models/vidra-3.0` lists each one). `POST /v1/estimate` gives the price before anything runs; that much is held, and you are charged once when the video is ready. A failed call is not charged. With a reference video the call has its own price per second (the `+video_input` prices) and is billed on the video's seconds plus the reference's seconds, as on `seedance-2.5`.

## Seedream 5.5

`seedream-5.5` is ByteDance's Seedream 5.5, an image model for cartoons, animation and 3D-animated characters: mascots, stickers, storybook scenes, frames for an animation ad. It is also the model to change a picture you already have: send the picture and say what to change. For realistic phone photos of people, use `ugc-image-1` instead. It takes a `prompt` on every call and makes one image per call, and there are two ways to call it:

| You send | What you get |
|---|---|
| `prompt` | An image from your words. |
| `prompt` + `images` (1 to 10) | Your picture changed or redrawn the way `prompt` says, or several pictures put together into one image. |

`resolution` is `1k`, `1.5k` or `2k`. `aspect_ratio` is `1:1`, `4:3`, `3:4`, `16:9`, `9:16`, `3:2`, `2:3`, `21:9`, `2:1` or `1:2`; leave it out and an image from words alone is `1:1`; with pictures, the model picks the shape (from your pictures and your words). `n` is 1: for several images, make several calls. More than 10 pictures, or anything else it does not take, gets `400 invalid_input` before anything is held.

```bash cURL
curl -s -X POST https://vidlab.ai/v1/generations \
  -H "Authorization: Bearer $VIDLAB_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"model":"seedream-5.5","input":{"prompt":"A cheerful 3D-animated fox mascot in a blue hoodie waving, soft studio light, plain background","resolution":"2k","aspect_ratio":"1:1"}}'
```

To edit or restyle a picture, add it as `images`:

```bash cURL
curl -s -X POST https://vidlab.ai/v1/generations \
  -H "Authorization: Bearer $VIDLAB_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"model":"seedream-5.5","input":{"prompt":"Redraw this photo as a hand-drawn cartoon and change the background to a beach at sunset","images":["https://example.com/photo.jpg"],"resolution":"1k"}}'
```

You pay per image, at the price of its `resolution`, plus a small price for each picture you send (`GET /v1/models/seedream-5.5` lists both, as `prices` and `picture_prices`). `POST /v1/estimate` gives the price before anything runs; that much is held, and you are charged once when the image is ready. A failed call is not charged.

## VidLab 2

`vidlab-video-2` is VidLab 2, VidLab's own fast video model: 5 to 15 seconds at 720p or 1080p, with sound made together with the picture. It takes a `prompt` on every call, and there are two ways to call it:

| You send | What you get |
|---|---|
| `prompt` | A video from your words. |
| `prompt` + `images` (1) and an optional `end_image` | A video that starts on your picture and, with `end_image`, ends on the second one. |

It takes no reference videos or sounds and one start picture at most: anything else gets `400 invalid_input` before anything is held.

`resolution` is `720p` or `1080p`. `duration` is a whole number from 5 to 15. `aspect_ratio` is `16:9`, `9:16`, `1:1`, `4:3`, `3:4`, `21:9` or `adaptive` (16:9 from words, the picture's own shape from a picture). `generate_audio` turns the sound on or off, and `seed` repeats a result.

```bash cURL
curl -s -X POST https://vidlab.ai/v1/generations \
  -H "Authorization: Bearer $VIDLAB_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"model":"vidlab-video-2","input":{"prompt":"A baker slides a tray of bread out of a brick oven and sets it on a wooden counter, steam rising, the kitchen humming around her","resolution":"720p","duration":8,"aspect_ratio":"16:9"}}'
```

You pay per second of the video you ask for, at the price of its `resolution` (`GET /v1/models/vidlab-video-2` lists both). While a promotional price runs, the same answer also carries `list_prices` (the price each resolution goes back to) and `discount_ends_at` (when), and `prices` is what you are charged now. `POST /v1/estimate` gives the price before anything runs; that much is held, and you are charged once when the video is ready. A failed call is not charged.

## Seedance 2.5 Flash

`seedance-2.5-flash` is ByteDance's Seedance 2.5 Flash: Seedance 2.5's way of making a video at a lower price per second, at 480p or 720p, 4 to 30 seconds, with sound made together with the picture. It takes a `prompt` on every call, and there are three ways to call it:

| You send | What you get |
|---|---|
| `prompt` | A video from your words. |
| `prompt` + `images` (1) and an optional `end_image` | A video that starts on your picture and, with `end_image`, ends on the second one. |
| `prompt` + references: `images` (up to 10, with `image_mode: "reference"` when you send only one), `videos` (up to 5) and `audios` (up to 5) | A video that follows your references: a person, a product, a camera move, a voice. A sound alone is taken. |

A first and last frame cannot go in the same call as references: that gets `400 invalid_input` before anything is held. Each reference video and sound is 2 to 30 seconds, 30 seconds together. It does not edit or extend a video, and takes no `seed`.

`resolution` is `480p` or `720p`. `duration` is a whole number from 4 to 30. `aspect_ratio` is `16:9`, `9:16`, `1:1`, `4:3`, `3:4`, `21:9` or `adaptive` (with a first frame the video follows the picture's shape). `generate_audio` turns the sound on or off.

```bash cURL
curl -s -X POST https://vidlab.ai/v1/generations \
  -H "Authorization: Bearer $VIDLAB_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"model":"seedance-2.5-flash","input":{"prompt":"A golden retriever runs along a sunny beach toward the camera, waves breaking behind it","resolution":"720p","duration":5,"aspect_ratio":"16:9"}}'
```

You pay per second of the video you ask for, at the price of its `resolution` (`GET /v1/models/seedance-2.5-flash` lists each one). `POST /v1/estimate` gives the price before anything runs; that much is held, and you are charged once when the video is ready. A failed call is not charged. With a reference video the call has its own price per second (the `+video_input` prices) and is billed on the video's seconds plus the reference's seconds, at least 5/3 of the video's seconds, as on `seedance-2.5`.
