# Videos: create, update, review

> Create, update, delete, preview, traffic light, estimate, report, from document.

Source: https://flow-marketing.org/en/help/api-videos · Question: How do I create and update videos through the API?

A video is a document made of template, fields and brand. Creating it returns a checked draft with a preview at once – free. Only the render is billed in live mode.

This page describes every field of POST /videos, the answer, the status values, updating with PATCH, deleting, the estimate, plan and report, and the video from a document.

## Lifecycle and status {#status}

A video goes through these statuses. A new render sets it to `queued`, every PATCH back to `draft`.

| Status | Meaning |
| --- | --- |
| `draft` | draft with preview and quality traffic light – free |
| `queued` | render accepted, waiting to start |
| `rendering` | being built, including automatic repairs |
| `checking` | the finished files are being checked |
| `ready` | done; the files are on the latest render |
| `failed` | not green even after repairs; see `error` and `free_rebuild_available` |
| `canceled` | render canceled |

> **Note:** The status `filling` from the OpenAPI description does not occur: a `brief` is filled during `POST /videos`, and the answer comes afterwards.

## Create a video: POST /videos {#anlegen}

Answer 201 with the video object. Invalid or unknown fields return 422 `validation_failed` with `errors[]`; nothing is created then. At most 500 new videos per 24 hours and account (429 `daily_preview_limit`). Scope: `videos:write`.

| Field | Type | Meaning |
| --- | --- | --- |
| `template` | string, required | id of a template (`GET /templates`) |
| `fields` | object | fields per `fields_schema`. Exactly one of `fields` or `brief`. |
| `brief` | string, up to 2,000 characters | free text; the AI fills the fields from it |
| `language` | `de` or `en` | default `de` |
| `style` | string | `s08`, `s13` or `s01`; default is the template’s `default_style` |
| `formats` | list | from `16x9`, `9x16`, `1x1`; default `["16x9", "9x16"]` (`16:9` is read as `16x9`) |
| `voice` | string or null | video voice, default `klar-w`; `null` = no voice-over |
| `brand` | object | brand for this video (see below) |
| `narration` | object | your own spoken sentence per scene `key`, up to 300 characters |
| `metadata` | object | up to 20 pairs of your own; keys up to 40 characters (A–Z, a–z, 0–9, `_`, `.`, `-`), values text up to 500 characters |
| `end_user` | string, up to 120 | your id of the end customer; ends up in `metadata.end_user` |
| `captions` | list of `de`, `en` | validated, but does not control the captions yet |
| `render` | boolean | `true` starts the render at once |
| `max_price_cents` | integer ≥ 0 | ceiling for this render (402 `price_above_max`) |

**curl**

```bash
curl -X POST https://flow-marketing.org/api/turbo/v1/videos \
  -H "Authorization: Bearer $FLOW_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "template": "release-notes",
    "language": "en",
    "style": "s13",
    "formats": ["16x9", "9x16"],
    "voice": "klar-m",
    "fields": {
      "produkt": "Musterwerk",
      "version": "4.2",
      "neu": ["Receipts by photo", "Export to DATEV", "Dark mode"],
      "cta": "Update now"
    },
    "brand": {
      "name": "Musterwerk",
      "website": "musterwerk.example",
      "colors": { "primary": "#1A1A2E", "accent": "#00B4FF" },
      "logo": "upl_4dF6gH8jK0lZ2xC4vB6n"
    },
    "metadata": { "customer_id": "c_1042", "campaign": "release-4-2" },
    "end_user": "kunde-1042",
    "render": false
  }'
```

**JavaScript**

