Skip to content

Videos: create, update, review

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

As Markdown (for AI)OpenAPI

Contents and all reference pages

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

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

StatusMeaning
draftdraft with preview and quality traffic light – free
queuedrender accepted, waiting to start
renderingbeing built, including automatic repairs
checkingthe finished files are being checked
readydone; the files are on the latest render
failednot green even after repairs; see error and free_rebuild_available
canceledrender 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

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.

FieldTypeMeaning
templatestring, requiredid of a template (GET /templates)
fieldsobjectfields per fields_schema. Exactly one of fields or brief.
briefstring, up to 2,000 charactersfree text; the AI fills the fields from it
languagede or endefault de
stylestrings08, s13 or s01; default is the template’s default_style
formatslistfrom 16x9, 9x16, 1x1; default ["16x9", "9x16"] (16:9 is read as 16x9)
voicestring or nullvideo voice, default klar-w; null = no voice-over
brandobjectbrand for this video (see below)
narrationobjectyour own spoken sentence per scene key, up to 300 characters
metadataobjectup to 20 pairs of your own; keys up to 40 characters (A–Z, a–z, 0–9, _, ., -), values text up to 500 characters
end_userstring, up to 120your id of the end customer; ends up in metadata.end_user
captionslist of de, envalidated, but does not control the captions yet
renderbooleantrue starts the render at once
max_price_centsinteger ≥ 0ceiling for this render (402 price_above_max)
curl
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
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
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

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.

FieldMeaning
namebrand name, up to 120 characters
websiteweb address like example.com; shown on the end card and helps the AI with brief
colors.primary, colors.accent, colors.background, colors.textcolours as #RRGGBB
logologo for light backgrounds: id of a finished upload (upl_…, kind logo or image)
logo_darklogo 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

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
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
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
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

FieldMeaning
idvid_ plus 20 characters
modetest or live
statussee “Lifecycle and status”
revisionstarts at 1, counts up with every PATCH
template, template_version, style, language, formats, voiceas created
duration_slength in seconds according to the plan
fields, narrationfields and spoken sentences per scene
filled_byyou or ai
brand, metadataas created
preview_urlsigned preview player: valid 7 days, free, with watermark
qualityquality traffic light before the render
estimateprice of this video (same shape as POST /estimates)
latest_renderlatest render or null
corrections_leftwhen ready: included correction left (0 or 1), otherwise null
free_rebuild_availabletrue when a paid render stayed red – then one free rebuild
error{ "code", "charged" } or null
linksself, plan, report, render
created_at, updated_attimestamp (ISO 8601, UTC)
Response 201 (shortened)
{
  "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

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.

idChecksUnit
reading_timereading time of the textwords_per_s
font_sizefont sizepx
contrastcontrast of text and backgroundratio
safe_zonetext inside the safe zones of the formatscount
overlapoverlapscount
durationlengths
sound_eventssound for the events on screencount
text_follows_voiceon-screen text follows the voicecount
ad_lawadvertising law rulescount
text_overflowtext overflowingpx

Price first: POST /estimates

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
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
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
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)
{
  "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}

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}

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
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
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
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}

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

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

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)
{
  "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

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.

FieldMeaning
document_idrequired: id of a read document (dok_…, status ready)
target_duration_s30, 45 or 60; default 30
use_notesuse speaker notes as narration; default true
language, style, formats, voice, brand, metadata, render, max_price_cents, end_user, captionsas with POST /videos
curl
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
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
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.

Did this help?

Still have a question?

Mo is an AI and answers right away from these articles. A person on our team replies within 24 hours on business days.

Some services degraded
Create a videoNo subscription needed · cancel any time