[{"data":1,"prerenderedAt":460,"buildId":461},["ShallowReactive",2],{"blog:article:ai-video-api-error-codes":3,"catalog":121},{"article":4,"related":98,"studioPath":120},{"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":27,"toc":28,"blocks":48,"faq":92},"ai-video-api-error-codes","\u002Fblog\u002Fai-video-api-error-codes","AI Video API Error Codes: What to Retry","AI video API error codes explained: what each status and code means, which to retry, which cost nothing, and a retry loop that never pays twice.","guides","Guides","2026-11-28",6,[14,15],"seedance-2-5","veo-3-1",false,"ai video api error codes",[17,19,20,21,22,23,24,25,26],"video generation api errors","seedance api error","seedance api request failed 502","veo api access denied","hailuo api error","wan api not working","ai api error 429","api error 402 insufficient balance",1408,[29,33,36,39,42,45],{"id":30,"text":31,"level":32},"two-places-errors-show-up-the-http-answer-and-the-job","Two places errors show up: the HTTP answer and the job",2,{"id":34,"text":35,"level":32},"ai-video-api-error-codes-at-submit","AI video API error codes at submit",{"id":37,"text":38,"level":32},"jobs-that-fail-after-they-start","Jobs that fail after they start",{"id":40,"text":41,"level":32},"content-refusals-content-policy-or-content-filtered","Content refusals: content_policy or content_filtered",{"id":43,"text":44,"level":32},"a-retry-loop-that-does-the-right-thing","A retry loop that does the right thing",{"id":46,"text":47,"level":32},"faq","FAQ",[49,52,57,59,62,64,68,70],{"type":50,"html":51},"html","\u003Cp>AI video API error codes come back in two places: as an HTTP status with a JSON \u003Ccode>code\u003C\u002Fcode> when a request is refused, or on the job itself when a clip fails after it was accepted. Retry \u003Ccode>429\u003C\u002Fcode>, \u003Ccode>500\u003C\u002Fcode> and \u003Ccode>503\u003C\u002Fcode> with the same \u003Ccode>Idempotency-Key\u003C\u002Fcode>, fix the request before you resend a \u003Ccode>400\u003C\u002Fcode>, \u003Ccode>401\u003C\u002Fcode> or \u003Ccode>402\u003C\u002Fcode>, and stop worrying about the bill: on Frameport, nothing refused and nothing failed is ever charged.\u003C\u002Fp>\n\u003Cp>This page lists every code the API returns, what each one means, which are worth a retry, how content refusals differ from errors, and a retry loop you can paste into your own code. The codes are the same for every model, so a Seedance 2.5 script and a Veo 3.1 script handle them the same way.\u003C\u002Fp>\n\u003Ch2 id=\"two-places-errors-show-up-the-http-answer-and-the-job\">Two places errors show up: the HTTP answer and the job\u003C\u002Fh2>\n\u003Cp>A request that starts work, such as \u003Ccode>POST \u002Fv1\u002Fvideos\u002Fgenerations\u003C\u002Fcode>, is checked before anything is held on your balance. If it cannot run, you get a 4xx or 5xx status right away, with this body:\u003C\u002Fp>",{"type":53,"lang":54,"code":55,"title":56},"code","json","{\n  \"error\": {\n    \"code\": \"insufficient_balance\",\n    \"message\": \"Your balance does not cover this request. Nothing was charged.\",\n    \"request_id\": \"req_7Xc2LmQ9vT4nRk8Ws1Bd\"\n  }\n}","402 Payment Required",{"type":50,"html":58},"\u003Cp>Branch on \u003Ccode>code\u003C\u002Fcode>, which never changes for a given case. Show or log \u003Ccode>message\u003C\u002Fcode>, which says what to fix in plain words. Keep \u003Ccode>request_id\u003C\u002Fcode> (also sent as the \u003Ccode>X-Request-Id\u003C\u002Fcode> header): it is what support needs to find your call.\u003C\u002Fp>\n\u003Cp>If the request passes, it answers \u003Ccode>202 Accepted\u003C\u002Fcode> with a generation that is \u003Ccode>queued\u003C\u002Fcode>. From then on, a problem is no longer an HTTP error. The clip renders, and it ends \u003Ccode>succeeded\u003C\u002Fcode> or \u003Ccode>failed\u003C\u002Fcode>; a failed one carries the reason in its \u003Ccode>error\u003C\u002Fcode> field and costs nothing. Your code needs both paths: one for refused requests, one for jobs that fail later.\u003C\u002Fp>\n\u003Ch2 id=\"ai-video-api-error-codes-at-submit\">AI video API error codes at submit\u003C\u002Fh2>\n\u003Cp>These are the answers a submit can get. All of them hold nothing and charge 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 it means\u003C\u002Fth>\u003Cth scope=\"col\">Retry?\u003C\u002Fth>\u003C\u002Ftr>\u003C\u002Fthead>\u003Ctbody>\u003Ctr>\u003Ctd>400\u003C\u002Ftd>\u003Ctd>\u003Ccode>invalid_request\u003C\u002Fcode>\u003C\u002Ftd>\u003Ctd>A field is missing, mistyped or off the model&#39;s grid (a length, resolution or aspect ratio it does not make). The message names the field and what the model takes.\u003C\u002Ftd>\u003Ctd>No: fix the field\u003C\u002Ftd>\u003C\u002Ftr>\n\u003Ctr>\u003Ctd>400\u003C\u002Ftd>\u003Ctd>\u003Ccode>model_not_found\u003C\u002Fcode>\u003C\u002Ftd>\u003Ctd>Unknown model id, or a model sent to the wrong endpoint: a video model to the image route, a clip editor to a generation route.\u003C\u002Ftd>\u003Ctd>No\u003C\u002Ftd>\u003C\u002Ftr>\n\u003Ctr>\u003Ctd>400\u003C\u002Ftd>\u003Ctd>\u003Ccode>content_policy\u003C\u002Fcode>\u003C\u002Ftd>\u003Ctd>The model&#39;s maker refused the request.\u003C\u002Ftd>\u003Ctd>No: reword or pick another model\u003C\u002Ftd>\u003C\u002Ftr>\n\u003Ctr>\u003Ctd>400\u003C\u002Ftd>\u003Ctd>\u003Ccode>content_filtered\u003C\u002Fcode>\u003C\u002Ftd>\u003Ctd>Your workspace&#39;s content filter refused the prompt.\u003C\u002Ftd>\u003Ctd>No\u003C\u002Ftd>\u003C\u002Ftr>\n\u003Ctr>\u003Ctd>400\u003C\u002Ftd>\u003Ctd>\u003Ccode>invalid_input\u003C\u002Fcode>\u003C\u002Ftd>\u003Ctd>A picture you sent could not be used.\u003C\u002Ftd>\u003Ctd>No: send another picture\u003C\u002Ftd>\u003C\u002Ftr>\n\u003Ctr>\u003Ctd>400\u003C\u002Ftd>\u003Ctd>\u003Ccode>invalid_video\u003C\u002Fcode>\u003C\u002Ftd>\u003Ctd>The clip of a clip edit could not be used: its address, format, length, size or frame rate.\u003C\u002Ftd>\u003Ctd>No: convert the clip\u003C\u002Ftd>\u003C\u002Ftr>\n\u003Ctr>\u003Ctd>400\u003C\u002Ftd>\u003Ctd>\u003Ccode>max_cost_exceeded\u003C\u002Fcode>\u003C\u002Ftd>\u003Ctd>The price is above the \u003Ccode>max_cost_usd\u003C\u002Fcode> you set.\u003C\u002Ftd>\u003Ctd>No: raise the cap or shrink the clip\u003C\u002Ftd>\u003C\u002Ftr>\n\u003Ctr>\u003Ctd>400\u003C\u002Ftd>\u003Ctd>\u003Ccode>file_expired\u003C\u002Fcode>\u003C\u002Ftd>\u003Ctd>An upload or file named in the request is gone.\u003C\u002Ftd>\u003Ctd>No: upload it again\u003C\u002Ftd>\u003C\u002Ftr>\n\u003Ctr>\u003Ctd>401\u003C\u002Ftd>\u003Ctd>\u003Ccode>unauthorized\u003C\u002Fcode>\u003C\u002Ftd>\u003Ctd>Missing, invalid or revoked key.\u003C\u002Ftd>\u003Ctd>No: check the key\u003C\u002Ftd>\u003C\u002Ftr>\n\u003Ctr>\u003Ctd>402\u003C\u002Ftd>\u003Ctd>\u003Ccode>insufficient_balance\u003C\u002Fcode>\u003C\u002Ftd>\u003Ctd>The balance does not cover the price held at submit.\u003C\u002Ftd>\u003Ctd>After a top-up\u003C\u002Ftd>\u003C\u002Ftr>\n\u003Ctr>\u003Ctd>409\u003C\u002Ftd>\u003Ctd>\u003Ccode>idempotency_conflict\u003C\u002Fcode>\u003C\u002Ftd>\u003Ctd>This \u003Ccode>Idempotency-Key\u003C\u002Fcode> was already used with a different body.\u003C\u002Ftd>\u003Ctd>No: use a new key\u003C\u002Ftd>\u003C\u002Ftr>\n\u003Ctr>\u003Ctd>409\u003C\u002Ftd>\u003Ctd>\u003Ccode>request_in_progress\u003C\u002Fcode>\u003C\u002Ftd>\u003Ctd>The first request with this key has not answered yet.\u003C\u002Ftd>\u003Ctd>Yes, after \u003Ccode>Retry-After\u003C\u002Fcode>\u003C\u002Ftd>\u003C\u002Ftr>\n\u003Ctr>\u003Ctd>413\u003C\u002Ftd>\u003Ctd>\u003Ccode>invalid_request\u003C\u002Fcode>\u003C\u002Ftd>\u003Ctd>The body is over 16 MB. Send pictures by URL or upload them.\u003C\u002Ftd>\u003Ctd>No\u003C\u002Ftd>\u003C\u002Ftr>\n\u003Ctr>\u003Ctd>429\u003C\u002Ftd>\u003Ctd>\u003Ccode>rate_limited\u003C\u002Fcode>\u003C\u002Ftd>\u003Ctd>Past the workspace&#39;s requests a minute (60).\u003C\u002Ftd>\u003Ctd>Yes, after \u003Ccode>Retry-After\u003C\u002Fcode>\u003C\u002Ftd>\u003C\u002Ftr>\n\u003Ctr>\u003Ctd>429\u003C\u002Ftd>\u003Ctd>\u003Ccode>concurrency_limit\u003C\u002Fcode>\u003C\u002Ftd>\u003Ctd>Too many generations running at once (20 per workspace).\u003C\u002Ftd>\u003Ctd>Yes, when one finishes\u003C\u002Ftd>\u003C\u002Ftr>\n\u003Ctr>\u003Ctd>500\u003C\u002Ftd>\u003Ctd>\u003Ccode>internal_error\u003C\u002Fcode>\u003C\u002Ftd>\u003Ctd>Something broke on our side.\u003C\u002Ftd>\u003Ctd>Yes, with the same key\u003C\u002Ftd>\u003C\u002Ftr>\n\u003Ctr>\u003Ctd>503\u003C\u002Ftd>\u003Ctd>\u003Ccode>model_unavailable\u003C\u002Fcode>\u003C\u002Ftd>\u003Ctd>This model cannot take work right now.\u003C\u002Ftd>\u003Ctd>Yes, later\u003C\u002Ftd>\u003C\u002Ftr>\n\u003Ctr>\u003Ctd>503\u003C\u002Ftd>\u003Ctd>\u003Ccode>service_unavailable\u003C\u002Fcode>\u003C\u002Ftd>\u003Ctd>The service cannot take work right now.\u003C\u002Ftd>\u003Ctd>Yes, later\u003C\u002Ftd>\u003C\u002Ftr>\u003C\u002Ftbody>\u003C\u002Ftable>\u003C\u002Fdiv>\n\u003Cp>Two details answer common searches. There is no \u003Ccode>422\u003C\u002Fcode> here: a body the API cannot accept is a \u003Ccode>400 invalid_request\u003C\u002Fcode> whose message points at the field. And the API never answers \u003Ccode>502\u003C\u002Fcode>. When a model or the service is down, the answer is a \u003Ccode>503\u003C\u002Fcode> with the JSON body above, so a &quot;request failed 502&quot; error with an HTML page comes from something between you and the API (a proxy, a load balancer), not from the API itself.\u003C\u002Fp>\n\u003Cp>Reads have a few codes of their own: \u003Ccode>403 forbidden\u003C\u002Fcode> for a signed file link that has expired (read the generation again for a fresh one), \u003Ccode>404 not_found\u003C\u002Fcode> for an id that does not belong to your workspace, \u003Ccode>409 not_ready\u003C\u002Fcode> when you download a file that is not finished, and \u003Ccode>410 file_expired\u003C\u002Fcode> for a file that is no longer stored. The \u003Ca href=\"\u002Fdocs\u002Ferrors\">errors reference\u003C\u002Fa> lists every status with its exact wording.\u003C\u002Fp>\n\u003Ch2 id=\"jobs-that-fail-after-they-start\">Jobs that fail after they start\u003C\u002Fh2>\n\u003Cp>Once a request is accepted, the job can still fail: the model gives up, runs out of time, or refuses the content partway. The generation then reads like this:\u003C\u002Fp>",{"type":53,"lang":54,"code":60,"title":61},"{\n  \"id\": \"gen_9sLq2VbX7mN4kR1tYc8WpE\",\n  \"status\": \"failed\",\n  \"reserved_usd\": 1.35,\n  \"cost_usd\": 0,\n  \"error\": { \"code\": \"generation_failed\", \"message\": \"The generation failed. Nothing was charged.\" }\n}","GET \u002Fv1\u002Fvideos\u002Fgenerations\u002F{id} (abridged)",{"type":50,"html":63},"\u003Cp>The code is one of four:\u003C\u002Fp>\n\u003Cul>\n\u003Cli>\u003Ccode>generation_failed\u003C\u002Fcode>: the render did not complete. Submit it again.\u003C\u002Fli>\n\u003Cli>\u003Ccode>timeout\u003C\u002Fcode>: the job took too long and was cancelled. Submit it again, perhaps shorter.\u003C\u002Fli>\n\u003Cli>\u003Ccode>content_policy\u003C\u002Fcode>: the model refused the content after it started. Reword before you resend.\u003C\u002Fli>\n\u003Cli>\u003Ccode>invalid_input\u003C\u002Fcode>: a picture turned out to be unusable during the render.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp>In every case \u003Ccode>cost_usd\u003C\u002Fcode> is 0 and the hold went back to your balance the moment the job closed. For an image batch, each output settles on its own: three images can succeed while one fails, and only three are charged. Check each output&#39;s \u003Ccode>status\u003C\u002Fcode> rather than the generation&#39;s alone. The rules are laid out in \u003Ca href=\"\u002Fblog\u002Fdo-failed-ai-generations-cost-money\">what a failed generation costs\u003C\u002Fa>.\u003C\u002Fp>\n\u003Ch2 id=\"content-refusals-content-policy-or-content-filtered\">Content refusals: content_policy or content_filtered\u003C\u002Fh2>\n\u003Cp>Two codes look alike and come from different places. \u003Ccode>content_policy\u003C\u002Fcode> means the model&#39;s maker turned the request down. Third-party models such as Veo 3.1 and Seedance 2.5 keep their makers&#39; rules whatever your settings are, so rewording or moving to another model are the only ways forward. \u003Ccode>content_filtered\u003C\u002Fcode> means your own workspace&#39;s filter stopped the prompt before anything was held. That filter is on by default and reads the prompt (for a clip edit, its note and targets). An owner or admin aged 18 or older can turn it off in Settings, and Frameport&#39;s own models then render without it, while third-party models still apply their makers&#39; rules. The \u003Ca href=\"\u002Facceptable-use\">acceptable use policy\u003C\u002Fa> applies either way.\u003C\u002Fp>\n\u003Cp>Neither refusal costs anything. The guide to \u003Ca href=\"\u002Fblog\u002Fwhy-was-my-ai-video-prompt-refused\">refused AI video prompts\u003C\u002Fa> helps you tell which rule you met and how to rephrase within it.\u003C\u002Fp>\n\u003Ch2 id=\"a-retry-loop-that-does-the-right-thing\">A retry loop that does the right thing\u003C\u002Fh2>\n\u003Cp>A good retry loop retries only what can succeed on a second try, waits as long as the API asks, and never starts a clip twice. The \u003Ccode>Idempotency-Key\u003C\u002Fcode> handles the last part: sent again with the same body, it returns the generation the first request made instead of a new one.\u003C\u002Fp>",{"type":53,"lang":65,"code":66,"title":67},"python","import os\nimport random\nimport time\nimport uuid\n\nimport requests\n\nAPI = \"https:\u002F\u002Fframeport.ai\u002Fv1\"\nHEADERS = {\"Authorization\": f\"Bearer {os.environ['FRAMEPORT_API_KEY']}\"}\nRETRY_STATUS = {429, 500, 502, 503, 504}  # 502 and 504 can only come from a proxy on the way\n\n\nclass ApiError(Exception):\n    def __init__(self, status, error):\n        super().__init__(f\"{status} {error['code']}: {error['message']} ({error['request_id']})\")\n        self.status = status\n        self.code = error[\"code\"]\n\n\ndef backoff(attempt):\n    return min(60, 2 ** attempt) + random.random()\n\n\ndef submit_video(body, key=None, attempts=6):\n    key = key or str(uuid.uuid4())  # one key for every try of this clip\n    for attempt in range(attempts):\n        try:\n            res = requests.post(\n                f\"{API}\u002Fvideos\u002Fgenerations\",\n                headers={**HEADERS, \"Idempotency-Key\": key},\n                json=body,\n                timeout=60,\n            )\n        except requests.RequestException:\n            time.sleep(backoff(attempt))  # it may have arrived: the key makes the retry safe\n            continue\n        try:\n            data = res.json()\n        except ValueError:  # not our JSON: a proxy or a cut connection answered\n            data = {\"error\": {\"code\": f\"http_{res.status_code}\", \"message\": res.reason, \"request_id\": \"-\"}}\n        if res.ok:\n            return data  # 202 the first time, 200 when the key replays it\n        error = data[\"error\"]\n        if res.status_code not in RETRY_STATUS and error[\"code\"] != \"request_in_progress\":\n            raise ApiError(res.status_code, error)  # 400, 401, 402, 409 conflict: fix first\n        wait = res.headers.get(\"Retry-After\")\n        time.sleep(float(wait) if wait else backoff(attempt))\n    raise RuntimeError(f\"gave up after {attempts} tries (Idempotency-Key {key})\")\n\n\ndef wait_for(gen, every=5, timeout=1800):\n    deadline = time.monotonic() + timeout\n    while gen[\"status\"] in (\"queued\", \"running\"):\n        if time.monotonic() > deadline:\n            raise TimeoutError(gen[\"id\"])\n        time.sleep(every)\n        gen = requests.get(f\"{API}\u002Fgenerations\u002F{gen['id']}\", headers=HEADERS, timeout=30).json()\n    return gen\n\n\nbody = {\"model\": \"seedance-2-5\", \"prompt\": \"A tram crosses a snowy bridge at night, wide shot\", \"duration\": 5}\ngen = wait_for(submit_video(body))\nif gen.get(\"error\") and gen[\"error\"][\"code\"] in (\"generation_failed\", \"timeout\"):\n    gen = wait_for(submit_video(body))  # a NEW key: the old one would return the failed job\nprint(gen[\"status\"], gen[\"cost_usd\"])","retry.py",{"type":50,"html":69},"\u003Cp>Three choices in that loop matter. A network error is retried with the same key, because you cannot know whether the first request arrived. A \u003Ccode>400\u003C\u002Fcode>, \u003Ccode>401\u003C\u002Fcode> or \u003Ccode>402\u003C\u002Fcode> stops at once, since the same call would fail the same way. And a job that failed after the \u003Ccode>202\u003C\u002Fcode> gets a new key: the old one stays bound to the failed generation for 24 hours. The \u003Ca href=\"\u002Fblog\u002Fidempotency-keys-ai-generation\">idempotency guide\u003C\u002Fa> covers the key in depth, and the \u003Ca href=\"\u002Fblog\u002Fai-api-rate-limits-429\">rate limits guide\u003C\u002Fa> explains how to stay under the \u003Ccode>429\u003C\u002Fcode>s in the first place.\u003C\u002Fp>",{"type":46,"id":46,"title":47,"items":71},[72,76,80,84,88],{"q":73,"html":74,"text":75},"What does error 429 mean on an AI video API?","\u003Cp>The workspace sent more requests that start work than it may in a minute (\u003Ccode>rate_limited\u003C\u002Fcode>), or already has 20 generations running (\u003Ccode>concurrency_limit\u003C\u002Fcode>). Wait for the seconds in the \u003Ccode>Retry-After\u003C\u002Fcode> header, then send the same request with the same \u003Ccode>Idempotency-Key\u003C\u002Fcode>.\u003C\u002Fp>","The workspace sent more requests that start work than it may in a minute (rate_limited), or already has 20 generations running (concurrency_limit). Wait for the seconds in the Retry-After header, then send the same request with the same Idempotency-Key.",{"q":77,"html":78,"text":79},"Is a failed AI video charged?","\u003Cp>No. The price is held when you submit and charged only if the clip succeeds. A refused request holds nothing, and a job that fails after it started shows \u003Ccode>cost_usd\u003C\u002Fcode> at 0 because the hold went back to your balance.\u003C\u002Fp>","No. The price is held when you submit and charged only if the clip succeeds. A refused request holds nothing, and a job that fails after it started shows cost_usd at 0 because the hold went back to your balance.",{"q":81,"html":82,"text":83},"Why do I get 400 invalid_request?","\u003Cp>A field is missing, has the wrong type, or asks for something the model does not make, such as a clip length off its grid. The message names the field and lists what the model takes, so read it, fix that field, and send the request again. Each \u003Ca href=\"\u002Fmodels\u002Fseedance-2-5\">model page\u003C\u002Fa> lists the values its requests may use.\u003C\u002Fp>","A field is missing, has the wrong type, or asks for something the model does not make, such as a clip length off its grid. The message names the field and lists what the model takes, so read it, fix that field, and send the request again. Each model page lists the values its requests may use.",{"q":85,"html":86,"text":87},"What should I do with request_id?","\u003Cp>Log it with the error. It is in the body of every error and in the \u003Ccode>X-Request-Id\u003C\u002Fcode> header, and it lets support find your exact call if you need help.\u003C\u002Fp>","Log it with the error. It is in the body of every error and in the X-Request-Id header, and it lets support find your exact call if you need help.",{"q":89,"html":90,"text":91},"Why does my request return 503?","\u003Cp>The model or the service cannot take work for the moment. Nothing was held. Retry after a short, growing delay with the same \u003Ccode>Idempotency-Key\u003C\u002Fcode>, or move the job to another model in the meantime.\u003C\u002Fp>","The model or the service cannot take work for the moment. Nothing was held. Retry after a short, growing delay with the same Idempotency-Key, or move the job to another model in the meantime.",[93,94,95,96,97],{"q":73,"html":74,"text":75},{"q":77,"html":78,"text":79},{"q":81,"html":82,"text":83},{"q":85,"html":86,"text":87},{"q":89,"html":90,"text":91},[99,107,113],{"slug":100,"path":101,"title":102,"description":103,"category":9,"categoryLabel":10,"date":11,"updated":11,"readingMinutes":104,"models":105,"featured":16},"ai-api-rate-limits-429","\u002Fblog\u002Fai-api-rate-limits-429","AI API Rate Limits and 429s for Image and Video Jobs","How an AI API rate limit works for image and video jobs: requests a minute versus jobs at once, the headers, Retry-After, and a queue that avoids 429s.",5,[14,106,15],"nano-banana-pro",{"slug":108,"path":109,"title":110,"description":111,"category":9,"categoryLabel":10,"date":11,"updated":11,"readingMinutes":12,"models":112,"featured":16},"ai-video-api-webhooks","\u002Fblog\u002Fai-video-api-webhooks","AI Video API Webhooks: Stop Polling for Finished Clips","How an AI video API webhook works: two events, signed deliveries, retries, signature checks in Node and Python, and what to do when one is missed.",[14,15],{"slug":114,"path":115,"title":116,"description":117,"category":9,"categoryLabel":10,"date":11,"updated":11,"readingMinutes":12,"models":118,"featured":16},"how-to-price-an-ai-video-before-you-run-it","\u002Fblog\u002Fhow-to-price-an-ai-video-before-you-run-it","AI Video Cost Calculator: Price a Clip Before It Runs","An AI video cost calculator in one API call: quote any request, see the hold at submit, cap it with max_cost_usd and keep agents inside a budget.",[14,15,119],"fp-replace-1","\u002Fstudio",[122,141,150,160,186,203,222,238,253,268,283,297,308,322,335,348,361,372,380,389,399,407,417,425,443],{"id":123,"type":124,"name":125,"description":126,"maker":127,"family":127,"own":128,"image":129,"private":140},"fp-image-2","image","Frameport Image 2","Photoreal renders, up to 4 reference images.","Frameport",true,{"pricing":130,"options":132},{"per_image":131,"per_extra_reference_image":-1},0.025,{"aspect_ratios":133,"max_images":139},[134,135,136,137,138],"1:1","3:4","4:3","9:16","16:9",4,{},{"id":142,"type":124,"name":143,"description":144,"maker":127,"family":127,"own":128,"image":145,"private":149},"fp-image-3","Frameport Image 3","Clean photoreal renders for characters.",{"pricing":146,"options":147},{"per_image":131,"per_extra_reference_image":-1},{"aspect_ratios":148,"max_images":139},[134,135,136,137,138],{},{"id":151,"type":124,"name":152,"description":153,"maker":127,"family":127,"own":128,"image":154,"private":159},"fp-image-1","Frameport Image 1","Generation and reference-driven renders, up to 10 reference images.",{"pricing":155,"options":157},{"per_image":131,"per_extra_reference_image":156},0.0025,{"aspect_ratios":158,"max_images":139},[134,135,136,137,138],{},{"id":161,"type":162,"name":163,"description":164,"maker":127,"family":165,"own":128,"video":166,"private":184},"fp-motion-1","video","Frameport Motion 1","Our video engine, with native sound.","Frameport Motion",{"pricing":167,"options":174},{"default_resolution":168,"per_second":169,"per_second_with_audio":-1,"aspect_ratio_multiplier":-1,"per_reference_image":-1,"per_frame_image":-1},"768p",{"480p":170,"768p":171,"1080p":172,"2K":173},0.02,0.06,0.08,0.095,{"resolutions":175,"durations":179,"aspect_ratios":182,"audio_toggle":128,"start_frame":128,"end_frame":128,"max_reference_images":139,"identity_resolutions":183,"seed":16,"negative_prompt":16},[176,168,177,178],"480p","1080p","2K",{"min":104,"max":180,"step":181},15,1,[138,137,134,136,135],[168,177],{"resolutions":185},[176,168],{"id":14,"type":162,"name":187,"description":188,"maker":189,"family":190,"own":16,"video":191},"Seedance 2.5","The long-take flagship — up to 30 seconds with sound","ByteDance","Seedance",{"pricing":192,"options":197},{"default_resolution":193,"per_second":194,"per_second_with_audio":-1,"aspect_ratio_multiplier":-1,"per_reference_image":-1,"per_frame_image":-1},"720p",{"480p":195,"720p":196},0.12,0.27,{"resolutions":198,"durations":199,"aspect_ratios":201,"audio_toggle":128,"start_frame":128,"end_frame":128,"max_reference_images":139,"identity_resolutions":-1,"seed":128,"negative_prompt":16},[176,193],{"min":139,"max":200,"step":181},30,[138,136,134,135,137,202],"21:9",{"id":15,"type":162,"name":204,"description":205,"maker":206,"family":207,"own":16,"video":208},"Veo 3.1","Google’s flagship — up to 4K with native audio","Google","Veo",{"pricing":209,"options":215},{"default_resolution":177,"per_second":210,"per_second_with_audio":213,"aspect_ratio_multiplier":-1,"per_reference_image":-1,"per_frame_image":-1},{"720p":211,"1080p":211,"4K":212},0.235,0.465,{"720p":212,"1080p":212,"4K":214},0.695,{"resolutions":216,"durations":218,"aspect_ratios":220,"audio_toggle":128,"start_frame":128,"end_frame":128,"max_reference_images":221,"identity_resolutions":-1,"seed":128,"negative_prompt":128},[193,177,217],"4K",{"min":139,"max":219,"step":32},8,[138,137],3,{"id":223,"type":162,"name":224,"description":225,"maker":189,"family":190,"own":16,"video":226},"seedance-2-0","Seedance 2.0","Character consistency, up to 4K",{"pricing":227,"options":234},{"default_resolution":193,"per_second":228,"per_second_with_audio":-1,"aspect_ratio_multiplier":232,"per_reference_image":-1,"per_frame_image":-1},{"480p":172,"720p":229,"1080p":230,"4K":231},0.175,0.435,0.9,{"21:9":233},1.32,{"resolutions":235,"durations":236,"aspect_ratios":237,"audio_toggle":128,"start_frame":128,"end_frame":128,"max_reference_images":139,"identity_resolutions":-1,"seed":128,"negative_prompt":16},[176,193,177,217],{"min":139,"max":180,"step":181},[138,136,134,135,137,202],{"id":239,"type":162,"name":240,"description":241,"maker":242,"family":243,"own":16,"video":244},"hailuo-3","Hailuo 3","2K cinematic physics, subject references","MiniMax","Hailuo",{"pricing":245,"options":249},{"default_resolution":178,"per_second":246,"per_second_with_audio":-1,"aspect_ratio_multiplier":-1,"per_reference_image":248,"per_frame_image":-1},{"2K":247},0.15,0.047,{"resolutions":250,"durations":251,"aspect_ratios":252,"audio_toggle":128,"start_frame":128,"end_frame":128,"max_reference_images":221,"identity_resolutions":-1,"seed":16,"negative_prompt":16},[178],{"min":104,"max":180,"step":181},[202,138,136,134,135,137],{"id":254,"type":162,"name":255,"description":256,"maker":257,"family":257,"own":16,"video":258},"runway-gen-4-5","Runway Gen-4.5","Cinematic motion, strong prompt adherence","Runway",{"pricing":259,"options":262},{"default_resolution":193,"per_second":260,"per_second_with_audio":-1,"aspect_ratio_multiplier":-1,"per_reference_image":-1,"per_frame_image":-1},{"720p":261},0.14,{"resolutions":263,"durations":264,"aspect_ratios":266,"audio_toggle":16,"start_frame":128,"end_frame":16,"max_reference_images":267,"identity_resolutions":-1,"seed":128,"negative_prompt":16},[193],{"min":32,"max":265,"step":181},10,[138,137],0,{"id":269,"type":162,"name":270,"description":271,"maker":206,"family":207,"own":16,"video":272},"veo-3-1-fast","Veo 3.1 Fast","Veo quality, faster and a quarter of the price",{"pricing":273,"options":279},{"default_resolution":193,"per_second":274,"per_second_with_audio":277,"aspect_ratio_multiplier":-1,"per_reference_image":-1,"per_frame_image":-1},{"720p":275,"1080p":195,"4K":276},0.093,0.29,{"720p":195,"1080p":261,"4K":278},0.35,{"resolutions":280,"durations":281,"aspect_ratios":282,"audio_toggle":128,"start_frame":128,"end_frame":128,"max_reference_images":221,"identity_resolutions":-1,"seed":128,"negative_prompt":128},[193,177,217],{"min":139,"max":219,"step":32},[138,137],{"id":284,"type":162,"name":285,"description":286,"maker":189,"family":190,"own":16,"video":287},"seedance-2-0-fast","Seedance 2.0 Fast","Seedance references and sound, faster",{"pricing":288,"options":293},{"default_resolution":193,"per_second":289,"per_second_with_audio":-1,"aspect_ratio_multiplier":292,"per_reference_image":-1,"per_frame_image":-1},{"480p":290,"720p":291},0.063,0.145,{"21:9":233},{"resolutions":294,"durations":295,"aspect_ratios":296,"audio_toggle":128,"start_frame":128,"end_frame":128,"max_reference_images":139,"identity_resolutions":-1,"seed":128,"negative_prompt":16},[176,193],{"min":139,"max":180,"step":181},[138,136,134,135,137,202],{"id":298,"type":162,"name":299,"description":300,"maker":242,"family":243,"own":16,"video":301},"hailuo-3-max","Hailuo 3 Max","Fast Hailuo motion, 768p",{"pricing":302,"options":304},{"default_resolution":168,"per_second":303,"per_second_with_audio":-1,"aspect_ratio_multiplier":-1,"per_reference_image":-1,"per_frame_image":-1},{"480p":171,"768p":275},{"resolutions":305,"durations":306,"aspect_ratios":307,"audio_toggle":16,"start_frame":128,"end_frame":128,"max_reference_images":267,"identity_resolutions":-1,"seed":16,"negative_prompt":16},[176,168],{"min":104,"max":180,"step":181},[202,138,136,134,135,137],{"id":309,"type":162,"name":310,"description":311,"maker":312,"family":310,"own":16,"video":313},"grok-imagine","Grok Imagine","Quick clips from a prompt or a start image","xAI",{"pricing":314,"options":318},{"default_resolution":193,"per_second":315,"per_second_with_audio":-1,"aspect_ratio_multiplier":-1,"per_reference_image":-1,"per_frame_image":317},{"480p":275,"720p":316,"1080p":276},0.165,0.014,{"resolutions":319,"durations":320,"aspect_ratios":321,"audio_toggle":16,"start_frame":128,"end_frame":16,"max_reference_images":267,"identity_resolutions":-1,"seed":16,"negative_prompt":16},[176,193,177],{"min":181,"max":180,"step":181},[138,137,134,136,135],{"id":323,"type":162,"name":324,"description":-1,"maker":189,"family":190,"own":16,"video":325},"seedance-2-0-mini","Seedance 2.0 Mini",{"pricing":326,"options":331},{"default_resolution":176,"per_second":327,"per_second_with_audio":-1,"aspect_ratio_multiplier":330,"per_reference_image":-1,"per_frame_image":-1},{"480p":328,"720p":329},0.041,0.088,{"21:9":233},{"resolutions":332,"durations":333,"aspect_ratios":334,"audio_toggle":128,"start_frame":128,"end_frame":128,"max_reference_images":139,"identity_resolutions":-1,"seed":128,"negative_prompt":16},[176,193],{"min":139,"max":180,"step":181},[138,136,134,135,137,202],{"id":336,"type":162,"name":337,"description":338,"maker":206,"family":207,"own":16,"video":339},"veo-3-1-lite","Veo 3.1 Lite","Veo with sound, on every account",{"pricing":340,"options":344},{"default_resolution":193,"per_second":341,"per_second_with_audio":343,"aspect_ratio_multiplier":-1,"per_reference_image":-1,"per_frame_image":-1},{"720p":342,"1080p":171},0.036,{"720p":171,"1080p":275},{"resolutions":345,"durations":346,"aspect_ratios":347,"audio_toggle":128,"start_frame":128,"end_frame":128,"max_reference_images":267,"identity_resolutions":-1,"seed":128,"negative_prompt":128},[193,177],{"min":139,"max":219,"step":32},[138,137],{"id":349,"type":162,"name":350,"description":351,"maker":352,"family":353,"own":16,"video":354},"wan-3","Wan 3.0","Up to 30 seconds, references and sound","Alibaba","Wan",{"pricing":355,"options":357},{"default_resolution":193,"per_second":356,"per_second_with_audio":-1,"aspect_ratio_multiplier":-1,"per_reference_image":-1,"per_frame_image":-1},{"480p":171,"720p":195,"1080p":211},{"resolutions":358,"durations":359,"aspect_ratios":360,"audio_toggle":128,"start_frame":128,"end_frame":16,"max_reference_images":221,"identity_resolutions":-1,"seed":128,"negative_prompt":16},[176,193,177],{"min":32,"max":200,"step":181},[138,136,134,135,137],{"id":362,"type":124,"name":363,"description":364,"maker":365,"family":366,"own":16,"image":367},"gpt-image-2-5-sunburst","GPT Image 2.5 Sunburst","OpenAI's flagship — precise text, composition and control","OpenAI","GPT Image",{"pricing":368,"options":370},{"per_image":369,"per_extra_reference_image":-1},0.085,{"aspect_ratios":371,"max_images":139},[134,135,136,137,138],{"id":373,"type":124,"name":374,"description":375,"maker":365,"family":366,"own":16,"image":376},"gpt-image-2-5-flare","GPT Image 2.5 Flare","OpenAI's image model tuned for expressive, dramatic frames",{"pricing":377,"options":378},{"per_image":369,"per_extra_reference_image":-1},{"aspect_ratios":379,"max_images":139},[134,135,136,137,138],{"id":381,"type":124,"name":382,"description":383,"maker":206,"family":384,"own":16,"image":385},"nano-banana-2-1","Nano Banana 2.1","Google's fast multimodal image model","Nano Banana",{"pricing":386,"options":387},{"per_image":369,"per_extra_reference_image":-1},{"aspect_ratios":388,"max_images":139},[134,135,136,137,138],{"id":390,"type":124,"name":391,"description":392,"maker":189,"family":393,"own":16,"image":394},"seedream-5-0-pro","Seedream 5.0 Pro","ByteDance's flagship — rich detail and texture","Seedream",{"pricing":395,"options":397},{"per_image":396,"per_extra_reference_image":-1},0.099,{"aspect_ratios":398,"max_images":139},[134,135,136,137,138],{"id":106,"type":124,"name":400,"description":401,"maker":206,"family":384,"own":16,"image":402},"Nano Banana Pro","Google's highest-fidelity image model",{"pricing":403,"options":405},{"per_image":404,"per_extra_reference_image":-1},0.16,{"aspect_ratios":406,"max_images":139},[134,135,136,137,138],{"id":408,"type":124,"name":409,"description":410,"maker":411,"family":412,"own":16,"image":413},"flux-3-image","Flux 3 Image","Black Forest Labs' FLUX.3 — photoreal and typography","Black Forest Labs","Flux",{"pricing":414,"options":415},{"per_image":329,"per_extra_reference_image":-1},{"aspect_ratios":416,"max_images":139},[134,135,136,137,138],{"id":418,"type":124,"name":419,"description":420,"maker":312,"family":310,"own":16,"image":421},"grok-imagine-2-0","Grok Imagine 2.0","xAI's fast, characterful image model",{"pricing":422,"options":423},{"per_image":329,"per_extra_reference_image":-1},{"aspect_ratios":424,"max_images":139},[134,135,136,137,138],{"id":119,"type":162,"name":426,"description":427,"maker":127,"family":428,"own":128,"edit":429,"video":437},"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":430,"formats":431,"min_seconds":32,"max_seconds":265,"min_billed_seconds":32,"max_bytes":434,"max_frames":435,"fps":436,"max_faces":139},"replace",[432,433],"mp4","mov",64000000,600,24,{"pricing":438,"options":441},{"default_resolution":168,"per_second":439,"per_second_with_audio":-1,"aspect_ratio_multiplier":-1,"per_reference_image":-1,"per_frame_image":-1},{"768p":195,"1080p":440},0.25,{"resolutions":442,"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},[168,177],{"id":444,"type":162,"name":445,"description":446,"maker":127,"family":447,"own":128,"edit":448,"video":453},"fp-upscale-1","Frameport Upscale 1","Your clip at 1080p or 2K: the same motion, frame rate and sound, sharper detail.","Frameport Upscale",{"tool":449,"formats":450,"min_seconds":181,"max_seconds":200,"min_billed_seconds":104,"max_bytes":451,"max_frames":452,"fps":-1,"max_faces":-1},"upscale",[432,433],100000000,900,{"pricing":454,"options":458},{"default_resolution":177,"per_second":455,"per_second_with_audio":-1,"aspect_ratio_multiplier":-1,"per_reference_image":-1,"per_frame_image":-1},{"1080p":456,"2K":457},0.03,0.05,{"resolutions":459,"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},[177,178],1795901824862,"b270fb84-a112-44f2-9801-f99d6c2e889e"]