[{"data":1,"prerenderedAt":476,"buildId":477},["ShallowReactive",2],{"blog:article:how-to-swap-faces-in-a-video-with-python":3,"catalog":138},{"article":4,"related":112,"studioPath":137},{"slug":5,"path":6,"title":7,"description":8,"category":9,"categoryLabel":10,"date":11,"updated":11,"readingMinutes":12,"models":13,"featured":15,"primaryKeyword":16,"keywords":17,"words":25,"toc":26,"blocks":49,"faq":106},"how-to-swap-faces-in-a-video-with-python","\u002Fblog\u002Fhow-to-swap-faces-in-a-video-with-python","How to Swap Faces in a Video With Python","A face swap video Python script: check and convert the clip with ffmpeg, upload the faces, price and submit the edit, wait, then save the new clip.","guides","Guides","2026-11-28",5,[14],"fp-replace-1",false,"face swap video python",[16,18,19,20,21,22,23,24],"face swap python code","face swap video python code","face swap api python","video face swap api python","ai video face swap python","face swap api python 3","ai face swap github",1260,[27,31,34,37,40,43,46],{"id":28,"text":29,"level":30},"what-a-face-swap-video-python-script-needs","What a face swap video Python script needs",2,{"id":32,"text":33,"level":30},"upload-the-clip-and-the-faces","Upload the clip and the faces",{"id":35,"text":36,"level":30},"submit-the-edit","Submit the edit",{"id":38,"text":39,"level":30},"wait-and-download","Wait and download",{"id":41,"text":42,"level":30},"swapping-several-people","Swapping several people",{"id":44,"text":45,"level":30},"clips-longer-than-the-limit","Clips longer than the limit",{"id":47,"text":48,"level":30},"faq","FAQ",[50,53,58,60,63,65,68,70,73,77,79,82,84],{"type":51,"html":52},"html","\u003Cp>A face swap video Python script needs only \u003Ccode>requests\u003C\u002Fcode> and ffmpeg: it sends your clip and one photo per face to an edit API, waits for the job, and saves the same clip with the new faces, while the moves, lips, scene and sound stay as they were. Here the API is Frameport and the model is \u003Ca href=\"\u002Fmodels\u002Ffp-replace-1\">Frameport Replace 1\u003C\u002Fa>, so no GPU is needed on your side, and an edit costs $0.12 per second of clip at 768p, charged only when it succeeds.\u003C\u002Fp>\n\u003Cp>The script comes in four parts that you paste into one file, \u003Ccode>swap.py\u003C\u002Fcode>: check and convert the clip, upload it with the faces, price and submit the edit, then wait and download. A last section handles scenes longer than one edit takes.\u003C\u002Fp>\n\u003Ch2 id=\"what-a-face-swap-video-python-script-needs\">What a face swap video Python script needs\u003C\u002Fh2>\n\u003Cul>\n\u003Cli>\u003Cstrong>Python 3.9 or later\u003C\u002Fstrong> with \u003Ccode>requests\u003C\u002Fcode> (\u003Ccode>pip install requests\u003C\u002Fcode>), and \u003Ccode>ffmpeg\u003C\u002Fcode> plus \u003Ccode>ffprobe\u003C\u002Fcode> on your \u003Ccode>PATH\u003C\u002Fcode> to measure and convert clips.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>An API key\u003C\u002Fstrong> in the \u003Ccode>FRAMEPORT_API_KEY\u003C\u002Fcode> environment variable. Uploading files and asking for quotes cost nothing; the edit is paid from your balance.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>A clip the model takes\u003C\u002Fstrong>: 2 to 10 seconds, MP4 or MOV, 64 MB at most, at 24 frames per second. The script reads these limits from the API, converts a clip whose format, frame rate or size is off, and trims one that runs long.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>One photo per person you replace\u003C\u002Fstrong>: PNG, JPEG or WebP, up to 10 MB, with the face sharp, lit evenly, uncovered and turned roughly toward the camera.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Consent for every face.\u003C\u002Fstrong> Use your own face, the face of someone who agreed to this use, or a character you generated. The \u003Ca href=\"\u002Facceptable-use\">acceptable use policy\u003C\u002Fa> rules out real, identifiable people without their consent, anything involving minors, and any impersonation or fraud; everything you make must be fiction.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch2 id=\"upload-the-clip-and-the-faces\">Upload the clip and the faces\u003C\u002Fh2>\n\u003Cp>Part 1 asks \u003Ccode>GET \u002Fv1\u002Fmodels\u002Ffp-replace-1\u003C\u002Fcode> for the model&#39;s limits, so the script follows them if they ever change. It measures the clip with ffprobe, re-encodes it only when it has to, and sends each file once:\u003C\u002Fp>",{"type":54,"lang":55,"code":56,"title":57},"code","python","import argparse\nimport hashlib\nimport json\nimport os\nimport subprocess\nimport time\n\nimport requests\n\nAPI = \"https:\u002F\u002Fframeport.ai\u002Fv1\"\nHEADERS = {\"Authorization\": f\"Bearer {os.environ['FRAMEPORT_API_KEY']}\"}\nMODEL = \"fp-replace-1\"\nTYPES = {\".png\": \"image\u002Fpng\", \".jpg\": \"image\u002Fjpeg\", \".jpeg\": \"image\u002Fjpeg\", \".webp\": \"image\u002Fwebp\",\n         \".mp4\": \"video\u002Fmp4\", \".mov\": \"video\u002Fquicktime\"}\n\nINFO = requests.get(f\"{API}\u002Fmodels\u002F{MODEL}\", headers=HEADERS, timeout=30).json()\nLIMITS, RESOLUTIONS = INFO[\"edit\"], INFO[\"options\"][\"resolutions\"]\n\n\ndef probe(path):\n    \"\"\"A clip's length in seconds, its video codec and its frame rate, read by ffprobe.\"\"\"\n    out = subprocess.run(\n        [\"ffprobe\", \"-v\", \"error\", \"-select_streams\", \"v:0\", \"-show_entries\",\n         \"stream=codec_name,avg_frame_rate:format=duration\", \"-of\", \"json\", path],\n        capture_output=True, text=True, check=True,\n    ).stdout\n    info = json.loads(out)\n    stream = info[\"streams\"][0]\n    num, den = (float(part) for part in stream[\"avg_frame_rate\"].split(\"\u002F\"))\n    return float(info[\"format\"][\"duration\"]), stream[\"codec_name\"], num \u002F den if den else 0.0\n\n\ndef prepare(path):\n    \"\"\"The clip as the model takes it: H.264, 24 fps, within the length and size limits.\"\"\"\n    seconds, codec, fps = probe(path)\n    if seconds \u003C LIMITS[\"min_seconds\"]:\n        raise SystemExit(f\"{path} lasts {seconds:.1f} s: the model takes {LIMITS['min_seconds']} s at least\")\n    ready = (os.path.splitext(path)[1].lower() in (\".mp4\", \".mov\") and codec == \"h264\"\n             and abs(fps - LIMITS[\"fps\"]) \u003C 0.01 and seconds \u003C= LIMITS[\"max_seconds\"]\n             and os.path.getsize(path) \u003C= LIMITS[\"max_bytes\"])\n    if ready:\n        return path, seconds\n    out = f\"{os.path.splitext(path)[0]}-ready.mp4\"\n    subprocess.run([\"ffmpeg\", \"-y\", \"-v\", \"error\", \"-i\", path, \"-t\", str(LIMITS[\"max_seconds\"]),\n                    \"-r\", str(LIMITS[\"fps\"]), \"-c:v\", \"libx264\", \"-crf\", \"20\", \"-pix_fmt\", \"yuv420p\",\n                    \"-c:a\", \"aac\", out], check=True)\n    return out, min(seconds, LIMITS[\"max_seconds\"])\n\n\ndef upload(path):\n    \"\"\"Sends one file as the raw body; the upl_ id it returns works in any request for 24 hours.\"\"\"\n    with open(path, \"rb\") as file:\n        res = requests.post(\n            f\"{API}\u002Fuploads\",\n            params={\"filename\": os.path.basename(path)},\n            headers={**HEADERS, \"Content-Type\": TYPES[os.path.splitext(path)[1].lower()]},\n            data=file,\n            timeout=300,\n        )\n    if not res.ok:\n        raise SystemExit(f\"{path}: {res.json()['error']['message']}\")\n    return res.json()[\"id\"]","swap.py, part 1: check, convert, upload",{"type":51,"html":59},"\u003Cp>A clip over the length limit is trimmed here; the last section keeps all of a longer scene instead. An upload streams as it is sent, and its first bytes must be what its \u003Ccode>Content-Type\u003C\u002Fcode> says, so a file that is not really a picture or a clip is turned away at once. A workspace keeps up to 100 uploads at a time and may send 10 a minute; the \u003Ca href=\"\u002Fdocs\u002Fuploads\">uploads reference\u003C\u002Fa> covers the rest. You can skip the upload for a clip that already sits at a public https URL, or for one of your own outputs, named by its \u003Ccode>file_…\u003C\u002Fcode> id.\u003C\u002Fp>\n\u003Ch2 id=\"submit-the-edit\">Submit the edit\u003C\u002Fh2>\n\u003Cp>Before anything is spent, part 2 asks for the exact price: \u003Ccode>POST \u002Fv1\u002Fgenerations\u002Fquote\u003C\u002Fcode> with the clip&#39;s length in \u003Ccode>seconds\u003C\u002Fcode> holds nothing and does not count against the rate limit. Then it submits the edit:\u003C\u002Fp>",{"type":54,"lang":55,"code":61,"title":62},"def quote(seconds, resolution):\n    answer = requests.post(f\"{API}\u002Fgenerations\u002Fquote\", headers=HEADERS, timeout=30,\n                           json={\"model\": MODEL, \"seconds\": seconds, \"resolution\": resolution}).json()\n    if answer.get(\"error\"):\n        raise SystemExit(answer[\"error\"][\"message\"])\n    return answer\n\n\ndef submit(video, faces, targets, resolution, keep_outfit):\n    body = {\"model\": MODEL, \"video\": video, \"faces\": faces, \"resolution\": resolution, \"keep_outfit\": keep_outfit}\n    if targets:\n        body[\"targets\"] = targets\n    # Sending this exact body again (a retry after a timeout) returns the first edit, not a second one\n    key = \"swap-\" + hashlib.sha256(json.dumps(body, sort_keys=True).encode()).hexdigest()[:32]\n    gen = requests.post(f\"{API}\u002Fvideos\u002Fedits\", headers={**HEADERS, \"Idempotency-Key\": key}, json=body, timeout=120).json()\n    if gen.get(\"error\"):\n        raise SystemExit(f\"{gen['error']['code']}: {gen['error']['message']}\")\n    return gen","swap.py, part 2: price and submit",{"type":51,"html":64},"\u003Cp>The \u003Ccode>202\u003C\u002Fcode> arrives once the clip has been fetched and measured. Two things about the money are worth knowing. At submit, the price of the longest clip the model takes is held first and then lowered to your clip&#39;s price, so the balance must cover the larger amount for a moment. For the same reason, an edit&#39;s \u003Ccode>max_cost_usd\u003C\u002Fcode> is compared with that first hold rather than with your clip&#39;s price: leave it out, or set it no lower than the quote&#39;s \u003Ccode>reserved_usd\u003C\u002Fcode>.\u003C\u002Fp>\n\u003Cp>Every refusal at this step is free. A clip outside the limits answers \u003Ccode>400 invalid_video\u003C\u002Fcode>, and the message names the fix, such as &quot;takes clips at 24 fps: convert the clip first&quot;. A request the content policy refuses answers \u003Ccode>400 content_policy\u003C\u002Fcode>. While the workspace&#39;s content filter is on, it reads the note (\u003Ccode>prompt\u003C\u002Fcode>) and each target as well, and a refusal there is \u003Ccode>400 content_filtered\u003C\u002Fcode>.\u003C\u002Fp>\n\u003Ch2 id=\"wait-and-download\">Wait and download\u003C\u002Fh2>\n\u003Cp>The edit runs on its own after the \u003Ccode>202\u003C\u002Fcode>. Part 3 reads it every five seconds, stops on a failure, which leaves nothing charged, and streams the finished file to disk with your key:\u003C\u002Fp>",{"type":54,"lang":55,"code":66,"title":67},"def wait(gen, every=5):\n    while gen[\"status\"] in (\"queued\", \"running\"):\n        time.sleep(every)\n        gen = requests.get(f\"{API}\u002Fvideos\u002Fedits\u002F{gen['id']}\", headers=HEADERS, timeout=30).json()\n    if gen[\"status\"] == \"failed\":\n        raise SystemExit(f\"failed, nothing charged: {gen['error']['message']}\")\n    return gen\n\n\ndef download(gen, path):\n    with requests.get(f\"{API}\u002Fgenerations\u002F{gen['id']}\u002Fcontent\", headers=HEADERS, stream=True, timeout=300) as res:\n        res.raise_for_status()\n        with open(path, \"wb\") as out:\n            for chunk in res.iter_content(chunk_size=1 \u003C\u003C 20):\n                out.write(chunk)","swap.py, part 3: wait and download",{"type":51,"html":69},"\u003Cp>Reads do not count against the workspace&#39;s rate limit, and the docs suggest a read every 2 to 5 seconds, so this loop stays well inside the rules. For a batch of clips, one webhook beats a loop per clip: the \u003Ca href=\"\u002Fblog\u002Fai-video-api-webhooks\">AI video API webhooks guide\u003C\u002Fa> builds the receiver. Files are not kept forever, so the copy on your disk is the one to keep.\u003C\u002Fp>\n\u003Ch2 id=\"swapping-several-people\">Swapping several people\u003C\u002Fh2>\n\u003Cp>Part 4 is the command line. One face needs nothing more. For several, pass one photo per person, from left to right, and one \u003Ccode>--target\u003C\u002Fcode> per photo saying whom it replaces, in the same order:\u003C\u002Fp>",{"type":54,"lang":55,"code":71,"title":72},"def main():\n    parser = argparse.ArgumentParser(description=\"Swap the faces in a clip\")\n    parser.add_argument(\"clip\")\n    parser.add_argument(\"faces\", nargs=\"+\", help=\"one photo per person, left to right\")\n    parser.add_argument(\"--target\", action=\"append\", default=[], help='who a face replaces: \"the man in the red jacket\"')\n    parser.add_argument(\"--resolution\", default=\"768p\", choices=RESOLUTIONS)\n    parser.add_argument(\"--new-outfit\", action=\"store_true\", help=\"dress each person as in their photo\")\n    parser.add_argument(\"--out\", default=\"swapped.mp4\")\n    args = parser.parse_args()\n\n    if len(args.faces) > LIMITS[\"max_faces\"]:\n        raise SystemExit(f\"{LIMITS['max_faces']} faces at most\")\n    if len(args.faces) > 1 and len(args.target) != len(args.faces):\n        raise SystemExit(\"with several faces, give one --target per face, in the same order\")\n\n    clip, seconds = prepare(args.clip)\n    price = quote(seconds, args.resolution)\n    print(f\"{price['breakdown']} · enough balance: {price['enough_balance']}\")\n\n    video = upload(clip)\n    faces = [upload(face) for face in args.faces]\n    gen = wait(submit(video, faces, args.target, args.resolution, keep_outfit=not args.new_outfit))\n    download(gen, args.out)\n    print(f\"saved {args.out} · charged {gen['cost_usd']}\")\n\n\nif __name__ == \"__main__\":\n    main()","swap.py, part 4: the command line",{"type":54,"lang":74,"code":75,"title":76},"curl","python swap.py dance.mp4 me.jpg\npython swap.py duet.mp4 ana.jpg ben.jpg \\\n  --target \"the woman on the left in the yellow coat\" \\\n  --target \"the man on the right\" --resolution 1080p","One face, then two",{"type":51,"html":78},"\u003Cp>A target works best when it names what the camera sees: where the person stands, what they wear, what they are doing. Adding faces adds nothing to the bill, since an edit is priced on the clip&#39;s seconds only: $0.12 a second at 768p and $0.25 at 1080p, so a 6-second clip at 768p comes to $0.72. With \u003Ccode>--new-outfit\u003C\u002Fcode> the script sends \u003Ccode>&quot;keep_outfit&quot;: false\u003C\u002Fcode>, and each person also takes the clothes of their photo, which makes it a \u003Ca href=\"\u002Fblog\u002Fcharacter-swap-api\">character swap\u003C\u002Fa>.\u003C\u002Fp>\n\u003Ch2 id=\"clips-longer-than-the-limit\">Clips longer than the limit\u003C\u002Fh2>\n\u003Cp>One edit takes up to 10 seconds of clip, so a longer scene goes through in pieces. Cut it at exact boundaries, run the script on each piece with the same faces and targets, then join the results:\u003C\u002Fp>",{"type":54,"lang":74,"code":80,"title":81},"ffmpeg -i long.mp4 -r 24 -c:v libx264 -crf 20 -c:a aac \\\n  -force_key_frames \"expr:gte(t,n_forced*10)\" \\\n  -f segment -segment_time 10 -reset_timestamps 1 part-%03d.mp4\n\nfor part in part-*.mp4; do python swap.py \"$part\" me.jpg --out \"swapped-$part\"; done\n\nfor part in swapped-part-*.mp4; do echo \"file '$part'\"; done > parts.txt\nffmpeg -f concat -safe 0 -i parts.txt -c copy swapped-long.mp4","Cut, swap each piece, join",{"type":51,"html":83},"\u003Cp>A final piece under 2 seconds is refused, so trim the scene or move a cut until the last piece is long enough. If the joined file stutters where pieces meet, re-encode instead of copying (\u003Ccode>-c:v libx264 -c:a aac\u003C\u002Fcode> in place of \u003Ccode>-c copy\u003C\u002Fcode>). The request itself, with every field, limit and price, is covered in the \u003Ca href=\"\u002Fblog\u002Fface-swap-video-api\">face swap video API guide\u003C\u002Fa> and the \u003Ca href=\"\u002Fdocs\u002Fedits\">edits reference\u003C\u002Fa>; to wrap this in a product with uploads, consent and pricing, read \u003Ca href=\"\u002Fblog\u002Fhow-to-build-a-face-swap-app\">how to build a face swap app\u003C\u002Fa>. For several people in one shot, see \u003Ca href=\"\u002Fblog\u002Fmultiple-face-swap-video\">multiple face swap video\u003C\u002Fa>, and to budget a long clip, \u003Ca href=\"\u002Fblog\u002Fface-swap-video-api-pricing\">face swap API pricing for video\u003C\u002Fa>.\u003C\u002Fp>",{"type":47,"id":47,"title":48,"items":85},[86,90,94,98,102],{"q":87,"html":88,"text":89},"Is there face swap Python code on GitHub?","\u003Cp>Yes: several open-source face swap projects publish Python code, and they run the models on your own machine, usually with a GPU. The script on this page is different: it is only a client, so the rendering happens on the API&#39;s side and a laptop without a GPU can run it.\u003C\u002Fp>","Yes: several open-source face swap projects publish Python code, and they run the models on your own machine, usually with a GPU. The script on this page is different: it is only a client, so the rendering happens on the API's side and a laptop without a GPU can run it.",{"q":91,"html":92,"text":93},"Which Python version does the face swap script need?","\u003Cp>Python 3.9 or later, with \u003Ccode>requests\u003C\u002Fcode> installed and ffmpeg on the \u003Ccode>PATH\u003C\u002Fcode>. It runs the same on macOS, Linux and Windows.\u003C\u002Fp>","Python 3.9 or later, with requests installed and ffmpeg on the PATH. It runs the same on macOS, Linux and Windows.",{"q":95,"html":96,"text":97},"Can I swap faces in a video for free with Python?","\u003Cp>The account, the API key, uploads and quotes cost nothing, and an edit that fails is not charged. A successful edit is paid from a prepaid balance, per second of clip: $0.12 a second at 768p.\u003C\u002Fp>","The account, the API key, uploads and quotes cost nothing, and an edit that fails is not charged. A successful edit is paid from a prepaid balance, per second of clip: $0.12 a second at 768p.",{"q":99,"html":100,"text":101},"How do I swap faces in many clips at once?","\u003Cp>Run the script once per clip, or submit them all and let a webhook tell you as each one finishes. A workspace runs up to 20 generations at once and sends 10 uploads a minute, so queue a large batch on your side.\u003C\u002Fp>","Run the script once per clip, or submit them all and let a webhook tell you as each one finishes. A workspace runs up to 20 generations at once and sends 10 uploads a minute, so queue a large batch on your side.",{"q":103,"html":104,"text":105},"Why is my clip refused with invalid_video?","\u003Cp>It misses one of the model&#39;s limits: it is too short or too long, over 64 MB, not MP4 or MOV, or not at 24 frames per second. The message says which one, nothing is charged, and the \u003Ccode>prepare\u003C\u002Fcode> function above converts the clip with ffmpeg before sending it.\u003C\u002Fp>","It misses one of the model's limits: it is too short or too long, over 64 MB, not MP4 or MOV, or not at 24 frames per second. The message says which one, nothing is charged, and the prepare function above converts the clip with ffmpeg before sending it.",[107,108,109,110,111],{"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},[113,122,129],{"slug":114,"path":115,"title":116,"description":117,"category":9,"categoryLabel":10,"date":11,"updated":11,"readingMinutes":118,"models":119,"featured":15},"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.",6,[120,121,14],"seedance-2-5","veo-3-1",{"slug":123,"path":124,"title":125,"description":126,"category":9,"categoryLabel":10,"date":11,"updated":11,"readingMinutes":127,"models":128,"featured":15},"how-to-build-a-face-swap-app","\u002Fblog\u002Fhow-to-build-a-face-swap-app","How to Build a Face Swap App for Video by API","How to build a face swap app for video on an API: direct uploads, consent in the product, the edit and its webhook, storage, and pricing above cost.",7,[14],{"slug":130,"path":131,"title":132,"description":133,"category":9,"categoryLabel":10,"date":11,"updated":11,"readingMinutes":118,"models":134,"featured":15},"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.",[135,120,136,14],"nano-banana-pro","fp-image-1","\u002Fstudio",[139,158,167,176,202,219,238,254,269,284,299,313,324,338,351,364,377,388,396,405,415,423,433,441,459],{"id":140,"type":141,"name":142,"description":143,"maker":144,"family":144,"own":145,"image":146,"private":157},"fp-image-2","image","Frameport Image 2","Photoreal renders, up to 4 reference images.","Frameport",true,{"pricing":147,"options":149},{"per_image":148,"per_extra_reference_image":-1},0.025,{"aspect_ratios":150,"max_images":156},[151,152,153,154,155],"1:1","3:4","4:3","9:16","16:9",4,{},{"id":159,"type":141,"name":160,"description":161,"maker":144,"family":144,"own":145,"image":162,"private":166},"fp-image-3","Frameport Image 3","Clean photoreal renders for characters.",{"pricing":163,"options":164},{"per_image":148,"per_extra_reference_image":-1},{"aspect_ratios":165,"max_images":156},[151,152,153,154,155],{},{"id":136,"type":141,"name":168,"description":169,"maker":144,"family":144,"own":145,"image":170,"private":175},"Frameport Image 1","Generation and reference-driven renders, up to 10 reference images.",{"pricing":171,"options":173},{"per_image":148,"per_extra_reference_image":172},0.0025,{"aspect_ratios":174,"max_images":156},[151,152,153,154,155],{},{"id":177,"type":178,"name":179,"description":180,"maker":144,"family":181,"own":145,"video":182,"private":200},"fp-motion-1","video","Frameport Motion 1","Our video engine, with native sound.","Frameport Motion",{"pricing":183,"options":190},{"default_resolution":184,"per_second":185,"per_second_with_audio":-1,"aspect_ratio_multiplier":-1,"per_reference_image":-1,"per_frame_image":-1},"768p",{"480p":186,"768p":187,"1080p":188,"2K":189},0.02,0.06,0.08,0.095,{"resolutions":191,"durations":195,"aspect_ratios":198,"audio_toggle":145,"start_frame":145,"end_frame":145,"max_reference_images":156,"identity_resolutions":199,"seed":15,"negative_prompt":15},[192,184,193,194],"480p","1080p","2K",{"min":12,"max":196,"step":197},15,1,[155,154,151,153,152],[184,193],{"resolutions":201},[192,184],{"id":120,"type":178,"name":203,"description":204,"maker":205,"family":206,"own":15,"video":207},"Seedance 2.5","The long-take flagship — up to 30 seconds with sound","ByteDance","Seedance",{"pricing":208,"options":213},{"default_resolution":209,"per_second":210,"per_second_with_audio":-1,"aspect_ratio_multiplier":-1,"per_reference_image":-1,"per_frame_image":-1},"720p",{"480p":211,"720p":212},0.12,0.27,{"resolutions":214,"durations":215,"aspect_ratios":217,"audio_toggle":145,"start_frame":145,"end_frame":145,"max_reference_images":156,"identity_resolutions":-1,"seed":145,"negative_prompt":15},[192,209],{"min":156,"max":216,"step":197},30,[155,153,151,152,154,218],"21:9",{"id":121,"type":178,"name":220,"description":221,"maker":222,"family":223,"own":15,"video":224},"Veo 3.1","Google’s flagship — up to 4K with native audio","Google","Veo",{"pricing":225,"options":231},{"default_resolution":193,"per_second":226,"per_second_with_audio":229,"aspect_ratio_multiplier":-1,"per_reference_image":-1,"per_frame_image":-1},{"720p":227,"1080p":227,"4K":228},0.235,0.465,{"720p":228,"1080p":228,"4K":230},0.695,{"resolutions":232,"durations":234,"aspect_ratios":236,"audio_toggle":145,"start_frame":145,"end_frame":145,"max_reference_images":237,"identity_resolutions":-1,"seed":145,"negative_prompt":145},[209,193,233],"4K",{"min":156,"max":235,"step":30},8,[155,154],3,{"id":239,"type":178,"name":240,"description":241,"maker":205,"family":206,"own":15,"video":242},"seedance-2-0","Seedance 2.0","Character consistency, up to 4K",{"pricing":243,"options":250},{"default_resolution":209,"per_second":244,"per_second_with_audio":-1,"aspect_ratio_multiplier":248,"per_reference_image":-1,"per_frame_image":-1},{"480p":188,"720p":245,"1080p":246,"4K":247},0.175,0.435,0.9,{"21:9":249},1.32,{"resolutions":251,"durations":252,"aspect_ratios":253,"audio_toggle":145,"start_frame":145,"end_frame":145,"max_reference_images":156,"identity_resolutions":-1,"seed":145,"negative_prompt":15},[192,209,193,233],{"min":156,"max":196,"step":197},[155,153,151,152,154,218],{"id":255,"type":178,"name":256,"description":257,"maker":258,"family":259,"own":15,"video":260},"hailuo-3","Hailuo 3","2K cinematic physics, subject references","MiniMax","Hailuo",{"pricing":261,"options":265},{"default_resolution":194,"per_second":262,"per_second_with_audio":-1,"aspect_ratio_multiplier":-1,"per_reference_image":264,"per_frame_image":-1},{"2K":263},0.15,0.047,{"resolutions":266,"durations":267,"aspect_ratios":268,"audio_toggle":145,"start_frame":145,"end_frame":145,"max_reference_images":237,"identity_resolutions":-1,"seed":15,"negative_prompt":15},[194],{"min":12,"max":196,"step":197},[218,155,153,151,152,154],{"id":270,"type":178,"name":271,"description":272,"maker":273,"family":273,"own":15,"video":274},"runway-gen-4-5","Runway Gen-4.5","Cinematic motion, strong prompt adherence","Runway",{"pricing":275,"options":278},{"default_resolution":209,"per_second":276,"per_second_with_audio":-1,"aspect_ratio_multiplier":-1,"per_reference_image":-1,"per_frame_image":-1},{"720p":277},0.14,{"resolutions":279,"durations":280,"aspect_ratios":282,"audio_toggle":15,"start_frame":145,"end_frame":15,"max_reference_images":283,"identity_resolutions":-1,"seed":145,"negative_prompt":15},[209],{"min":30,"max":281,"step":197},10,[155,154],0,{"id":285,"type":178,"name":286,"description":287,"maker":222,"family":223,"own":15,"video":288},"veo-3-1-fast","Veo 3.1 Fast","Veo quality, faster and a quarter of the price",{"pricing":289,"options":295},{"default_resolution":209,"per_second":290,"per_second_with_audio":293,"aspect_ratio_multiplier":-1,"per_reference_image":-1,"per_frame_image":-1},{"720p":291,"1080p":211,"4K":292},0.093,0.29,{"720p":211,"1080p":277,"4K":294},0.35,{"resolutions":296,"durations":297,"aspect_ratios":298,"audio_toggle":145,"start_frame":145,"end_frame":145,"max_reference_images":237,"identity_resolutions":-1,"seed":145,"negative_prompt":145},[209,193,233],{"min":156,"max":235,"step":30},[155,154],{"id":300,"type":178,"name":301,"description":302,"maker":205,"family":206,"own":15,"video":303},"seedance-2-0-fast","Seedance 2.0 Fast","Seedance references and sound, faster",{"pricing":304,"options":309},{"default_resolution":209,"per_second":305,"per_second_with_audio":-1,"aspect_ratio_multiplier":308,"per_reference_image":-1,"per_frame_image":-1},{"480p":306,"720p":307},0.063,0.145,{"21:9":249},{"resolutions":310,"durations":311,"aspect_ratios":312,"audio_toggle":145,"start_frame":145,"end_frame":145,"max_reference_images":156,"identity_resolutions":-1,"seed":145,"negative_prompt":15},[192,209],{"min":156,"max":196,"step":197},[155,153,151,152,154,218],{"id":314,"type":178,"name":315,"description":316,"maker":258,"family":259,"own":15,"video":317},"hailuo-3-max","Hailuo 3 Max","Fast Hailuo motion, 768p",{"pricing":318,"options":320},{"default_resolution":184,"per_second":319,"per_second_with_audio":-1,"aspect_ratio_multiplier":-1,"per_reference_image":-1,"per_frame_image":-1},{"480p":187,"768p":291},{"resolutions":321,"durations":322,"aspect_ratios":323,"audio_toggle":15,"start_frame":145,"end_frame":145,"max_reference_images":283,"identity_resolutions":-1,"seed":15,"negative_prompt":15},[192,184],{"min":12,"max":196,"step":197},[218,155,153,151,152,154],{"id":325,"type":178,"name":326,"description":327,"maker":328,"family":326,"own":15,"video":329},"grok-imagine","Grok Imagine","Quick clips from a prompt or a start image","xAI",{"pricing":330,"options":334},{"default_resolution":209,"per_second":331,"per_second_with_audio":-1,"aspect_ratio_multiplier":-1,"per_reference_image":-1,"per_frame_image":333},{"480p":291,"720p":332,"1080p":292},0.165,0.014,{"resolutions":335,"durations":336,"aspect_ratios":337,"audio_toggle":15,"start_frame":145,"end_frame":15,"max_reference_images":283,"identity_resolutions":-1,"seed":15,"negative_prompt":15},[192,209,193],{"min":197,"max":196,"step":197},[155,154,151,153,152],{"id":339,"type":178,"name":340,"description":-1,"maker":205,"family":206,"own":15,"video":341},"seedance-2-0-mini","Seedance 2.0 Mini",{"pricing":342,"options":347},{"default_resolution":192,"per_second":343,"per_second_with_audio":-1,"aspect_ratio_multiplier":346,"per_reference_image":-1,"per_frame_image":-1},{"480p":344,"720p":345},0.041,0.088,{"21:9":249},{"resolutions":348,"durations":349,"aspect_ratios":350,"audio_toggle":145,"start_frame":145,"end_frame":145,"max_reference_images":156,"identity_resolutions":-1,"seed":145,"negative_prompt":15},[192,209],{"min":156,"max":196,"step":197},[155,153,151,152,154,218],{"id":352,"type":178,"name":353,"description":354,"maker":222,"family":223,"own":15,"video":355},"veo-3-1-lite","Veo 3.1 Lite","Veo with sound, on every account",{"pricing":356,"options":360},{"default_resolution":209,"per_second":357,"per_second_with_audio":359,"aspect_ratio_multiplier":-1,"per_reference_image":-1,"per_frame_image":-1},{"720p":358,"1080p":187},0.036,{"720p":187,"1080p":291},{"resolutions":361,"durations":362,"aspect_ratios":363,"audio_toggle":145,"start_frame":145,"end_frame":145,"max_reference_images":283,"identity_resolutions":-1,"seed":145,"negative_prompt":145},[209,193],{"min":156,"max":235,"step":30},[155,154],{"id":365,"type":178,"name":366,"description":367,"maker":368,"family":369,"own":15,"video":370},"wan-3","Wan 3.0","Up to 30 seconds, references and sound","Alibaba","Wan",{"pricing":371,"options":373},{"default_resolution":209,"per_second":372,"per_second_with_audio":-1,"aspect_ratio_multiplier":-1,"per_reference_image":-1,"per_frame_image":-1},{"480p":187,"720p":211,"1080p":227},{"resolutions":374,"durations":375,"aspect_ratios":376,"audio_toggle":145,"start_frame":145,"end_frame":15,"max_reference_images":237,"identity_resolutions":-1,"seed":145,"negative_prompt":15},[192,209,193],{"min":30,"max":216,"step":197},[155,153,151,152,154],{"id":378,"type":141,"name":379,"description":380,"maker":381,"family":382,"own":15,"image":383},"gpt-image-2-5-sunburst","GPT Image 2.5 Sunburst","OpenAI's flagship — precise text, composition and control","OpenAI","GPT Image",{"pricing":384,"options":386},{"per_image":385,"per_extra_reference_image":-1},0.085,{"aspect_ratios":387,"max_images":156},[151,152,153,154,155],{"id":389,"type":141,"name":390,"description":391,"maker":381,"family":382,"own":15,"image":392},"gpt-image-2-5-flare","GPT Image 2.5 Flare","OpenAI's image model tuned for expressive, dramatic frames",{"pricing":393,"options":394},{"per_image":385,"per_extra_reference_image":-1},{"aspect_ratios":395,"max_images":156},[151,152,153,154,155],{"id":397,"type":141,"name":398,"description":399,"maker":222,"family":400,"own":15,"image":401},"nano-banana-2-1","Nano Banana 2.1","Google's fast multimodal image model","Nano Banana",{"pricing":402,"options":403},{"per_image":385,"per_extra_reference_image":-1},{"aspect_ratios":404,"max_images":156},[151,152,153,154,155],{"id":406,"type":141,"name":407,"description":408,"maker":205,"family":409,"own":15,"image":410},"seedream-5-0-pro","Seedream 5.0 Pro","ByteDance's flagship — rich detail and texture","Seedream",{"pricing":411,"options":413},{"per_image":412,"per_extra_reference_image":-1},0.099,{"aspect_ratios":414,"max_images":156},[151,152,153,154,155],{"id":135,"type":141,"name":416,"description":417,"maker":222,"family":400,"own":15,"image":418},"Nano Banana Pro","Google's highest-fidelity image model",{"pricing":419,"options":421},{"per_image":420,"per_extra_reference_image":-1},0.16,{"aspect_ratios":422,"max_images":156},[151,152,153,154,155],{"id":424,"type":141,"name":425,"description":426,"maker":427,"family":428,"own":15,"image":429},"flux-3-image","Flux 3 Image","Black Forest Labs' FLUX.3 — photoreal and typography","Black Forest Labs","Flux",{"pricing":430,"options":431},{"per_image":345,"per_extra_reference_image":-1},{"aspect_ratios":432,"max_images":156},[151,152,153,154,155],{"id":434,"type":141,"name":435,"description":436,"maker":328,"family":326,"own":15,"image":437},"grok-imagine-2-0","Grok Imagine 2.0","xAI's fast, characterful image model",{"pricing":438,"options":439},{"per_image":345,"per_extra_reference_image":-1},{"aspect_ratios":440,"max_images":156},[151,152,153,154,155],{"id":14,"type":178,"name":442,"description":443,"maker":144,"family":444,"own":145,"edit":445,"video":453},"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":446,"formats":447,"min_seconds":30,"max_seconds":281,"min_billed_seconds":30,"max_bytes":450,"max_frames":451,"fps":452,"max_faces":156},"replace",[448,449],"mp4","mov",64000000,600,24,{"pricing":454,"options":457},{"default_resolution":184,"per_second":455,"per_second_with_audio":-1,"aspect_ratio_multiplier":-1,"per_reference_image":-1,"per_frame_image":-1},{"768p":211,"1080p":456},0.25,{"resolutions":458,"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},[184,193],{"id":460,"type":178,"name":461,"description":462,"maker":144,"family":463,"own":145,"edit":464,"video":469},"fp-upscale-1","Frameport Upscale 1","Your clip at 1080p or 2K: the same motion, frame rate and sound, sharper detail.","Frameport Upscale",{"tool":465,"formats":466,"min_seconds":197,"max_seconds":216,"min_billed_seconds":12,"max_bytes":467,"max_frames":468,"fps":-1,"max_faces":-1},"upscale",[448,449],100000000,900,{"pricing":470,"options":474},{"default_resolution":193,"per_second":471,"per_second_with_audio":-1,"aspect_ratio_multiplier":-1,"per_reference_image":-1,"per_frame_image":-1},{"1080p":472,"2K":473},0.03,0.05,{"resolutions":475,"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},[193,194],1795901825662,"b270fb84-a112-44f2-9801-f99d6c2e889e"]