```js
import { randomUUID } from 'node:crypto'

const res = await fetch('https://flow-marketing.org/api/turbo/v1/videos', {
  method: 'POST',
  headers: {
    Authorization: 'Bearer ' + process.env.FLOW_API_KEY,
    'Content-Type': 'application/json',
    'Idempotency-Key': randomUUID(),
  },
  body: JSON.stringify({
    template: 'release-notes',
    language: 'en',
    style: 's13',
    formats: ['16x9', '9x16'],
    voice: 'klar-m',
    fields: { produkt: 'Musterwerk', version: '4.2', neu: ['Receipts by photo', 'Export to DATEV', 'Dark mode'], cta: 'Update now' },
    brand: { name: 'Musterwerk', website: 'musterwerk.example', colors: { primary: '#1A1A2E', accent: '#00B4FF' }, logo: 'upl_4dF6gH8jK0lZ2xC4vB6n' },
    metadata: { customer_id: 'c_1042', campaign: 'release-4-2' },
    end_user: 'kunde-1042',
    render: false,
  }),
})
const video = await res.json()
if (!res.ok) console.error(video.code, video.errors)
```

**Python**

```python
import os, uuid, requests

r = requests.post(
    "https://flow-marketing.org/api/turbo/v1/videos",
    headers={"Authorization": "Bearer " + os.environ["FLOW_API_KEY"], "Idempotency-Key": str(uuid.uuid4())},
    json={
        "template": "release-notes",
        "language": "en",
        "style": "s13",
        "formats": ["16x9", "9x16"],
        "voice": "klar-m",
        "fields": {"produkt": "Musterwerk", "version": "4.2", "neu": ["Receipts by photo", "Export to DATEV", "Dark mode"], "cta": "Update now"},
        "brand": {"name": "Musterwerk", "website": "musterwerk.example", "colors": {"primary": "#1A1A2E", "accent": "#00B4FF"}, "logo": "upl_4dF6gH8jK0lZ2xC4vB6n"},
        "metadata": {"customer_id": "c_1042", "campaign": "release-4-2"},
        "end_user": "kunde-1042",
        "render": False,
    },
    timeout=60,
)
video = r.json()
if not r.ok:
    print(video["code"], video.get("errors"))
```

> **Warning:** Not available yet: `brand_id`, `project_id`, `assets`, `webhook_url` and `ai_disclosure`. The API answers them with 422 and the field code `not_allowed` (“planned but not available yet”).

## Brand in the video: brand {#marke}

Without `brand` the video gets a neutral look. By sending it you confirm that you hold the rights to the brand material (API terms). The answer shows `brand` with `name`, `colors` and `website`.

| Field | Meaning |
| --- | --- |
| `name` | brand name, up to 120 characters |
| `website` | web address like `example.com`; shown on the end card and helps the AI with `brief` |
| `colors.primary`, `colors.accent`, `colors.background`, `colors.text` | colours as `#RRGGBB` |
| `logo` | logo for light backgrounds: id of a finished upload (`upl_…`, kind `logo` or `image`) |
| `logo_dark` | logo for dark backgrounds, same rules |

> **Note:** The website is not read automatically – you pass logo and colours yourself. Other keys in `brand` (such as `url_text`) are ignored.

## With brief instead of fields {#brief}

Send `brief` instead of `fields` and the AI fills the fields. The text counts as content, never as instructions. The answer shows `filled_by: "ai"` and the written `fields` – read them before you render.

Limits: at most 2,000 characters and 300 AI fills per 24 hours and account (429 `daily_ai_limit`). If the AI cannot build valid fields: 502 `fill_failed`. If it is briefly unreachable: 503 `ai_unavailable` with `Retry-After: 30`. Content against the usage rules: 422 `content_rejected`. In every case nothing is created or charged.

Requests with `brief` (and with `"render": true`) count as expensive calls for rate limiting.

**curl**

```bash
curl -X POST https://flow-marketing.org/api/turbo/v1/videos \
  -H "Authorization: Bearer $FLOW_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "template": "stellenanzeige",
    "brief": "Bäckerei Muster in Leipzig sucht ab sofort eine Verkäuferin oder einen Verkäufer in Teilzeit, Frühschicht, faire Bezahlung.",
    "brand": { "name": "Bäckerei Muster", "website": "baeckerei-muster.example" }
  }'
```

**JavaScript**

