[{"data":1,"prerenderedAt":501,"buildId":502},["ShallowReactive",2],{"blog:article:ai-video-generation-api-python":3,"catalog":166},{"article":4,"related":139,"studioPath":165},{"slug":5,"path":6,"title":7,"description":8,"category":9,"categoryLabel":10,"date":11,"updated":11,"readingMinutes":12,"models":13,"featured":16,"primaryKeyword":17,"keywords":18,"words":24,"toc":25,"blocks":57,"faq":133},"ai-video-generation-api-python","\u002Fblog\u002Fai-video-generation-api-python","AI Video Generation API in Python: prompt to MP4","Use an AI video generation API from Python: quote the price, submit a clip, poll it or take a webhook, then download the MP4. Runnable code, real API.","guides","Guides","2026-11-28",5,[14,15],"seedance-2-5","fp-motion-1",true,"ai video generation api",[19,20,21,22,23],"ai video generation api python","video generation api python","python text to video","generate video with python","video api webhook",1131,[26,30,33,36,39,42,45,48,51,54],{"id":27,"text":28,"level":29},"what-you-need","What you need",2,{"id":31,"text":32,"level":29},"1-pick-a-model","1. Pick a model",{"id":34,"text":35,"level":29},"2-quote-the-price","2. Quote the price",{"id":37,"text":38,"level":29},"3-submit-the-clip","3. Submit the clip",{"id":40,"text":41,"level":29},"4-poll-until-it-settles","4. Poll until it settles",{"id":43,"text":44,"level":29},"or-take-a-webhook","Or take a webhook",{"id":46,"text":47,"level":29},"5-download-the-mp4","5. Download the MP4",{"id":49,"text":50,"level":29},"handle-the-errors-that-matter","Handle the errors that matter",{"id":52,"text":53,"level":29},"the-whole-script","The whole script",{"id":55,"text":56,"level":29},"faq","FAQ",[58,61,65,67,70,72,75,77,80,84,86,89,91,94,96,99,101,104,106,109,111],{"type":59,"html":60},"html","\u003Cp>To generate a video from Python, you send a prompt to a video generation API, wait for the job to finish, then download the file. With Frameport that is one \u003Ccode>requests\u003C\u002Fcode> call to submit, a short loop or a webhook to wait, and one call to download, for any of the 13 video models on the same key.\u003C\u002Fp>\n\u003Cp>This guide builds that script step by step: pick a model, quote the price, submit, poll or take a webhook, download, and handle the errors that matter. Each step is a function you can lift into your own code.\u003C\u002Fp>\n\u003Ch2 id=\"what-you-need\">What you need\u003C\u002Fh2>\n\u003Cul>\n\u003Cli>Python 3 and the \u003Ccode>requests\u003C\u002Fcode> package (\u003Ccode>pip install requests\u003C\u002Fcode>). The webhook part also uses Flask.\u003C\u002Fli>\n\u003Cli>An API key: \u003Ca href=\"\u002Fsignup\">create an account\u003C\u002Fa>, add funds under Billing (from $10), then create a key under API keys. It starts with \u003Ccode>fp_live_\u003C\u002Fcode> and is shown once.\u003C\u002Fli>\n\u003Cli>The key in an environment variable, so it never lands in your code.\u003C\u002Fli>\n\u003C\u002Ful>",{"type":62,"lang":63,"code":64},"code","curl","export FRAMEPORT_API_KEY=\"fp_live_...\"\npip install requests",{"type":59,"html":66},"\u003Cp>All the code below shares these two lines:\u003C\u002Fp>",{"type":62,"lang":68,"code":69},"python","import os\nimport requests\n\nAPI = \"https:\u002F\u002Fframeport.ai\u002Fv1\"\nHEADERS = {\"Authorization\": f\"Bearer {os.environ['FRAMEPORT_API_KEY']}\"}",{"type":59,"html":71},"\u003Ch2 id=\"1-pick-a-model\">1. Pick a model\u003C\u002Fh2>\n\u003Cp>\u003Ccode>GET \u002Fv1\u002Fmodels\u003C\u002Fcode> lists every model on sale with its prices and options, and needs no key. Read \u003Ccode>type\u003C\u002Fcode> and \u003Ccode>mode\u003C\u002Fcode> to know which endpoint a model takes, \u003Ccode>pricing\u003C\u002Fcode> for its price and \u003Ccode>options\u003C\u002Fcode> for the values a request may use.\u003C\u002Fp>",{"type":62,"lang":68,"code":73,"title":74},"models = requests.get(f\"{API}\u002Fmodels\").json()[\"data\"]\n\nfor model in models:\n    if model[\"type\"] == \"video\" and model[\"mode\"] == \"generate\":\n        lowest = min(model[\"pricing\"][\"per_second\"].values())\n        lengths = model[\"options\"].get(\"durations\")\n        print(f\"{model['id']:\u003C22} from {lowest}\u002Fs  {lengths}\")","List the video models",{"type":59,"html":76},"\u003Cp>This guide uses \u003Ca href=\"\u002Fmodels\u002Fseedance-2-5\">Seedance 2.5\u003C\u002Fa>: clips of 4 to 30 seconds, from $0.12 per second, with sound. For the lowest price per second, \u003Ca href=\"\u002Fmodels\u002Ffp-motion-1\">Frameport Motion 1\u003C\u002Fa> starts at $0.02 per second at 480p and takes the same request. Read prices from the API rather than typing them into your code: they can change, and the API always has the current ones.\u003C\u002Fp>\n\u003Ch2 id=\"2-quote-the-price\">2. Quote the price\u003C\u002Fh2>\n\u003Cp>\u003Ccode>POST \u002Fv1\u002Fgenerations\u002Fquote\u003C\u002Fcode> takes the body you are about to send and answers with its price, what it would hold, and whether your balance covers it. Nothing is held or started, and quotes do not count against your rate limit.\u003C\u002Fp>",{"type":62,"lang":68,"code":78,"title":79},"def quote(body: dict) -> dict:\n    res = requests.post(f\"{API}\u002Fgenerations\u002Fquote\", headers=HEADERS, json=body)\n    res.raise_for_status()\n    return res.json()\n\n\nbody = {\"model\": \"seedance-2-5\", \"duration\": 5, \"resolution\": \"720p\"}\nq = quote(body)\nprint(q[\"breakdown\"], \"covered:\", q[\"enough_balance\"])","Quote a request",{"type":62,"lang":81,"code":82,"title":83},"json","{\n  \"object\": \"quote\",\n  \"model\": \"seedance-2-5\",\n  \"type\": \"video\",\n  \"mode\": \"generate\",\n  \"price_usd\": 1.35,\n  \"reserved_usd\": 1.35,\n  \"breakdown\": \"5 s at 720p × $0.27\u002Fs\",\n  \"enough_balance\": true\n}","200 OK",{"type":59,"html":85},"\u003Cp>For code that builds requests from user input, add \u003Ccode>max_cost_usd\u003C\u002Fcode> to the body itself: a request that would cost more is refused with \u003Ccode>400 max_cost_exceeded\u003C\u002Fcode> before anything is held. The \u003Ca href=\"\u002Fdocs\u002Fquotes\">quotes reference\u003C\u002Fa> has the details.\u003C\u002Fp>\n\u003Ch2 id=\"3-submit-the-clip\">3. Submit the clip\u003C\u002Fh2>\n\u003Cp>\u003Ccode>POST \u002Fv1\u002Fvideos\u002Fgenerations\u003C\u002Fcode> holds the price on your balance and answers at once with \u003Ccode>202 Accepted\u003C\u002Fcode>: the generation, its \u003Ccode>id\u003C\u002Fcode> and \u003Ccode>reserved_usd\u003C\u002Fcode>. Send an \u003Ccode>Idempotency-Key\u003C\u002Fcode> with it. If your script times out and sends the same request again, the API returns the first generation instead of starting, and charging, a second one.\u003C\u002Fp>",{"type":62,"lang":68,"code":87,"title":88},"import uuid\n\n\ndef submit(body: dict, key: str = \"\") -> dict:\n    res = requests.post(\n        f\"{API}\u002Fvideos\u002Fgenerations\",\n        headers={**HEADERS, \"Idempotency-Key\": key or str(uuid.uuid4())},\n        json=body,\n    )\n    gen = res.json()\n    if gen.get(\"error\"):\n        raise RuntimeError(f\"{gen['error']['code']}: {gen['error']['message']}\")\n    return gen\n\n\ngen = submit({\n    **body,\n    \"prompt\": \"A paper boat drifts down a rain-soaked street at dusk, low tracking shot\",\n    \"aspect_ratio\": \"16:9\",\n})\nprint(gen[\"id\"], gen[\"status\"], \"held:\", gen[\"reserved_usd\"])","Submit",{"type":59,"html":90},"\u003Cp>Keep the key with your own job record (an order id works): the same key with the same body is safe to send again for 24 hours. See \u003Ca href=\"\u002Fdocs\u002Fidempotency\">idempotency\u003C\u002Fa> for the cases it covers.\u003C\u002Fp>\n\u003Ch2 id=\"4-poll-until-it-settles\">4. Poll until it settles\u003C\u002Fh2>\n\u003Cp>A generation moves from \u003Ccode>queued\u003C\u002Fcode> to \u003Ccode>running\u003C\u002Fcode>, then to \u003Ccode>succeeded\u003C\u002Fcode> or \u003Ccode>failed\u003C\u002Fcode>. Read it every few seconds; reads are not counted against your limits, but a tight loop helps no one.\u003C\u002Fp>",{"type":62,"lang":68,"code":92,"title":93},"import time\n\n\ndef wait(gen: dict, every: float = 4, timeout: float = 1800) -> dict:\n    deadline = time.monotonic() + timeout\n    while gen[\"status\"] in (\"queued\", \"running\"):\n        if time.monotonic() > deadline:\n            raise TimeoutError(f\"{gen['id']} is still {gen['status']}\")\n        time.sleep(every)\n        gen = requests.get(f\"{API}\u002Fvideos\u002Fgenerations\u002F{gen['id']}\", headers=HEADERS).json()\n    return gen\n\n\ngen = wait(gen)\nif gen[\"status\"] == \"failed\":\n    # Nothing was charged: the hold went back to the balance\n    raise SystemExit(gen[\"error\"][\"message\"])\nprint(\"charged:\", gen[\"cost_usd\"])","Wait for the result",{"type":59,"html":95},"\u003Cp>On success, \u003Ccode>cost_usd\u003C\u002Fcode> is what was charged and each output carries a \u003Ccode>url\u003C\u002Fcode>. On failure, \u003Ccode>error\u003C\u002Fcode> says why and \u003Ccode>cost_usd\u003C\u002Fcode> is 0.\u003C\u002Fp>\n\u003Ch2 id=\"or-take-a-webhook\">Or take a webhook\u003C\u002Fh2>\n\u003Cp>A service that runs many clips should not poll each one. Add an endpoint under \u003Cstrong>Webhooks\u003C\u002Fstrong> in the dashboard and pick \u003Ccode>generation.succeeded\u003C\u002Fcode>, \u003Ccode>generation.failed\u003C\u002Fcode> or both. Each delivery is a \u003Ccode>POST\u003C\u002Fcode> with the generation as \u003Ccode>GET\u003C\u002Fcode> returns it, signed with your endpoint&#39;s secret in the \u003Ccode>Frameport-Signature\u003C\u002Fcode> header.\u003C\u002Fp>",{"type":62,"lang":68,"code":97,"title":98},"import hashlib\nimport hmac\nimport json\nimport time\n\nfrom flask import Flask, request\n\napp = Flask(__name__)\nSECRET = os.environ[\"WEBHOOK_SECRET\"]  # whsec_..., shown once when you add the endpoint\n\n\ndef verify(raw: bytes, header: str, tolerance: int = 300) -> bool:\n    parts = dict(part.split(\"=\", 1) for part in header.split(\",\"))\n    if \"t\" not in parts or \"v1\" not in parts or abs(time.time() - int(parts[\"t\"])) > tolerance:\n        return False\n    expected = hmac.new(SECRET.encode(), parts[\"t\"].encode() + b\".\" + raw, hashlib.sha256).hexdigest()\n    return hmac.compare_digest(expected, parts[\"v1\"])\n\n\n@app.post(\"\u002Fhooks\u002Fvideo\")\ndef video_done():\n    if not verify(request.get_data(), request.headers.get(\"Frameport-Signature\", \"\")):\n        return \"\", 400\n    event = json.loads(request.get_data())\n    gen = event[\"data\"]\n    print(event[\"type\"], gen[\"id\"], gen[\"status\"])  # queue the download, answer fast\n    return \"\", 204","A Flask receiver",{"type":59,"html":100},"\u003Cp>Answer with a \u003Ccode>2xx\u003C\u002Fcode> within 10 seconds and do the work afterwards. A delivery that fails is sent again after 1, 5 and 15 minutes, with the same id each time, so a receiver can skip one it has already handled. The \u003Ca href=\"\u002Fdocs\u002Fwebhooks\">webhooks reference\u003C\u002Fa> covers retries and signatures.\u003C\u002Fp>\n\u003Cp>The \u003Ca href=\"\u002Fblog\u002Fai-video-api-webhooks\">AI video API webhooks guide\u003C\u002Fa> goes further into receiving and checking them.\u003C\u002Fp>\n\u003Ch2 id=\"5-download-the-mp4\">5. Download the MP4\u003C\u002Fh2>\n\u003Cp>\u003Ccode>outputs[0].url\u003C\u002Fcode> is a signed link that opens without a key for about an hour. Stream it to disk instead of loading the whole clip into memory. When a link has expired, read the generation again for a fresh one.\u003C\u002Fp>",{"type":62,"lang":68,"code":102,"title":103},"def download(gen: dict, path: str) -> None:\n    with requests.get(gen[\"outputs\"][0][\"url\"], stream=True) as res:\n        res.raise_for_status()\n        with open(path, \"wb\") as file:\n            for chunk in res.iter_content(chunk_size=1 \u003C\u003C 20):\n                file.write(chunk)\n\n\ndownload(gen, \"boat.mp4\")","Download",{"type":59,"html":105},"\u003Cp>With your key, \u003Ccode>GET \u002Fv1\u002Fgenerations\u002F{id}\u002Fcontent\u003C\u002Fcode> streams the same file from the generation&#39;s id. Files are not kept forever: copy the ones you keep to your own storage (\u003Ca href=\"\u002Fdocs\u002Ffiles\">files\u003C\u002Fa>).\u003C\u002Fp>\n\u003Ch2 id=\"handle-the-errors-that-matter\">Handle the errors that matter\u003C\u002Fh2>\n\u003Cp>Every error has the same shape, with a stable \u003Ccode>code\u003C\u002Fcode> to branch on and a \u003Ccode>request_id\u003C\u002Fcode> to send support. A request refused before it starts holds nothing.\u003C\u002Fp>\n\u003Cdiv class=\"blog-table box blog-table-wide\">\u003Ctable class=\"tbl\">\u003Cthead>\u003Ctr>\u003Cth scope=\"col\">Status\u003C\u002Fth>\u003Cth scope=\"col\">Code\u003C\u002Fth>\u003Cth scope=\"col\">What to do\u003C\u002Fth>\u003C\u002Ftr>\u003C\u002Fthead>\u003Ctbody>\u003Ctr>\u003Ctd>400\u003C\u002Ftd>\u003Ctd>\u003Ccode>invalid_request\u003C\u002Fcode>\u003C\u002Ftd>\u003Ctd>A field is off the model&#39;s grid: the message names it and lists what the model takes.\u003C\u002Ftd>\u003C\u002Ftr>\n\u003Ctr>\u003Ctd>400\u003C\u002Ftd>\u003Ctd>\u003Ccode>max_cost_exceeded\u003C\u002Fcode>\u003C\u002Ftd>\u003Ctd>The request costs more than your \u003Ccode>max_cost_usd\u003C\u002Fcode>.\u003C\u002Ftd>\u003C\u002Ftr>\n\u003Ctr>\u003Ctd>402\u003C\u002Ftd>\u003Ctd>\u003Ccode>insufficient_balance\u003C\u002Fcode>\u003C\u002Ftd>\u003Ctd>Add funds, or quote a shorter or lower-resolution clip.\u003C\u002Ftd>\u003C\u002Ftr>\n\u003Ctr>\u003Ctd>429\u003C\u002Ftd>\u003Ctd>\u003Ccode>rate_limited\u003C\u002Fcode>\u003C\u002Ftd>\u003Ctd>Past 60 requests a minute for the workspace: wait for \u003Ccode>Retry-After\u003C\u002Fcode>.\u003C\u002Ftd>\u003C\u002Ftr>\n\u003Ctr>\u003Ctd>429\u003C\u002Ftd>\u003Ctd>\u003Ccode>concurrency_limit\u003C\u002Fcode>\u003C\u002Ftd>\u003Ctd>20 generations already running: submit the next one when one finishes.\u003C\u002Ftd>\u003C\u002Ftr>\n\u003Ctr>\u003Ctd>503\u003C\u002Ftd>\u003Ctd>\u003Ccode>model_unavailable\u003C\u002Fcode>\u003C\u002Ftd>\u003Ctd>The model is down for now: retry later, with the same \u003Ccode>Idempotency-Key\u003C\u002Fcode>.\u003C\u002Ftd>\u003C\u002Ftr>\u003C\u002Ftbody>\u003C\u002Ftable>\u003C\u002Fdiv>\n\u003Cp>A generation that fails after it was accepted is not an HTTP error: it shows \u003Ccode>status: &quot;failed&quot;\u003C\u002Fcode> with its reason, and you can submit it again. The full list is in the \u003Ca href=\"\u002Fdocs\u002Ferrors\">errors reference\u003C\u002Fa>.\u003C\u002Fp>\n\u003Ch2 id=\"the-whole-script\">The whole script\u003C\u002Fh2>\n\u003Cp>The functions above, end to end:\u003C\u002Fp>",{"type":62,"lang":68,"code":107,"title":108},"body = {\n    \"model\": \"seedance-2-5\",\n    \"prompt\": \"A paper boat drifts down a rain-soaked street at dusk, low tracking shot\",\n    \"duration\": 5,\n    \"resolution\": \"720p\",\n    \"aspect_ratio\": \"16:9\",\n}\n\nq = quote(body)\nif not q[\"enough_balance\"]:\n    raise SystemExit(f\"Add funds first: this clip holds {q['reserved_usd']}\")\n\ngen = wait(submit(body))\nif gen[\"status\"] == \"failed\":\n    raise SystemExit(gen[\"error\"][\"message\"])\n\ndownload(gen, \"boat.mp4\")\nprint(\"saved boat.mp4, charged\", gen[\"cost_usd\"])","make_clip.py",{"type":59,"html":110},"\u003Cp>The same request works for every video model: change \u003Ccode>model\u003C\u002Fcode>, then the options its page lists. The \u003Ca href=\"\u002Fblog\u002Fseedance-2-5-api\">Seedance 2.5 API guide\u003C\u002Fa> goes through that model&#39;s options and prices one by one.\u003C\u002Fp>\n\u003Cp>Writing JavaScript instead? The same flow is in \u003Ca href=\"\u002Fblog\u002Fai-video-generation-api-node-js\">AI video generation API in Node.js\u003C\u002Fa>. To hand the finished clip to people in a chat, see the \u003Ca href=\"\u002Fblog\u002Ftelegram-bot-ai-video\">Telegram bot AI video\u003C\u002Fa> guide. To generate a typed client from the spec instead of writing requests by hand, see \u003Ca href=\"\u002Fblog\u002Fopenapi-client-ai-generation-api\">OpenAPI client generators\u003C\u002Fa>.\u003C\u002Fp>",{"type":55,"id":55,"title":56,"items":112},[113,117,121,125,129],{"q":114,"html":115,"text":116},"Do I need an SDK to call the API from Python?","\u003Cp>No. It is HTTPS and JSON: \u003Ccode>requests\u003C\u002Fcode>, \u003Ccode>httpx\u003C\u002Fcode> or the standard library all work. Send the key as a Bearer token and read the JSON back.\u003C\u002Fp>","No. It is HTTPS and JSON: requests, httpx or the standard library all work. Send the key as a Bearer token and read the JSON back.",{"q":118,"html":119,"text":120},"How do I avoid paying twice when a request times out?","\u003Cp>Send an \u003Ccode>Idempotency-Key\u003C\u002Fcode> header with each submit. The same key with the same body returns the first generation for 24 hours, so a retry never starts or charges a second clip.\u003C\u002Fp>","Send an Idempotency-Key header with each submit. The same key with the same body returns the first generation for 24 hours, so a retry never starts or charges a second clip.",{"q":122,"html":123,"text":124},"What does a failed video cost?","\u003Cp>Nothing. The price is held when you submit and charged only on success; when a clip fails, the hold goes back to your balance and \u003Ccode>cost_usd\u003C\u002Fcode> is 0.\u003C\u002Fp>","Nothing. The price is held when you submit and charged only on success; when a clip fails, the hold goes back to your balance and cost_usd is 0.",{"q":126,"html":127,"text":128},"How many videos can I generate at once?","\u003Cp>Up to 20 generations can run at once in a workspace, and 60 requests that start work are accepted a minute. Queue the rest on your side and submit as clips finish.\u003C\u002Fp>","Up to 20 generations can run at once in a workspace, and 60 requests that start work are accepted a minute. Queue the rest on your side and submit as clips finish.",{"q":130,"html":131,"text":132},"Can I see the clips my script made?","\u003Cp>Yes. \u003Ccode>GET \u002Fv1\u002Fgenerations\u003C\u002Fcode> lists them newest first, filtered by status, type or model, and the dashboard shows the same list. You can also open the same model in the \u003Ca href=\"\u002Fstudio?model=seedance-2-5\">Studio\u003C\u002Fa> to try a prompt by hand before you script it.\u003C\u002Fp>","Yes. GET \u002Fv1\u002Fgenerations lists them newest first, filtered by status, type or model, and the dashboard shows the same list. You can also open the same model in the Studio to try a prompt by hand before you script it.",[134,135,136,137,138],{"q":114,"html":115,"text":116},{"q":118,"html":119,"text":120},{"q":122,"html":123,"text":124},{"q":126,"html":127,"text":128},{"q":130,"html":131,"text":132},[140,148,157],{"slug":141,"path":142,"title":143,"description":144,"category":9,"categoryLabel":10,"date":11,"updated":11,"readingMinutes":12,"models":145,"featured":147},"ai-video-generation-api-node-js","\u002Fblog\u002Fai-video-generation-api-node-js","AI Video Generation API in Node.js: A Working Script","AI video API Node JS guide: submit a clip with fetch, poll with a backoff, stream the MP4 to disk, verify webhooks and type it all from OpenAPI.",[14,146,15],"veo-3-1",false,{"slug":149,"path":150,"title":151,"description":152,"category":9,"categoryLabel":10,"date":11,"updated":11,"readingMinutes":153,"models":154,"featured":147},"ai-video-prompt-guide","\u002Fblog\u002Fai-video-prompt-guide","AI Video Prompt Guide: Prompts Video Models Follow","An AI video prompt guide for developers: subject, action, camera, light and sound in order, camera moves, model quirks and templates to fill from code.",7,[14,146,155,156,15],"wan-3","hailuo-3",{"slug":158,"path":159,"title":160,"description":161,"category":9,"categoryLabel":10,"date":11,"updated":11,"readingMinutes":12,"models":162,"featured":147},"consistent-character-video-api","\u002Fblog\u002Fconsistent-character-video-api","Consistent Character AI Video: Keep One Face Across Clips","Consistent character AI video by API: keep one person, product or mascot across clips with identity references or first frames, plus Python code.",[163,14,15,155,156,164],"seedance-2-0","fp-image-3","\u002Fstudio",[167,185,193,203,228,245,264,279,293,308,323,337,348,362,375,388,400,411,419,428,438,447,457,465,484],{"id":168,"type":169,"name":170,"description":171,"maker":172,"family":172,"own":16,"image":173,"private":184},"fp-image-2","image","Frameport Image 2","Photoreal renders, up to 4 reference images.","Frameport",{"pricing":174,"options":176},{"per_image":175,"per_extra_reference_image":-1},0.025,{"aspect_ratios":177,"max_images":183},[178,179,180,181,182],"1:1","3:4","4:3","9:16","16:9",4,{},{"id":164,"type":169,"name":186,"description":187,"maker":172,"family":172,"own":16,"image":188,"private":192},"Frameport Image 3","Clean photoreal renders for characters.",{"pricing":189,"options":190},{"per_image":175,"per_extra_reference_image":-1},{"aspect_ratios":191,"max_images":183},[178,179,180,181,182],{},{"id":194,"type":169,"name":195,"description":196,"maker":172,"family":172,"own":16,"image":197,"private":202},"fp-image-1","Frameport Image 1","Generation and reference-driven renders, up to 10 reference images.",{"pricing":198,"options":200},{"per_image":175,"per_extra_reference_image":199},0.0025,{"aspect_ratios":201,"max_images":183},[178,179,180,181,182],{},{"id":15,"type":204,"name":205,"description":206,"maker":172,"family":207,"own":16,"video":208,"private":226},"video","Frameport Motion 1","Our video engine, with native sound.","Frameport Motion",{"pricing":209,"options":216},{"default_resolution":210,"per_second":211,"per_second_with_audio":-1,"aspect_ratio_multiplier":-1,"per_reference_image":-1,"per_frame_image":-1},"768p",{"480p":212,"768p":213,"1080p":214,"2K":215},0.02,0.06,0.08,0.095,{"resolutions":217,"durations":221,"aspect_ratios":224,"audio_toggle":16,"start_frame":16,"end_frame":16,"max_reference_images":183,"identity_resolutions":225,"seed":147,"negative_prompt":147},[218,210,219,220],"480p","1080p","2K",{"min":12,"max":222,"step":223},15,1,[182,181,178,180,179],[210,219],{"resolutions":227},[218,210],{"id":14,"type":204,"name":229,"description":230,"maker":231,"family":232,"own":147,"video":233},"Seedance 2.5","The long-take flagship — up to 30 seconds with sound","ByteDance","Seedance",{"pricing":234,"options":239},{"default_resolution":235,"per_second":236,"per_second_with_audio":-1,"aspect_ratio_multiplier":-1,"per_reference_image":-1,"per_frame_image":-1},"720p",{"480p":237,"720p":238},0.12,0.27,{"resolutions":240,"durations":241,"aspect_ratios":243,"audio_toggle":16,"start_frame":16,"end_frame":16,"max_reference_images":183,"identity_resolutions":-1,"seed":16,"negative_prompt":147},[218,235],{"min":183,"max":242,"step":223},30,[182,180,178,179,181,244],"21:9",{"id":146,"type":204,"name":246,"description":247,"maker":248,"family":249,"own":147,"video":250},"Veo 3.1","Google’s flagship — up to 4K with native audio","Google","Veo",{"pricing":251,"options":257},{"default_resolution":219,"per_second":252,"per_second_with_audio":255,"aspect_ratio_multiplier":-1,"per_reference_image":-1,"per_frame_image":-1},{"720p":253,"1080p":253,"4K":254},0.235,0.465,{"720p":254,"1080p":254,"4K":256},0.695,{"resolutions":258,"durations":260,"aspect_ratios":262,"audio_toggle":16,"start_frame":16,"end_frame":16,"max_reference_images":263,"identity_resolutions":-1,"seed":16,"negative_prompt":16},[235,219,259],"4K",{"min":183,"max":261,"step":29},8,[182,181],3,{"id":163,"type":204,"name":265,"description":266,"maker":231,"family":232,"own":147,"video":267},"Seedance 2.0","Character consistency, up to 4K",{"pricing":268,"options":275},{"default_resolution":235,"per_second":269,"per_second_with_audio":-1,"aspect_ratio_multiplier":273,"per_reference_image":-1,"per_frame_image":-1},{"480p":214,"720p":270,"1080p":271,"4K":272},0.175,0.435,0.9,{"21:9":274},1.32,{"resolutions":276,"durations":277,"aspect_ratios":278,"audio_toggle":16,"start_frame":16,"end_frame":16,"max_reference_images":183,"identity_resolutions":-1,"seed":16,"negative_prompt":147},[218,235,219,259],{"min":183,"max":222,"step":223},[182,180,178,179,181,244],{"id":156,"type":204,"name":280,"description":281,"maker":282,"family":283,"own":147,"video":284},"Hailuo 3","2K cinematic physics, subject references","MiniMax","Hailuo",{"pricing":285,"options":289},{"default_resolution":220,"per_second":286,"per_second_with_audio":-1,"aspect_ratio_multiplier":-1,"per_reference_image":288,"per_frame_image":-1},{"2K":287},0.15,0.047,{"resolutions":290,"durations":291,"aspect_ratios":292,"audio_toggle":16,"start_frame":16,"end_frame":16,"max_reference_images":263,"identity_resolutions":-1,"seed":147,"negative_prompt":147},[220],{"min":12,"max":222,"step":223},[244,182,180,178,179,181],{"id":294,"type":204,"name":295,"description":296,"maker":297,"family":297,"own":147,"video":298},"runway-gen-4-5","Runway Gen-4.5","Cinematic motion, strong prompt adherence","Runway",{"pricing":299,"options":302},{"default_resolution":235,"per_second":300,"per_second_with_audio":-1,"aspect_ratio_multiplier":-1,"per_reference_image":-1,"per_frame_image":-1},{"720p":301},0.14,{"resolutions":303,"durations":304,"aspect_ratios":306,"audio_toggle":147,"start_frame":16,"end_frame":147,"max_reference_images":307,"identity_resolutions":-1,"seed":16,"negative_prompt":147},[235],{"min":29,"max":305,"step":223},10,[182,181],0,{"id":309,"type":204,"name":310,"description":311,"maker":248,"family":249,"own":147,"video":312},"veo-3-1-fast","Veo 3.1 Fast","Veo quality, faster and a quarter of the price",{"pricing":313,"options":319},{"default_resolution":235,"per_second":314,"per_second_with_audio":317,"aspect_ratio_multiplier":-1,"per_reference_image":-1,"per_frame_image":-1},{"720p":315,"1080p":237,"4K":316},0.093,0.29,{"720p":237,"1080p":301,"4K":318},0.35,{"resolutions":320,"durations":321,"aspect_ratios":322,"audio_toggle":16,"start_frame":16,"end_frame":16,"max_reference_images":263,"identity_resolutions":-1,"seed":16,"negative_prompt":16},[235,219,259],{"min":183,"max":261,"step":29},[182,181],{"id":324,"type":204,"name":325,"description":326,"maker":231,"family":232,"own":147,"video":327},"seedance-2-0-fast","Seedance 2.0 Fast","Seedance references and sound, faster",{"pricing":328,"options":333},{"default_resolution":235,"per_second":329,"per_second_with_audio":-1,"aspect_ratio_multiplier":332,"per_reference_image":-1,"per_frame_image":-1},{"480p":330,"720p":331},0.063,0.145,{"21:9":274},{"resolutions":334,"durations":335,"aspect_ratios":336,"audio_toggle":16,"start_frame":16,"end_frame":16,"max_reference_images":183,"identity_resolutions":-1,"seed":16,"negative_prompt":147},[218,235],{"min":183,"max":222,"step":223},[182,180,178,179,181,244],{"id":338,"type":204,"name":339,"description":340,"maker":282,"family":283,"own":147,"video":341},"hailuo-3-max","Hailuo 3 Max","Fast Hailuo motion, 768p",{"pricing":342,"options":344},{"default_resolution":210,"per_second":343,"per_second_with_audio":-1,"aspect_ratio_multiplier":-1,"per_reference_image":-1,"per_frame_image":-1},{"480p":213,"768p":315},{"resolutions":345,"durations":346,"aspect_ratios":347,"audio_toggle":147,"start_frame":16,"end_frame":16,"max_reference_images":307,"identity_resolutions":-1,"seed":147,"negative_prompt":147},[218,210],{"min":12,"max":222,"step":223},[244,182,180,178,179,181],{"id":349,"type":204,"name":350,"description":351,"maker":352,"family":350,"own":147,"video":353},"grok-imagine","Grok Imagine","Quick clips from a prompt or a start image","xAI",{"pricing":354,"options":358},{"default_resolution":235,"per_second":355,"per_second_with_audio":-1,"aspect_ratio_multiplier":-1,"per_reference_image":-1,"per_frame_image":357},{"480p":315,"720p":356,"1080p":316},0.165,0.014,{"resolutions":359,"durations":360,"aspect_ratios":361,"audio_toggle":147,"start_frame":16,"end_frame":147,"max_reference_images":307,"identity_resolutions":-1,"seed":147,"negative_prompt":147},[218,235,219],{"min":223,"max":222,"step":223},[182,181,178,180,179],{"id":363,"type":204,"name":364,"description":-1,"maker":231,"family":232,"own":147,"video":365},"seedance-2-0-mini","Seedance 2.0 Mini",{"pricing":366,"options":371},{"default_resolution":218,"per_second":367,"per_second_with_audio":-1,"aspect_ratio_multiplier":370,"per_reference_image":-1,"per_frame_image":-1},{"480p":368,"720p":369},0.041,0.088,{"21:9":274},{"resolutions":372,"durations":373,"aspect_ratios":374,"audio_toggle":16,"start_frame":16,"end_frame":16,"max_reference_images":183,"identity_resolutions":-1,"seed":16,"negative_prompt":147},[218,235],{"min":183,"max":222,"step":223},[182,180,178,179,181,244],{"id":376,"type":204,"name":377,"description":378,"maker":248,"family":249,"own":147,"video":379},"veo-3-1-lite","Veo 3.1 Lite","Veo with sound, on every account",{"pricing":380,"options":384},{"default_resolution":235,"per_second":381,"per_second_with_audio":383,"aspect_ratio_multiplier":-1,"per_reference_image":-1,"per_frame_image":-1},{"720p":382,"1080p":213},0.036,{"720p":213,"1080p":315},{"resolutions":385,"durations":386,"aspect_ratios":387,"audio_toggle":16,"start_frame":16,"end_frame":16,"max_reference_images":307,"identity_resolutions":-1,"seed":16,"negative_prompt":16},[235,219],{"min":183,"max":261,"step":29},[182,181],{"id":155,"type":204,"name":389,"description":390,"maker":391,"family":392,"own":147,"video":393},"Wan 3.0","Up to 30 seconds, references and sound","Alibaba","Wan",{"pricing":394,"options":396},{"default_resolution":235,"per_second":395,"per_second_with_audio":-1,"aspect_ratio_multiplier":-1,"per_reference_image":-1,"per_frame_image":-1},{"480p":213,"720p":237,"1080p":253},{"resolutions":397,"durations":398,"aspect_ratios":399,"audio_toggle":16,"start_frame":16,"end_frame":147,"max_reference_images":263,"identity_resolutions":-1,"seed":16,"negative_prompt":147},[218,235,219],{"min":29,"max":242,"step":223},[182,180,178,179,181],{"id":401,"type":169,"name":402,"description":403,"maker":404,"family":405,"own":147,"image":406},"gpt-image-2-5-sunburst","GPT Image 2.5 Sunburst","OpenAI's flagship — precise text, composition and control","OpenAI","GPT Image",{"pricing":407,"options":409},{"per_image":408,"per_extra_reference_image":-1},0.085,{"aspect_ratios":410,"max_images":183},[178,179,180,181,182],{"id":412,"type":169,"name":413,"description":414,"maker":404,"family":405,"own":147,"image":415},"gpt-image-2-5-flare","GPT Image 2.5 Flare","OpenAI's image model tuned for expressive, dramatic frames",{"pricing":416,"options":417},{"per_image":408,"per_extra_reference_image":-1},{"aspect_ratios":418,"max_images":183},[178,179,180,181,182],{"id":420,"type":169,"name":421,"description":422,"maker":248,"family":423,"own":147,"image":424},"nano-banana-2-1","Nano Banana 2.1","Google's fast multimodal image model","Nano Banana",{"pricing":425,"options":426},{"per_image":408,"per_extra_reference_image":-1},{"aspect_ratios":427,"max_images":183},[178,179,180,181,182],{"id":429,"type":169,"name":430,"description":431,"maker":231,"family":432,"own":147,"image":433},"seedream-5-0-pro","Seedream 5.0 Pro","ByteDance's flagship — rich detail and texture","Seedream",{"pricing":434,"options":436},{"per_image":435,"per_extra_reference_image":-1},0.099,{"aspect_ratios":437,"max_images":183},[178,179,180,181,182],{"id":439,"type":169,"name":440,"description":441,"maker":248,"family":423,"own":147,"image":442},"nano-banana-pro","Nano Banana Pro","Google's highest-fidelity image model",{"pricing":443,"options":445},{"per_image":444,"per_extra_reference_image":-1},0.16,{"aspect_ratios":446,"max_images":183},[178,179,180,181,182],{"id":448,"type":169,"name":449,"description":450,"maker":451,"family":452,"own":147,"image":453},"flux-3-image","Flux 3 Image","Black Forest Labs' FLUX.3 — photoreal and typography","Black Forest Labs","Flux",{"pricing":454,"options":455},{"per_image":369,"per_extra_reference_image":-1},{"aspect_ratios":456,"max_images":183},[178,179,180,181,182],{"id":458,"type":169,"name":459,"description":460,"maker":352,"family":350,"own":147,"image":461},"grok-imagine-2-0","Grok Imagine 2.0","xAI's fast, characterful image model",{"pricing":462,"options":463},{"per_image":369,"per_extra_reference_image":-1},{"aspect_ratios":464,"max_images":183},[178,179,180,181,182],{"id":466,"type":204,"name":467,"description":468,"maker":172,"family":469,"own":16,"edit":470,"video":478},"fp-replace-1","Frameport Replace 1","Up to four people in your clip replaced by the faces you send: moves, lips, scene and sound kept.","Frameport Replace",{"tool":471,"formats":472,"min_seconds":29,"max_seconds":305,"min_billed_seconds":29,"max_bytes":475,"max_frames":476,"fps":477,"max_faces":183},"replace",[473,474],"mp4","mov",64000000,600,24,{"pricing":479,"options":482},{"default_resolution":210,"per_second":480,"per_second_with_audio":-1,"aspect_ratio_multiplier":-1,"per_reference_image":-1,"per_frame_image":-1},{"768p":237,"1080p":481},0.25,{"resolutions":483,"durations":-1,"aspect_ratios":-1,"audio_toggle":-1,"start_frame":-1,"end_frame":-1,"max_reference_images":-1,"identity_resolutions":-1,"seed":-1,"negative_prompt":-1},[210,219],{"id":485,"type":204,"name":486,"description":487,"maker":172,"family":488,"own":16,"edit":489,"video":494},"fp-upscale-1","Frameport Upscale 1","Your clip at 1080p or 2K: the same motion, frame rate and sound, sharper detail.","Frameport Upscale",{"tool":490,"formats":491,"min_seconds":223,"max_seconds":242,"min_billed_seconds":12,"max_bytes":492,"max_frames":493,"fps":-1,"max_faces":-1},"upscale",[473,474],100000000,900,{"pricing":495,"options":499},{"default_resolution":219,"per_second":496,"per_second_with_audio":-1,"aspect_ratio_multiplier":-1,"per_reference_image":-1,"per_frame_image":-1},{"1080p":497,"2K":498},0.03,0.05,{"resolutions":500,"durations":-1,"aspect_ratios":-1,"audio_toggle":-1,"start_frame":-1,"end_frame":-1,"max_reference_images":-1,"identity_resolutions":-1,"seed":-1,"negative_prompt":-1},[219,220],1795901824643,"b270fb84-a112-44f2-9801-f99d6c2e889e"]