[{"data":1,"prerenderedAt":481,"buildId":482},["ShallowReactive",2],{"blog:article:upload-files-to-ai-generation-api":3,"catalog":143},{"article":4,"related":117,"studioPath":142},{"slug":5,"path":6,"title":7,"description":8,"category":9,"categoryLabel":10,"date":11,"updated":11,"readingMinutes":12,"models":13,"featured":17,"primaryKeyword":18,"keywords":19,"words":29,"toc":30,"blocks":53,"faq":110},"upload-files-to-ai-generation-api","\u002Fblog\u002Fupload-files-to-ai-generation-api","Upload Image to API: URLs, Base64 and Upload IDs","How to send your own pictures, frames, faces and clips to an image or video API: URLs, base64 data URIs or upload ids, with limits, formats and expiry.","guides","Guides","2026-11-28",7,[14,15,16],"fp-replace-1","seedance-2-5","fp-image-1",false,"upload image to api",[18,20,21,22,23,24,25,26,27,28],"ai video api upload","face swap api upload","seedance 2.5 api upload","seedance 2.0 api upload","veo 3.1 api upload","openai api upload image","gpt api upload image","base64 image api","api file upload",1591,[31,35,38,41,44,47,50],{"id":32,"text":33,"level":34},"three-ways-to-upload-an-image-to-the-api","Three ways to upload an image to the API",2,{"id":36,"text":37,"level":34},"which-fields-take-a-file","Which fields take a file",{"id":39,"text":40,"level":34},"uploads-and-their-ids","Uploads and their ids",{"id":42,"text":43,"level":34},"limits-and-formats","Limits and formats",{"id":45,"text":46,"level":34},"expiry-how-long-each-one-lasts","Expiry: how long each one lasts",{"id":48,"text":49,"level":34},"upload-a-clip-and-a-face-then-swap","Upload a clip and a face, then swap",{"id":51,"text":52,"level":34},"faq","FAQ",[54,57,62,64,67,69,73,75,77,79,82,84],{"type":55,"html":56},"html","\u003Cp>To upload an image to an API for generation, you have three choices: put a public URL in the request, paste the picture inline as a base64 data URI, or send the file once to an upload endpoint and use the id it returns. On Frameport all three work for reference pictures, first and last frames and faces; a clip on your disk goes up as an upload, and anything you already generated needs none of them, because its \u003Ccode>file_…\u003C\u002Fcode> id can be sent as it is.\u003C\u002Fp>\n\u003Cp>This guide compares the ways, shows which field takes what, lists the limits and formats, explains how long each id lives, and ends with a script that uploads a clip and a face and runs \u003Ca href=\"\u002Fmodels\u002Ffp-replace-1\">Frameport Replace 1\u003C\u002Fa> on them.\u003C\u002Fp>\n\u003Ch2 id=\"three-ways-to-upload-an-image-to-the-api\">Three ways to upload an image to the API\u003C\u002Fh2>\n\u003Cdiv class=\"blog-table box blog-table-wide\">\u003Ctable class=\"tbl\">\u003Cthead>\u003Ctr>\u003Cth scope=\"col\">Way\u003C\u002Fth>\u003Cth scope=\"col\">Looks like\u003C\u002Fth>\u003Cth scope=\"col\">Best for\u003C\u002Fth>\u003Cth scope=\"col\">Watch out for\u003C\u002Fth>\u003C\u002Ftr>\u003C\u002Fthead>\u003Ctbody>\u003Ctr>\u003Ctd>Public URL\u003C\u002Ftd>\u003Ctd>\u003Ccode>https:\u002F\u002Fcdn.example.com\u002Flook.jpg\u003C\u002Fcode>\u003C\u002Ftd>\u003Ctd>Files already online, on your CDN or a public bucket\u003C\u002Ftd>\u003Ctd>It must open without a login or cookies, and still open when the job reads it\u003C\u002Ftd>\u003C\u002Ftr>\n\u003Ctr>\u003Ctd>Base64 data URI\u003C\u002Ftd>\u003Ctd>\u003Ccode>data:image\u002Fpng;base64,iVBORw0…\u003C\u002Fcode>\u003C\u002Ftd>\u003Ctd>A small picture in one self-contained request\u003C\u002Ftd>\u003Ctd>Pictures only, and the whole request body is 16 MB at most\u003C\u002Ftd>\u003C\u002Ftr>\n\u003Ctr>\u003Ctd>Upload id\u003C\u002Ftd>\u003Ctd>\u003Ccode>upl_7Rk2PqV9wXm4Tn8Lc1BdZe\u003C\u002Fcode>\u003C\u002Ftd>\u003Ctd>Files on your disk, every clip, a picture used in several requests\u003C\u002Ftd>\u003Ctd>One extra call first, and the id lasts a day\u003C\u002Ftd>\u003C\u002Ftr>\n\u003Ctr>\u003Ctd>Your own output\u003C\u002Ftd>\u003Ctd>\u003Ccode>file_8Hc2RkQw5ZpT1mVb7nXe3L\u003C\u002Fcode>\u003C\u002Ftd>\u003Ctd>Chaining jobs: an image becomes a frame, a clip goes to an edit\u003C\u002Ftd>\u003Ctd>Finished outputs of the same workspace only\u003C\u002Ftd>\u003C\u002Ftr>\u003C\u002Ftbody>\u003C\u002Ftable>\u003C\u002Fdiv>\n\u003Cp>Choosing is quick. When the file already sits at a public https address, send the URL. When it lives on your disk or behind a login, upload it. Keep data URIs for small pictures, where one request without a second call matters more than its size. And when the file came out of an earlier job, pass its \u003Ccode>file_…\u003C\u002Fcode> id: there is nothing to download or send again.\u003C\u002Fp>\n\u003Cp>How a URL is read depends on the request. For an image or video generation, the link is handed to the model as you sent it, so the model&#39;s servers must be able to open it. For a clip edit, Frameport downloads the file itself: the URL must be https, on a public host name rather than an IP address, without credentials, and every redirect is checked the same way (\u003Ca href=\"\u002Fdocs\u002Fedits#clip\">the clip rules\u003C\u002Fa>). A presigned link from your storage works in both cases, as long as it does not expire before the job starts reading.\u003C\u002Fp>\n\u003Ch2 id=\"which-fields-take-a-file\">Which fields take a file\u003C\u002Fh2>\n\u003Cdiv class=\"blog-table box blog-table-wide\">\u003Ctable class=\"tbl\">\u003Cthead>\u003Ctr>\u003Cth scope=\"col\">Field\u003C\u002Fth>\u003Cth scope=\"col\">Endpoint\u003C\u002Fth>\u003Cth scope=\"col\">What it is\u003C\u002Fth>\u003Cth scope=\"col\">Takes\u003C\u002Fth>\u003C\u002Ftr>\u003C\u002Fthead>\u003Ctbody>\u003Ctr>\u003Ctd>\u003Ccode>reference_images\u003C\u002Fcode>\u003C\u002Ftd>\u003Ctd>\u003Ccode>POST \u002Fv1\u002Fimages\u002Fgenerations\u003C\u002Fcode>\u003C\u002Ftd>\u003Ctd>Pictures to keep or to edit\u003C\u002Ftd>\u003Ctd>URL, data URI, picture upload, image output\u003C\u002Ftd>\u003C\u002Ftr>\n\u003Ctr>\u003Ctd>\u003Ccode>reference_images\u003C\u002Fcode>\u003C\u002Ftd>\u003Ctd>\u003Ccode>POST \u002Fv1\u002Fvideos\u002Fgenerations\u003C\u002Fcode>\u003C\u002Ftd>\u003Ctd>The first frame, or with \u003Ccode>&quot;reference_mode&quot;: &quot;identity&quot;\u003C\u002Fcode> the people, products or places to keep\u003C\u002Ftd>\u003Ctd>URL, data URI, picture upload, image output\u003C\u002Ftd>\u003C\u002Ftr>\n\u003Ctr>\u003Ctd>\u003Ccode>end_image\u003C\u002Fcode>\u003C\u002Ftd>\u003Ctd>\u003Ccode>POST \u002Fv1\u002Fvideos\u002Fgenerations\u003C\u002Fcode>\u003C\u002Ftd>\u003Ctd>The last frame\u003C\u002Ftd>\u003Ctd>URL, data URI, picture upload, image output\u003C\u002Ftd>\u003C\u002Ftr>\n\u003Ctr>\u003Ctd>\u003Ccode>video\u003C\u002Fcode>\u003C\u002Ftd>\u003Ctd>\u003Ccode>POST \u002Fv1\u002Fvideos\u002Fedits\u003C\u002Fcode>\u003C\u002Ftd>\u003Ctd>The clip to edit\u003C\u002Ftd>\u003Ctd>https URL, clip upload, video output\u003C\u002Ftd>\u003C\u002Ftr>\n\u003Ctr>\u003Ctd>\u003Ccode>faces\u003C\u002Fcode>\u003C\u002Ftd>\u003Ctd>\u003Ccode>POST \u002Fv1\u002Fvideos\u002Fedits\u003C\u002Fcode>\u003C\u002Ftd>\u003Ctd>One picture per person replaced\u003C\u002Ftd>\u003Ctd>https URL, data URI, picture upload, image output\u003C\u002Ftd>\u003C\u002Ftr>\u003C\u002Ftbody>\u003C\u002Ftable>\u003C\u002Fdiv>\n\u003Cp>Not every model reads pictures. \u003Ca href=\"\u002Ftry\u002Ffp-image-1\">Frameport Image 1\u003C\u002Fa> takes up to 10 and edits a picture by instruction, and Nano Banana Pro up to 6. GPT Image 2.5 Sunburst, Nano Banana 2.1 and Seedream 5.0 Pro read none: they render from the prompt alone. On the video side, \u003Ca href=\"\u002Fmodels\u002Fseedance-2-5\">Seedance 2.5\u003C\u002Fa> takes a first and a last frame, or up to 4 reference pictures (\u003Ca href=\"\u002Fdocs\u002Fvideos#frames\">frames\u003C\u002Fa>, \u003Ca href=\"\u002Fdocs\u002Fvideos#references\">references\u003C\u002Fa>). Each model page says what it takes, and the \u003Ca href=\"\u002Fblog\u002Fimage-to-video-api\">image to video guide\u003C\u002Fa> covers frames in depth.\u003C\u002Fp>\n\u003Cp>One request can mix the forms. Here a product shot on your CDN, a logo uploaded earlier and an image you generated last week go into the same Frameport Image 1 edit:\u003C\u002Fp>",{"type":58,"lang":59,"code":60,"title":61},"code","json","{\n  \"model\": \"fp-image-1\",\n  \"prompt\": \"Put the logo from the second picture on the bottle from the first, in the light of the third\",\n  \"reference_images\": [\n    \"https:\u002F\u002Fcdn.example.com\u002Fbottle.jpg\",\n    \"upl_3Tn8Lc1BdZeR7Rk2PqV9wX\",\n    \"file_2Tn7XcQ9vLm4Ra8Ws1KbZd\"\n  ],\n  \"aspect_ratio\": \"4:3\"\n}","POST \u002Fv1\u002Fimages\u002Fgenerations",{"type":55,"html":63},"\u003Ch2 id=\"uploads-and-their-ids\">Uploads and their ids\u003C\u002Fh2>\n\u003Cp>\u003Ccode>POST \u002Fv1\u002Fuploads\u003C\u002Fcode> takes the file itself as the request body, not a multipart form, with its \u003Ccode>Content-Type\u003C\u002Fcode> and an optional \u003Ccode>filename\u003C\u002Fcode> in the query. The file streams through as it arrives, and its first bytes are checked, so it has to be what its type says it is. The answer is the upload, with the id you will send:\u003C\u002Fp>",{"type":58,"lang":59,"code":65,"title":66},"{\n  \"id\": \"upl_7Rk2PqV9wXm4Tn8Lc1BdZe\",\n  \"object\": \"upload\",\n  \"type\": \"video\",\n  \"status\": \"ready\",\n  \"content_type\": \"video\u002Fmp4\",\n  \"bytes\": 18327441,\n  \"filename\": \"dance.mp4\",\n  \"created_at\": \"2026-11-28T10:00:00.000Z\",\n  \"expires_at\": \"2026-11-29T10:00:00.000Z\"\n}","201 Created",{"type":55,"html":68},"\u003Cp>An upload belongs to its workspace: a key of another workspace cannot use it, and a picture upload cannot stand in for a clip or the other way round. \u003Ccode>GET \u002Fv1\u002Fuploads\u002F{id}\u003C\u002Fcode> reads its status (\u003Ccode>ready\u003C\u002Fcode>, \u003Ccode>expired\u003C\u002Fcode> or \u003Ccode>deleted\u003C\u002Fcode>), and \u003Ccode>DELETE \u002Fv1\u002Fuploads\u002F{id}\u003C\u002Fcode> removes the file at once. A workspace keeps up to 100 uploads live at a time. Uploading costs nothing; it has its own limit of 10 a minute, apart from the 60 requests a minute that start work (\u003Ca href=\"\u002Fdocs\u002Fuploads\">uploads\u003C\u002Fa>).\u003C\u002Fp>\n\u003Ch2 id=\"limits-and-formats\">Limits and formats\u003C\u002Fh2>\n\u003Cdiv class=\"blog-table box blog-table-wide\">\u003Ctable class=\"tbl\">\u003Cthead>\u003Ctr>\u003Cth scope=\"col\">\u003C\u002Fth>\u003Cth scope=\"col\">Pictures\u003C\u002Fth>\u003Cth scope=\"col\">Clips\u003C\u002Fth>\u003C\u002Ftr>\u003C\u002Fthead>\u003Ctbody>\u003Ctr>\u003Ctd>Formats\u003C\u002Ftd>\u003Ctd>PNG, JPEG or WebP (a data URI on a generation may also be GIF)\u003C\u002Ftd>\u003Ctd>MP4 or MOV\u003C\u002Ftd>\u003C\u002Ftr>\n\u003Ctr>\u003Ctd>Upload size\u003C\u002Ftd>\u003Ctd>10 MB\u003C\u002Ftd>\u003Ctd>100 MB, then each editor&#39;s own cap\u003C\u002Ftd>\u003C\u002Ftr>\n\u003Ctr>\u003Ctd>As a data URI\u003C\u002Ftd>\u003Ctd>About 6 MB a picture on a generation, 10 MB for a face\u003C\u002Ftd>\u003Ctd>Not taken\u003C\u002Ftd>\u003C\u002Ftr>\n\u003Ctr>\u003Ctd>As a URL\u003C\u002Ftd>\u003Ctd>http or https on a generation; https on a clip edit\u003C\u002Ftd>\u003Ctd>https, public host\u003C\u002Ftd>\u003C\u002Ftr>\u003C\u002Ftbody>\u003C\u002Ftable>\u003C\u002Fdiv>\n\u003Cp>Clips meet a second set of limits, set by the editor they go to. Frameport Replace 1 takes 2 to 10 seconds at 24 frames a second, up to 64 MB, and \u003Ca href=\"\u002Fmodels\u002Ffp-upscale-1\">Frameport Upscale 1\u003C\u002Fa> takes 1 to 30 seconds (5 s billed at least), up to 100 MB and 900 frames. \u003Ccode>GET \u002Fv1\u002Fmodels\u003C\u002Fcode> lists them in each editor&#39;s \u003Ccode>edit\u003C\u002Fcode> block (formats, lengths, size, frames, faces), so your app can check a file before it uploads anything (\u003Ca href=\"\u002Fdocs\u002Fmodels#edit-limits\">editor limits\u003C\u002Fa>).\u003C\u002Fp>\n\u003Cp>When something is off, the answer says what before anything is held: \u003Ccode>400 invalid_video\u003C\u002Fcode> for a clip outside the editor&#39;s limits, \u003Ccode>400 invalid_input\u003C\u002Fcode> for a picture that cannot be used, and \u003Ccode>413\u003C\u002Fcode> for a body over 16 MB, whose message suggests sending images by URL. Nothing is charged for any of them (\u003Ca href=\"\u002Fblog\u002Fai-video-api-error-codes\">error codes\u003C\u002Fa>).\u003C\u002Fp>\n\u003Ch2 id=\"expiry-how-long-each-one-lasts\">Expiry: how long each one lasts\u003C\u002Fh2>\n\u003Cul>\n\u003Cli>\u003Cstrong>An upload\u003C\u002Fstrong> works for 24 hours (\u003Ccode>expires_at\u003C\u002Fcode>). A request that uses it keeps it at least 3 hours longer, while the job reads it. Once it has expired or been deleted, a request that names it is refused with \u003Ccode>400 file_expired\u003C\u002Fcode> before anything is held.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>An output\u003C\u002Fstrong> (\u003Ccode>file_…\u003C\u002Fcode>) carries a signed \u003Ccode>url\u003C\u002Fcode> that opens without a key for 60 to 70 minutes, and your key downloads it any time until the file is no longer stored. Outputs are not kept forever, so copy the ones you keep (\u003Ca href=\"\u002Fdocs\u002Ffiles#keep\">keep what you need\u003C\u002Fa>).\u003C\u002Fli>\n\u003Cli>\u003Cstrong>A URL\u003C\u002Fstrong> lasts as long as your host serves it.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>A data URI\u003C\u002Fstrong> has no id and no expiry: it travels inside the request that uses it, so each request carries it again.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp>Delete an upload only once the job that reads it has settled: a generation still reading a deleted file may fail.\u003C\u002Fp>\n\u003Ch2 id=\"upload-a-clip-and-a-face-then-swap\">Upload a clip and a face, then swap\u003C\u002Fh2>\n\u003Cp>This script sends a clip and a photo from your disk, swaps the face with Frameport Replace 1, saves the result and then deletes both uploads. Use faces only with the consent of everyone involved: the person in the clip and the person whose picture you send (\u003Ca href=\"\u002Facceptable-use\">acceptable use\u003C\u002Fa>).\u003C\u002Fp>",{"type":58,"lang":70,"code":71,"title":72},"python","import os\nimport time\n\nimport requests\n\nAPI = \"https:\u002F\u002Fframeport.ai\u002Fv1\"\nHEADERS = {\"Authorization\": f\"Bearer {os.environ['FRAMEPORT_API_KEY']}\"}\n\n\ndef upload(path, content_type):\n    with open(path, \"rb\") as f:\n        res = requests.post(\n            f\"{API}\u002Fuploads\",\n            params={\"filename\": os.path.basename(path)},\n            headers={**HEADERS, \"Content-Type\": content_type},\n            data=f,\n        )\n    body = res.json()\n    if not res.ok:\n        raise SystemExit(f\"{path}: {body['error']['message']}\")\n    return body[\"id\"]\n\n\nclip = upload(\"dance.mp4\", \"video\u002Fmp4\")\nface = upload(\"face.jpg\", \"image\u002Fjpeg\")\n\ngen = requests.post(\n    f\"{API}\u002Fvideos\u002Fedits\",\n    headers={**HEADERS, \"Idempotency-Key\": f\"swap-{clip}\"},\n    json={\n        \"model\": \"fp-replace-1\",\n        \"video\": clip,\n        \"faces\": [face],\n        \"resolution\": \"768p\",\n        \"max_cost_usd\": 1.2,\n    },\n).json()\nif gen.get(\"error\"):\n    raise SystemExit(f\"{gen['error']['code']}: {gen['error']['message']}\")\n\nwhile gen[\"status\"] in (\"queued\", \"running\"):\n    time.sleep(10)\n    gen = requests.get(f\"{API}\u002Fgenerations\u002F{gen['id']}\", headers=HEADERS).json()\n\nif gen.get(\"error\"):\n    print(\"Failed, nothing charged:\", gen[\"error\"][\"message\"])\nelse:\n    video = requests.get(f\"{API}\u002Fgenerations\u002F{gen['id']}\u002Fcontent\", headers=HEADERS)\n    with open(\"swapped.mp4\", \"wb\") as out:\n        out.write(video.content)\n    print(\"Saved swapped.mp4, charged\", gen[\"cost_usd\"])\n\n# The edit has settled, so the uploads can go\nfor upload_id in (clip, face):\n    requests.delete(f\"{API}\u002Fuploads\u002F{upload_id}\", headers=HEADERS)","swap_from_disk.py",{"type":55,"html":74},"\u003Cp>An edit holds the price of the longest clip the model takes, then comes down to your clip&#39;s own price once it is measured, which is why the cap is set for 10 seconds. The \u003Ca href=\"\u002Fblog\u002Fface-swap-video-api\">face swap video API guide\u003C\u002Fa> covers several faces, \u003Ccode>targets\u003C\u002Fcode> and keeping the outfit.\u003C\u002Fp>",{"type":76,"model":14},"cta",{"type":55,"html":78},"\u003Cp>The same uploads feed a video generation. With \u003Ccode>&quot;reference_mode&quot;: &quot;identity&quot;\u003C\u002Fcode>, a face uploaded once and a product you generated earlier become the cast of a Seedance 2.5 clip:\u003C\u002Fp>",{"type":58,"lang":59,"code":80,"title":81},"{\n  \"model\": \"seedance-2-5\",\n  \"prompt\": \"The woman from the first picture unboxes the speaker from the second on a sunny kitchen counter\",\n  \"reference_images\": [\"upl_3Tn8Lc1BdZeR7Rk2PqV9wX\", \"file_8Hc2RkQw5ZpT1mVb7nXe3L\"],\n  \"reference_mode\": \"identity\",\n  \"duration\": 5,\n  \"resolution\": \"720p\",\n  \"aspect_ratio\": \"9:16\"\n}","POST \u002Fv1\u002Fvideos\u002Fgenerations",{"type":55,"html":83},"\u003Cp>Your key is what lets these files in, so keep it on your server (\u003Ca href=\"\u002Fblog\u002Fapi-key-security-ai-generation\">API key security\u003C\u002Fa>). What the pictures do once sent depends on the job: identity pictures in \u003Ca href=\"\u002Fblog\u002Fwhat-is-reference-to-video\">reference to video\u003C\u002Fa>, faces in \u003Ca href=\"\u002Fblog\u002Fad-localization-face-swap\">video ad localization\u003C\u002Fa> and \u003Ca href=\"\u002Fblog\u002Fai-headshot-api\">AI headshots\u003C\u002Fa>.\u003C\u002Fp>",{"type":51,"id":51,"title":52,"items":85},[86,90,94,98,102,106],{"q":87,"html":88,"text":89},"How do I upload an image to an API in Python?","\u003Cp>Send the file&#39;s bytes as the body of \u003Ccode>POST \u002Fv1\u002Fuploads\u003C\u002Fcode> with its \u003Ccode>Content-Type\u003C\u002Fcode>, as in the \u003Ccode>upload\u003C\u002Fcode> function above, then put the \u003Ccode>upl_…\u003C\u002Fcode> id it returns in \u003Ccode>reference_images\u003C\u002Fcode>, \u003Ccode>end_image\u003C\u002Fcode> or \u003Ccode>faces\u003C\u002Fcode>. For a picture already online, skip the upload and send its URL.\u003C\u002Fp>","Send the file's bytes as the body of POST \u002Fv1\u002Fuploads with its Content-Type, as in the upload function above, then put the upl_… id it returns in reference_images, end_image or faces. For a picture already online, skip the upload and send its URL.",{"q":91,"html":92,"text":93},"Can I send a base64 image instead of a URL?","\u003Cp>Yes, as a data URI such as \u003Ccode>data:image\u002Fpng;base64,…\u003C\u002Fcode>, in any field that takes a picture. It suits small pictures: about 6 MB each on a generation, and the whole request body is 16 MB at most. Clips cannot be sent this way.\u003C\u002Fp>","Yes, as a data URI such as data:image\u002Fpng;base64,…, in any field that takes a picture. It suits small pictures: about 6 MB each on a generation, and the whole request body is 16 MB at most. Clips cannot be sent this way.",{"q":95,"html":96,"text":97},"How do I upload an image to the Veo 3.1 API?","\u003Cp>Veo 3.1 takes a first frame and a last frame, or up to 3 reference pictures, in \u003Ccode>reference_images\u003C\u002Fcode> and \u003Ccode>end_image\u003C\u002Fcode>. Each can be a URL, a data URI, an upload id or one of your image outputs, sent with the same key as every other model.\u003C\u002Fp>","Veo 3.1 takes a first frame and a last frame, or up to 3 reference pictures, in reference_images and end_image. Each can be a URL, a data URI, an upload id or one of your image outputs, sent with the same key as every other model.",{"q":99,"html":100,"text":101},"Can GPT Image 2.5 read an image I upload?","\u003Cp>Not here. GPT Image 2.5 Sunburst and GPT Image 2.5 Flare render from the prompt only on Frameport. To edit a picture by instruction, send it to Nano Banana Pro or Frameport Image 1.\u003C\u002Fp>","Not here. GPT Image 2.5 Sunburst and GPT Image 2.5 Flare render from the prompt only on Frameport. To edit a picture by instruction, send it to Nano Banana Pro or Frameport Image 1.",{"q":103,"html":104,"text":105},"How long does an uploaded file last?","\u003Cp>24 hours from the upload, and at least 3 hours more once a request uses it. \u003Ccode>DELETE \u002Fv1\u002Fuploads\u002F{id}\u003C\u002Fcode> removes it sooner; after that, a request naming it is refused with \u003Ccode>400 file_expired\u003C\u002Fcode> and nothing is charged.\u003C\u002Fp>","24 hours from the upload, and at least 3 hours more once a request uses it. DELETE \u002Fv1\u002Fuploads\u002F{id} removes it sooner; after that, a request naming it is refused with 400 file_expired and nothing is charged.",{"q":107,"html":108,"text":109},"Why was my uploaded clip refused?","\u003Cp>It misses a limit of the editor you sent it to: its length, its size, its frame count or its format. The \u003Ccode>400 invalid_video\u003C\u002Fcode> message names the limit, nothing is charged, and \u003Ccode>GET \u002Fv1\u002Fmodels\u003C\u002Fcode> lists every editor&#39;s limits so you can check before uploading.\u003C\u002Fp>","It misses a limit of the editor you sent it to: its length, its size, its frame count or its format. The 400 invalid_video message names the limit, nothing is charged, and GET \u002Fv1\u002Fmodels lists every editor's limits so you can check before uploading.",[111,112,113,114,115,116],{"q":87,"html":88,"text":89},{"q":91,"html":92,"text":93},{"q":95,"html":96,"text":97},{"q":99,"html":100,"text":101},{"q":103,"html":104,"text":105},{"q":107,"html":108,"text":109},[118,126,135],{"slug":119,"path":120,"title":121,"description":122,"category":9,"categoryLabel":10,"date":11,"updated":11,"readingMinutes":123,"models":124,"featured":17},"image-video-generation-mcp-server","\u002Fblog\u002Fimage-video-generation-mcp-server","Image and Video Generation MCP Server for AI Agents","An image generation MCP server for Claude, Cursor or any MCP client: one URL, your key, a tool per step, a price before each run and a spending cap.",6,[125,15,16,14],"nano-banana-pro",{"slug":127,"path":128,"title":129,"description":130,"category":131,"categoryLabel":132,"date":11,"updated":11,"readingMinutes":123,"models":133,"featured":17},"venice-api-alternative","\u002Fblog\u002Fvenice-api-alternative","Venice AI Alternative for Image and Video Generation","A Venice AI alternative for images and video: what to compare, our own engines with a content filter you control, and one key for every model.","alternatives","Alternatives",[16,134,14,15,125],"fp-motion-1",{"slug":136,"path":137,"title":138,"description":139,"category":9,"categoryLabel":10,"date":11,"updated":11,"readingMinutes":123,"models":140,"featured":17},"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.",[15,141,14],"veo-3-1","\u002Fstudio",[144,163,172,181,207,224,243,259,274,289,304,318,329,343,356,369,382,393,401,410,420,428,438,446,464],{"id":145,"type":146,"name":147,"description":148,"maker":149,"family":149,"own":150,"image":151,"private":162},"fp-image-2","image","Frameport Image 2","Photoreal renders, up to 4 reference images.","Frameport",true,{"pricing":152,"options":154},{"per_image":153,"per_extra_reference_image":-1},0.025,{"aspect_ratios":155,"max_images":161},[156,157,158,159,160],"1:1","3:4","4:3","9:16","16:9",4,{},{"id":164,"type":146,"name":165,"description":166,"maker":149,"family":149,"own":150,"image":167,"private":171},"fp-image-3","Frameport Image 3","Clean photoreal renders for characters.",{"pricing":168,"options":169},{"per_image":153,"per_extra_reference_image":-1},{"aspect_ratios":170,"max_images":161},[156,157,158,159,160],{},{"id":16,"type":146,"name":173,"description":174,"maker":149,"family":149,"own":150,"image":175,"private":180},"Frameport Image 1","Generation and reference-driven renders, up to 10 reference images.",{"pricing":176,"options":178},{"per_image":153,"per_extra_reference_image":177},0.0025,{"aspect_ratios":179,"max_images":161},[156,157,158,159,160],{},{"id":134,"type":182,"name":183,"description":184,"maker":149,"family":185,"own":150,"video":186,"private":205},"video","Frameport Motion 1","Our video engine, with native sound.","Frameport Motion",{"pricing":187,"options":194},{"default_resolution":188,"per_second":189,"per_second_with_audio":-1,"aspect_ratio_multiplier":-1,"per_reference_image":-1,"per_frame_image":-1},"768p",{"480p":190,"768p":191,"1080p":192,"2K":193},0.02,0.06,0.08,0.095,{"resolutions":195,"durations":199,"aspect_ratios":203,"audio_toggle":150,"start_frame":150,"end_frame":150,"max_reference_images":161,"identity_resolutions":204,"seed":17,"negative_prompt":17},[196,188,197,198],"480p","1080p","2K",{"min":200,"max":201,"step":202},5,15,1,[160,159,156,158,157],[188,197],{"resolutions":206},[196,188],{"id":15,"type":182,"name":208,"description":209,"maker":210,"family":211,"own":17,"video":212},"Seedance 2.5","The long-take flagship — up to 30 seconds with sound","ByteDance","Seedance",{"pricing":213,"options":218},{"default_resolution":214,"per_second":215,"per_second_with_audio":-1,"aspect_ratio_multiplier":-1,"per_reference_image":-1,"per_frame_image":-1},"720p",{"480p":216,"720p":217},0.12,0.27,{"resolutions":219,"durations":220,"aspect_ratios":222,"audio_toggle":150,"start_frame":150,"end_frame":150,"max_reference_images":161,"identity_resolutions":-1,"seed":150,"negative_prompt":17},[196,214],{"min":161,"max":221,"step":202},30,[160,158,156,157,159,223],"21:9",{"id":141,"type":182,"name":225,"description":226,"maker":227,"family":228,"own":17,"video":229},"Veo 3.1","Google’s flagship — up to 4K with native audio","Google","Veo",{"pricing":230,"options":236},{"default_resolution":197,"per_second":231,"per_second_with_audio":234,"aspect_ratio_multiplier":-1,"per_reference_image":-1,"per_frame_image":-1},{"720p":232,"1080p":232,"4K":233},0.235,0.465,{"720p":233,"1080p":233,"4K":235},0.695,{"resolutions":237,"durations":239,"aspect_ratios":241,"audio_toggle":150,"start_frame":150,"end_frame":150,"max_reference_images":242,"identity_resolutions":-1,"seed":150,"negative_prompt":150},[214,197,238],"4K",{"min":161,"max":240,"step":34},8,[160,159],3,{"id":244,"type":182,"name":245,"description":246,"maker":210,"family":211,"own":17,"video":247},"seedance-2-0","Seedance 2.0","Character consistency, up to 4K",{"pricing":248,"options":255},{"default_resolution":214,"per_second":249,"per_second_with_audio":-1,"aspect_ratio_multiplier":253,"per_reference_image":-1,"per_frame_image":-1},{"480p":192,"720p":250,"1080p":251,"4K":252},0.175,0.435,0.9,{"21:9":254},1.32,{"resolutions":256,"durations":257,"aspect_ratios":258,"audio_toggle":150,"start_frame":150,"end_frame":150,"max_reference_images":161,"identity_resolutions":-1,"seed":150,"negative_prompt":17},[196,214,197,238],{"min":161,"max":201,"step":202},[160,158,156,157,159,223],{"id":260,"type":182,"name":261,"description":262,"maker":263,"family":264,"own":17,"video":265},"hailuo-3","Hailuo 3","2K cinematic physics, subject references","MiniMax","Hailuo",{"pricing":266,"options":270},{"default_resolution":198,"per_second":267,"per_second_with_audio":-1,"aspect_ratio_multiplier":-1,"per_reference_image":269,"per_frame_image":-1},{"2K":268},0.15,0.047,{"resolutions":271,"durations":272,"aspect_ratios":273,"audio_toggle":150,"start_frame":150,"end_frame":150,"max_reference_images":242,"identity_resolutions":-1,"seed":17,"negative_prompt":17},[198],{"min":200,"max":201,"step":202},[223,160,158,156,157,159],{"id":275,"type":182,"name":276,"description":277,"maker":278,"family":278,"own":17,"video":279},"runway-gen-4-5","Runway Gen-4.5","Cinematic motion, strong prompt adherence","Runway",{"pricing":280,"options":283},{"default_resolution":214,"per_second":281,"per_second_with_audio":-1,"aspect_ratio_multiplier":-1,"per_reference_image":-1,"per_frame_image":-1},{"720p":282},0.14,{"resolutions":284,"durations":285,"aspect_ratios":287,"audio_toggle":17,"start_frame":150,"end_frame":17,"max_reference_images":288,"identity_resolutions":-1,"seed":150,"negative_prompt":17},[214],{"min":34,"max":286,"step":202},10,[160,159],0,{"id":290,"type":182,"name":291,"description":292,"maker":227,"family":228,"own":17,"video":293},"veo-3-1-fast","Veo 3.1 Fast","Veo quality, faster and a quarter of the price",{"pricing":294,"options":300},{"default_resolution":214,"per_second":295,"per_second_with_audio":298,"aspect_ratio_multiplier":-1,"per_reference_image":-1,"per_frame_image":-1},{"720p":296,"1080p":216,"4K":297},0.093,0.29,{"720p":216,"1080p":282,"4K":299},0.35,{"resolutions":301,"durations":302,"aspect_ratios":303,"audio_toggle":150,"start_frame":150,"end_frame":150,"max_reference_images":242,"identity_resolutions":-1,"seed":150,"negative_prompt":150},[214,197,238],{"min":161,"max":240,"step":34},[160,159],{"id":305,"type":182,"name":306,"description":307,"maker":210,"family":211,"own":17,"video":308},"seedance-2-0-fast","Seedance 2.0 Fast","Seedance references and sound, faster",{"pricing":309,"options":314},{"default_resolution":214,"per_second":310,"per_second_with_audio":-1,"aspect_ratio_multiplier":313,"per_reference_image":-1,"per_frame_image":-1},{"480p":311,"720p":312},0.063,0.145,{"21:9":254},{"resolutions":315,"durations":316,"aspect_ratios":317,"audio_toggle":150,"start_frame":150,"end_frame":150,"max_reference_images":161,"identity_resolutions":-1,"seed":150,"negative_prompt":17},[196,214],{"min":161,"max":201,"step":202},[160,158,156,157,159,223],{"id":319,"type":182,"name":320,"description":321,"maker":263,"family":264,"own":17,"video":322},"hailuo-3-max","Hailuo 3 Max","Fast Hailuo motion, 768p",{"pricing":323,"options":325},{"default_resolution":188,"per_second":324,"per_second_with_audio":-1,"aspect_ratio_multiplier":-1,"per_reference_image":-1,"per_frame_image":-1},{"480p":191,"768p":296},{"resolutions":326,"durations":327,"aspect_ratios":328,"audio_toggle":17,"start_frame":150,"end_frame":150,"max_reference_images":288,"identity_resolutions":-1,"seed":17,"negative_prompt":17},[196,188],{"min":200,"max":201,"step":202},[223,160,158,156,157,159],{"id":330,"type":182,"name":331,"description":332,"maker":333,"family":331,"own":17,"video":334},"grok-imagine","Grok Imagine","Quick clips from a prompt or a start image","xAI",{"pricing":335,"options":339},{"default_resolution":214,"per_second":336,"per_second_with_audio":-1,"aspect_ratio_multiplier":-1,"per_reference_image":-1,"per_frame_image":338},{"480p":296,"720p":337,"1080p":297},0.165,0.014,{"resolutions":340,"durations":341,"aspect_ratios":342,"audio_toggle":17,"start_frame":150,"end_frame":17,"max_reference_images":288,"identity_resolutions":-1,"seed":17,"negative_prompt":17},[196,214,197],{"min":202,"max":201,"step":202},[160,159,156,158,157],{"id":344,"type":182,"name":345,"description":-1,"maker":210,"family":211,"own":17,"video":346},"seedance-2-0-mini","Seedance 2.0 Mini",{"pricing":347,"options":352},{"default_resolution":196,"per_second":348,"per_second_with_audio":-1,"aspect_ratio_multiplier":351,"per_reference_image":-1,"per_frame_image":-1},{"480p":349,"720p":350},0.041,0.088,{"21:9":254},{"resolutions":353,"durations":354,"aspect_ratios":355,"audio_toggle":150,"start_frame":150,"end_frame":150,"max_reference_images":161,"identity_resolutions":-1,"seed":150,"negative_prompt":17},[196,214],{"min":161,"max":201,"step":202},[160,158,156,157,159,223],{"id":357,"type":182,"name":358,"description":359,"maker":227,"family":228,"own":17,"video":360},"veo-3-1-lite","Veo 3.1 Lite","Veo with sound, on every account",{"pricing":361,"options":365},{"default_resolution":214,"per_second":362,"per_second_with_audio":364,"aspect_ratio_multiplier":-1,"per_reference_image":-1,"per_frame_image":-1},{"720p":363,"1080p":191},0.036,{"720p":191,"1080p":296},{"resolutions":366,"durations":367,"aspect_ratios":368,"audio_toggle":150,"start_frame":150,"end_frame":150,"max_reference_images":288,"identity_resolutions":-1,"seed":150,"negative_prompt":150},[214,197],{"min":161,"max":240,"step":34},[160,159],{"id":370,"type":182,"name":371,"description":372,"maker":373,"family":374,"own":17,"video":375},"wan-3","Wan 3.0","Up to 30 seconds, references and sound","Alibaba","Wan",{"pricing":376,"options":378},{"default_resolution":214,"per_second":377,"per_second_with_audio":-1,"aspect_ratio_multiplier":-1,"per_reference_image":-1,"per_frame_image":-1},{"480p":191,"720p":216,"1080p":232},{"resolutions":379,"durations":380,"aspect_ratios":381,"audio_toggle":150,"start_frame":150,"end_frame":17,"max_reference_images":242,"identity_resolutions":-1,"seed":150,"negative_prompt":17},[196,214,197],{"min":34,"max":221,"step":202},[160,158,156,157,159],{"id":383,"type":146,"name":384,"description":385,"maker":386,"family":387,"own":17,"image":388},"gpt-image-2-5-sunburst","GPT Image 2.5 Sunburst","OpenAI's flagship — precise text, composition and control","OpenAI","GPT Image",{"pricing":389,"options":391},{"per_image":390,"per_extra_reference_image":-1},0.085,{"aspect_ratios":392,"max_images":161},[156,157,158,159,160],{"id":394,"type":146,"name":395,"description":396,"maker":386,"family":387,"own":17,"image":397},"gpt-image-2-5-flare","GPT Image 2.5 Flare","OpenAI's image model tuned for expressive, dramatic frames",{"pricing":398,"options":399},{"per_image":390,"per_extra_reference_image":-1},{"aspect_ratios":400,"max_images":161},[156,157,158,159,160],{"id":402,"type":146,"name":403,"description":404,"maker":227,"family":405,"own":17,"image":406},"nano-banana-2-1","Nano Banana 2.1","Google's fast multimodal image model","Nano Banana",{"pricing":407,"options":408},{"per_image":390,"per_extra_reference_image":-1},{"aspect_ratios":409,"max_images":161},[156,157,158,159,160],{"id":411,"type":146,"name":412,"description":413,"maker":210,"family":414,"own":17,"image":415},"seedream-5-0-pro","Seedream 5.0 Pro","ByteDance's flagship — rich detail and texture","Seedream",{"pricing":416,"options":418},{"per_image":417,"per_extra_reference_image":-1},0.099,{"aspect_ratios":419,"max_images":161},[156,157,158,159,160],{"id":125,"type":146,"name":421,"description":422,"maker":227,"family":405,"own":17,"image":423},"Nano Banana Pro","Google's highest-fidelity image model",{"pricing":424,"options":426},{"per_image":425,"per_extra_reference_image":-1},0.16,{"aspect_ratios":427,"max_images":161},[156,157,158,159,160],{"id":429,"type":146,"name":430,"description":431,"maker":432,"family":433,"own":17,"image":434},"flux-3-image","Flux 3 Image","Black Forest Labs' FLUX.3 — photoreal and typography","Black Forest Labs","Flux",{"pricing":435,"options":436},{"per_image":350,"per_extra_reference_image":-1},{"aspect_ratios":437,"max_images":161},[156,157,158,159,160],{"id":439,"type":146,"name":440,"description":441,"maker":333,"family":331,"own":17,"image":442},"grok-imagine-2-0","Grok Imagine 2.0","xAI's fast, characterful image model",{"pricing":443,"options":444},{"per_image":350,"per_extra_reference_image":-1},{"aspect_ratios":445,"max_images":161},[156,157,158,159,160],{"id":14,"type":182,"name":447,"description":448,"maker":149,"family":449,"own":150,"edit":450,"video":458},"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":451,"formats":452,"min_seconds":34,"max_seconds":286,"min_billed_seconds":34,"max_bytes":455,"max_frames":456,"fps":457,"max_faces":161},"replace",[453,454],"mp4","mov",64000000,600,24,{"pricing":459,"options":462},{"default_resolution":188,"per_second":460,"per_second_with_audio":-1,"aspect_ratio_multiplier":-1,"per_reference_image":-1,"per_frame_image":-1},{"768p":216,"1080p":461},0.25,{"resolutions":463,"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},[188,197],{"id":465,"type":182,"name":466,"description":467,"maker":149,"family":468,"own":150,"edit":469,"video":474},"fp-upscale-1","Frameport Upscale 1","Your clip at 1080p or 2K: the same motion, frame rate and sound, sharper detail.","Frameport Upscale",{"tool":470,"formats":471,"min_seconds":202,"max_seconds":221,"min_billed_seconds":200,"max_bytes":472,"max_frames":473,"fps":-1,"max_faces":-1},"upscale",[453,454],100000000,900,{"pricing":475,"options":479},{"default_resolution":197,"per_second":476,"per_second_with_audio":-1,"aspect_ratio_multiplier":-1,"per_reference_image":-1,"per_frame_image":-1},{"1080p":477,"2K":478},0.03,0.05,{"resolutions":480,"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},[197,198],1795901826575,"b270fb84-a112-44f2-9801-f99d6c2e889e"]