```js
const res = await fetch('https://flow-marketing.org/api/turbo/v1/videos', {
  method: 'POST',
  headers: { Authorization: 'Bearer ' + process.env.FLOW_API_KEY, 'Content-Type': 'application/json' },
  body: JSON.stringify({
    template: 'stellenanzeige',
    brief: 'Bäckerei Muster in Leipzig sucht ab sofort eine Verkäuferin oder einen Verkäufer in Teilzeit, Frühschicht, faire Bezahlung.',
    brand: { name: 'Bäckerei Muster', website: 'baeckerei-muster.example' },
  }),
})
const video = await res.json()
console.log(video.filled_by, video.fields) // filled_by: 'ai'
```

**Python**

```python
import os, requests

r = requests.post(
    "https://flow-marketing.org/api/turbo/v1/videos",
    headers={"Authorization": "Bearer " + os.environ["FLOW_API_KEY"]},
    json={
        "template": "stellenanzeige",
        "brief": "Bäckerei Muster in Leipzig sucht ab sofort eine Verkäuferin oder einen Verkäufer in Teilzeit, Frühschicht, faire Bezahlung.",
        "brand": {"name": "Bäckerei Muster", "website": "baeckerei-muster.example"},
    },
    timeout=90,
)
video = r.json()
print(video["filled_by"], video["fields"])  # filled_by: "ai"
```

## The video object {#video-objekt}

| Field | Meaning |
| --- | --- |
| `id` | `vid_` plus 20 characters |
| `mode` | `test` or `live` |
| `status` | see “Lifecycle and status” |
| `revision` | starts at 1, counts up with every PATCH |
| `template`, `template_version`, `style`, `language`, `formats`, `voice` | as created |
| `duration_s` | length in seconds according to the plan |
| `fields`, `narration` | fields and spoken sentences per scene |
| `filled_by` | `you` or `ai` |
| `brand`, `metadata` | as created |
| `preview_url` | signed preview player: valid 7 days, free, with watermark |
| `quality` | quality traffic light before the render |
| `estimate` | price of this video (same shape as `POST /estimates`) |
| `latest_render` | latest render or `null` |
| `corrections_left` | when `ready`: included correction left (0 or 1), otherwise `null` |
| `free_rebuild_available` | `true` when a paid render stayed red – then one free rebuild |
| `error` | `{ "code", "charged" }` or `null` |
| `links` | `self`, `plan`, `report`, `render` |
| `created_at`, `updated_at` | timestamp (ISO 8601, UTC) |

**Response 201 (shortened)**

```json
{
  "id": "vid_7Hq2LmN0pQrS3tUv4WxY",
  "object": "video",
  "mode": "test",
  "status": "draft",
  "revision": 1,
  "template": "produkt-launch",
  "template_version": "1.0.0",
  "style": "s08",
  "language": "de",
  "formats": ["16x9"],
  "voice": "klar-w",
  "duration_s": 24.6,
  "fields": { "produkt": "Musterwerk Plan", "hook": "Schichtplan per Zuruf?" },
  "filled_by": "you",
  "narration": { "hook": "Schichtplan per Zuruf?" },
  "brand": null,
  "metadata": {},
  "preview_url": "https://flow-marketing.org/v/eyJ6Ijoi...",
  "quality": {
    "overall": "green",
    "checks": [
      { "id": "reading_time", "status": "green", "value": 2.1, "limit": 3, "unit": "words_per_s", "message": "..." }
    ]
  },
  "estimate": {
    "object": "estimate",
    "price_cents": 0,
    "price_gross_cents": 0,
    "currency": "eur",
    "billable_seconds": 25,
    "duration_s": 24.6,
    "unit_price_eur_per_second": "0",
    "pricing_available": true,
    "pricing_beta": true,
    "binding": true,
    "ready_in_s": [70, 180]
  },
  "latest_render": null,
  "corrections_left": null,
  "free_rebuild_available": false,
  "error": null,
  "links": {
    "self": "https://flow-marketing.org/api/turbo/v1/videos/vid_7Hq2LmN0pQrS3tUv4WxY",
    "plan": "https://flow-marketing.org/api/turbo/v1/videos/vid_7Hq2LmN0pQrS3tUv4WxY/plan",
    "report": "https://flow-marketing.org/api/turbo/v1/videos/vid_7Hq2LmN0pQrS3tUv4WxY/report",
    "render": "https://flow-marketing.org/api/turbo/v1/videos/vid_7Hq2LmN0pQrS3tUv4WxY/render"
  },
  "created_at": "2026-11-22T09:00:00.000Z",
  "updated_at": "2026-11-22T09:00:00.000Z"
}
```

> **Note:** The paths in `links` start with `/v1/…`. To call them, put `https://flow-marketing.org/api/turbo` in front.

## Quality traffic light: quality {#pruef-ampel}

`quality` checks the plan before the render: `overall` is the overall verdict, `checks` the individual checks. On `red` no render starts (422 `pre_render_check_red`, the red checks are listed in `failed_checks`).

Each check has `id`, `status`, `value`, `limit`, `unit` and `message` (English), where useful `format` and `scene`, and on yellow and red also `fix_hint`.

| id | Checks | Unit |
| --- | --- | --- |
| `reading_time` | reading time of the text | `words_per_s` |
| `font_size` | font size | `px` |
| `contrast` | contrast of text and background | `ratio` |
| `safe_zone` | text inside the safe zones of the formats | `count` |
| `overlap` | overlaps | `count` |
| `duration` | length | `s` |
| `sound_events` | sound for the events on screen | `count` |
| `text_follows_voice` | on-screen text follows the voice | `count` |
| `ad_law` | advertising law rules | `count` |
| `text_overflow` | text overflowing | `px` |

## Price first: POST /estimates {#schaetzen}

Same body as `POST /videos`, but nothing is created or stored. With `fields` the estimate uses the same calculation as the render start (`binding: true`) and includes `quality`. It is not stored – only `max_price_cents` on the render is a firm upper limit. With `brief` or without fields the API estimates from the template example (`binding: false`, `quality: null`). Scope: `videos:read`.

Fields: `price_cents` (net; 0 in test mode; `null` while no price is set), `price_gross_cents` (incl. 19 % VAT), `billable_seconds` (started seconds, at least 10), `duration_s`, `unit_price_eur_per_second`, `pricing_available`, `pricing_beta`, `binding`, `ready_in_s` (typical and slow duration in seconds), plus `mode`, `template` and `quality`. When token billing is active, `cost_tokens` and `cost_eur_list` are added.

**curl**

```bash
curl -X POST https://flow-marketing.org/api/turbo/v1/estimates \
  -H "Authorization: Bearer $FLOW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"template": "produkt-launch", "fields": {"produkt": "Musterwerk Plan", "hook": "Schichtplan per Zuruf?", "problem": "Jede Woche Zettel, Anrufe und Lücken im Plan.", "loesung": "Der Plan, der sich selbst füllt", "vorteile": ["Tauschen per Klick", "Urlaub sofort sichtbar"], "cta": "Jetzt testen"}}'
```

**JavaScript**

```js
const res = await fetch('https://flow-marketing.org/api/turbo/v1/estimates', {
  method: 'POST',
  headers: { Authorization: 'Bearer ' + process.env.FLOW_API_KEY, 'Content-Type': 'application/json' },
  body: JSON.stringify({
    template: 'produkt-launch',
    fields: {
      produkt: 'Musterwerk Plan',
      hook: 'Schichtplan per Zuruf?',
      problem: 'Jede Woche Zettel, Anrufe und Lücken im Plan.',
      loesung: 'Der Plan, der sich selbst füllt',
      vorteile: ['Tauschen per Klick', 'Urlaub sofort sichtbar'],
      cta: 'Jetzt testen',
    },
  }),
})
const e = await res.json()
console.log(e.price_cents, e.billable_seconds, e.binding, e.quality && e.quality.overall)
```

**Python**

```python
import os, requests

r = requests.post(
    "https://flow-marketing.org/api/turbo/v1/estimates",
    headers={"Authorization": "Bearer " + os.environ["FLOW_API_KEY"]},
    json={
        "template": "produkt-launch",
        "fields": {
            "produkt": "Musterwerk Plan",
            "hook": "Schichtplan per Zuruf?",
            "problem": "Jede Woche Zettel, Anrufe und Lücken im Plan.",
            "loesung": "Der Plan, der sich selbst füllt",
            "vorteile": ["Tauschen per Klick", "Urlaub sofort sichtbar"],
            "cta": "Jetzt testen",
        },
    },
    timeout=30,
)
e = r.json()
print(e["price_cents"], e["billable_seconds"], e["binding"], (e.get("quality") or {}).get("overall"))
```

**Response 200 (sample values, live)**

```json
{
  "object": "estimate",
  "price_cents": 260,
  "price_gross_cents": 309,
  "currency": "eur",
  "billable_seconds": 26,
  "duration_s": 25.3,
  "unit_price_eur_per_second": "0.10",
  "pricing_available": true,
  "pricing_beta": true,
  "binding": true,
  "ready_in_s": [70, 180],
  "mode": "live",
  "template": "produkt-launch",
  "quality": { "overall": "green", "checks": [] }
}
```

> **Note:** The numbers in the sample are made up. `GET /balance` and `POST /estimates` return the current price per second; the pricing page shows it under “API”.

## Reading videos: GET /videos and GET /videos/{id} {#lesen}

`GET /videos` lists the videos of the mode, newest first. Parameters: `limit` (1–100, default 20), `cursor` (the previous page’s `next_cursor`) and `status`. Answer: `object: "list"`, `data`, `has_more`, `next_cursor`. In the list `latest_render` is always `null` – `GET /videos/{id}` has it.

`GET /videos/{id}` returns one video with `latest_render`. With `?wait=` (1 to 30 seconds) the answer waits until the status changes – only in `queued`, `rendering` and `checking`. Unknown ids and ids of the other mode: 404 `not_found`.

## Update: PATCH /videos/{id} {#aendern}

Changes fields, style, formats, language, voice, brand, spoken sentences or metadata. `fields` is merged (JSON Merge Patch): named fields replace, `null` removes an optional field, others stay. Afterwards: `revision` plus 1, `status: "draft"`, a new preview and a new quality traffic light.

Not allowed: `brief` (422) and a different `template`. While a render runs: 409 `video_busy`. For style film videos: 409 `not_editable`.

After `ready` one correction is included: the PATCH then starts the render by itself. A second correction returns 409 `no_correction_left` – create a new video then. Whether the correction costs money depends on the configured billing; check `charge` on the new render.

On a draft, `"render": true` (optionally with `max_price_cents`) in the PATCH starts the render right away.

**curl**

```bash
curl -X PATCH https://flow-marketing.org/api/turbo/v1/videos/vid_7Hq2LmN0pQrS3tUv4WxY \
  -H "Authorization: Bearer $FLOW_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"fields": {"hook": "Schichtplan ohne Chaos?", "kennzahl": null}, "formats": ["16x9", "1x1"]}'
```

**JavaScript**

```js
const res = await fetch('https://flow-marketing.org/api/turbo/v1/videos/' + videoId, {
  method: 'PATCH',
  headers: { Authorization: 'Bearer ' + process.env.FLOW_API_KEY, 'Content-Type': 'application/json' },
  body: JSON.stringify({ fields: { hook: 'Schichtplan ohne Chaos?', kennzahl: null }, formats: ['16x9', '1x1'] }),
})
const video = await res.json()
console.log(video.revision, video.status, video.quality.overall)
```

**Python**

```python
import os, requests

r = requests.patch(
    "https://flow-marketing.org/api/turbo/v1/videos/" + video_id,
    headers={"Authorization": "Bearer " + os.environ["FLOW_API_KEY"]},
    json={"fields": {"hook": "Schichtplan ohne Chaos?", "kennzahl": None}, "formats": ["16x9", "1x1"]},
    timeout=60,
)
video = r.json()
print(video["revision"], video["status"], video["quality"]["overall"])
```

## Delete: DELETE /videos/{id} {#loeschen}

Deletes the video with its fields, texts and plan. Answer: `{"id": "vid_…", "object": "video", "deleted": true}`. While a render runs: 409 `video_busy` – cancel first.

Render jobs stay as billing records (then without `video_id`), and so do invoices and usage. Deleted videos still count towards the daily limits.

## Render and cancel {#rendern}

`POST /videos/{id}/render` starts a render (202, render object). `POST /videos/{id}/cancel` cancels the running render of this video and returns the video; if none runs: 409 `nothing_to_cancel`.

Body, statuses, files and billing are on “Renders and status”.

## Plan and report {#plan-bericht}

`GET /videos/{id}/plan` returns the scene plan used for rendering. It is an internal format (some field names German) and can change – good for looking, not for fixed logic.

`GET /videos/{id}/report` returns the quality report: `pre_render` (traffic light before the render), `rendered` (measured on the finished files, `null` before the first render) and `pdf_url` (report as PDF, valid 24 hours, otherwise `null`).

**Response 200 (shortened)**

```json
{
  "object": "report",
  "video_id": "vid_7Hq2LmN0pQrS3tUv4WxY",
  "video_revision": 2,
  "pre_render": { "overall": "green", "checks": [ { "id": "contrast", "status": "green", "value": 7.2, "limit": 4.5, "unit": "ratio", "message": "..." } ] },
  "rendered": { "overall": "green", "checks": [ { "id": "...", "status": "green", "value": 0, "limit": 0 } ] },
  "pdf_url": "https://..."
}
```

## Video from a document: POST /videos/from-document {#aus-dokument}

Builds a video from a read document (`POST /documents`, see “Uploads and documents”): slide by slide, with the template `dokument-film`. The answer is a normal video (201) with a preview; `metadata.document_id` holds the document id.

| Field | Meaning |
| --- | --- |
| `document_id` | required: id of a read document (`dok_…`, status `ready`) |
| `target_duration_s` | 30, 45 or 60; default 30 |
| `use_notes` | use speaker notes as narration; default `true` |
| `language`, `style`, `formats`, `voice`, `brand`, `metadata`, `render`, `max_price_cents`, `end_user`, `captions` | as with `POST /videos` |

**curl**

```bash
curl -X POST https://flow-marketing.org/api/turbo/v1/videos/from-document \
  -H "Authorization: Bearer $FLOW_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"document_id": "dok_8sD0fG2hJ4kL6zX8cV0b", "target_duration_s": 45, "use_notes": true, "formats": ["16x9"]}'
```

**JavaScript**

```js
const res = await fetch('https://flow-marketing.org/api/turbo/v1/videos/from-document', {
  method: 'POST',
  headers: { Authorization: 'Bearer ' + process.env.FLOW_API_KEY, 'Content-Type': 'application/json' },
  body: JSON.stringify({ document_id: documentId, target_duration_s: 45, use_notes: true, formats: ['16x9'] }),
})
const video = await res.json() // template: 'dokument-film', metadata.document_id = documentId
```

**Python**

```python
import os, requests

r = requests.post(
    "https://flow-marketing.org/api/turbo/v1/videos/from-document",
    headers={"Authorization": "Bearer " + os.environ["FLOW_API_KEY"]},
    json={"document_id": document_id, "target_duration_s": 45, "use_notes": True, "formats": ["16x9"]},
    timeout=60,
)
video = r.json()  # template: "dokument-film", metadata.document_id = document_id
```

> **Note:** Billed like any video, per second. Reading and previewing are free.

## See also

- [Templates](https://flow-marketing.org/en/help/api-templates)
- [Renders and status](https://flow-marketing.org/en/help/api-renders-and-status)
- [Uploads and documents](https://flow-marketing.org/en/help/api-uploads-and-documents)
- [Costs and balance](https://flow-marketing.org/en/help/api-costs-and-balance)
- [Pagination](https://flow-marketing.org/en/help/api-pagination)
