[{"data":1,"prerenderedAt":470,"buildId":471},["ShallowReactive",2],{"blog:article:nano-banana-2-1-api":3,"catalog":137},{"article":4,"related":107,"studioPath":136},{"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":28,"toc":29,"blocks":52,"faq":101},"nano-banana-2-1-api","\u002Fblog\u002Fnano-banana-2-1-api","Nano Banana 2.1 API: Code, Batches and Price per Image","The Nano Banana 2.1 API on one key: Google's general-purpose image model from a prompt, with aspect ratios, batches, code in three languages and pricing.","models","Models","2026-11-28",5,[14,15,16],"nano-banana-2-1","nano-banana-pro","fp-image-3",false,"nano banana 2.1 api",[18,20,21,22,23,24,25,26,27],"nano banana 2 api","nano banana 2.1","nano banana 2","nano banana 2 api key","nano banana 2 api documentation","nano banana 2 alternative","nano banana 2 ai","nano banana 2 pro",1235,[30,34,37,40,43,46,49],{"id":31,"text":32,"level":33},"nano-banana-2-1-at-a-glance","Nano Banana 2.1 at a glance",2,{"id":35,"text":36,"level":33},"your-first-nano-banana-2-1-api-call","Your first Nano Banana 2.1 API call",{"id":38,"text":39,"level":33},"nano-banana-2-1-aspect-ratios-and-batch-size","Nano Banana 2.1 aspect ratios and batch size",{"id":41,"text":42,"level":33},"how-nano-banana-2-1-images-are-billed","How Nano Banana 2.1 images are billed",{"id":44,"text":45,"level":33},"prompts-that-suit-nano-banana-2-1","Prompts that suit Nano Banana 2.1",{"id":47,"text":48,"level":33},"nano-banana-2-1-or-nano-banana-pro","Nano Banana 2.1 or Nano Banana Pro?",{"id":50,"text":51,"level":33},"faq","FAQ",[53,56,63,68,70,73,75,77,79],{"type":54,"html":55},"html","\u003Cp>Nano Banana 2.1 is Google&#39;s general-purpose image model, and on Frameport the Nano Banana 2.1 API is one request: a prompt, an aspect ratio and up to 4 images, for $0.085 per image delivered. It renders from text alone, so everything you want in the frame goes into the prompt, and an image that fails is never charged.\u003C\u002Fp>\n\u003Cp>Below: the model&#39;s options, a first call in curl, Python and Node, the shapes and batch sizes it takes, how billing works, prompts that suit it, and when its bigger sibling, Nano Banana Pro, is worth the difference.\u003C\u002Fp>\n\u003Ch2 id=\"nano-banana-2-1-at-a-glance\">Nano Banana 2.1 at a glance\u003C\u002Fh2>\n\u003Cdiv class=\"blog-table box\">\u003Ctable class=\"tbl\">\u003Cthead>\u003Ctr>\u003Cth scope=\"col\">\u003C\u002Fth>\u003Cth scope=\"col\">\u003C\u002Fth>\u003C\u002Ftr>\u003C\u002Fthead>\u003Ctbody>\u003Ctr>\u003Ctd>Maker\u003C\u002Ftd>\u003Ctd>Google\u003C\u002Ftd>\u003C\u002Ftr>\n\u003Ctr>\u003Ctd>Model id\u003C\u002Ftd>\u003Ctd>\u003Ccode>nano-banana-2-1\u003C\u002Fcode>\u003C\u002Ftd>\u003C\u002Ftr>\n\u003Ctr>\u003Ctd>Input\u003C\u002Ftd>\u003Ctd>A text prompt, up to 2,400 characters\u003C\u002Ftd>\u003C\u002Ftr>\n\u003Ctr>\u003Ctd>Pictures it reads\u003C\u002Ftd>\u003Ctd>None: it generates from the prompt\u003C\u002Ftd>\u003C\u002Ftr>\n\u003Ctr>\u003Ctd>Aspect ratios\u003C\u002Ftd>\u003Ctd>1:1, 3:4, 4:3, 9:16 and 16:9\u003C\u002Ftd>\u003C\u002Ftr>\n\u003Ctr>\u003Ctd>Images per request\u003C\u002Ftd>\u003Ctd>1 to 4\u003C\u002Ftd>\u003C\u002Ftr>\n\u003Ctr>\u003Ctd>Price\u003C\u002Ftd>\u003Ctd>$0.085 per image\u003C\u002Ftd>\u003C\u002Ftr>\n\u003Ctr>\u003Ctd>Endpoint\u003C\u002Ftd>\u003Ctd>\u003Ccode>POST \u002Fv1\u002Fimages\u002Fgenerations\u003C\u002Fcode>\u003C\u002Ftd>\u003C\u002Ftr>\u003C\u002Ftbody>\u003C\u002Ftable>\u003C\u002Fdiv>\n\u003Cp>Reach for it when you need many images of an idea and the look matters more than the last fraction of detail: artwork for posts and newsletters, storyboard frames, rough product mockups, a set of illustrations in one style. Name the medium in the prompt and it moves between photographic and illustrated looks, and a plain description of the scene is enough for it to work from.\u003C\u002Fp>\n\u003Ch2 id=\"your-first-nano-banana-2-1-api-call\">Your first Nano Banana 2.1 API call\u003C\u002Fh2>\n\u003Cp>The endpoint answers \u003Ccode>202 Accepted\u003C\u002Fcode> right away, with the generation&#39;s id and the amount held; the images are ready when a later read says so. This call asks for four takes of one illustration in 16:9 and keeps the ones that succeed:\u003C\u002Fp>",{"type":57,"snippets":58,"title":62},"tabs",{"curl":59,"python":60,"node":61},"# 1. Submit four takes in 16:9\ncurl https:\u002F\u002Fframeport.ai\u002Fv1\u002Fimages\u002Fgenerations \\\n  -H \"Authorization: Bearer $FRAMEPORT_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"model\": \"nano-banana-2-1\",\n    \"prompt\": \"Flat vector illustration of a bicycle courier crossing a rainy city square at dusk, muted teal and orange palette, clean shapes\",\n    \"n\": 4,\n    \"aspect_ratio\": \"16:9\"\n  }'\n\n# 2. Read it again with the id it returned, until \"status\" is \"succeeded\"\ncurl https:\u002F\u002Fframeport.ai\u002Fv1\u002Fimages\u002Fgenerations\u002F$GENERATION_ID \\\n  -H \"Authorization: Bearer $FRAMEPORT_API_KEY\"","import os\nimport time\nimport requests\n\nAPI = \"https:\u002F\u002Fframeport.ai\u002Fv1\"\nheaders = {\"Authorization\": f\"Bearer {os.environ['FRAMEPORT_API_KEY']}\"}\n\ngen = requests.post(f\"{API}\u002Fimages\u002Fgenerations\", headers=headers, json={\n    \"model\": \"nano-banana-2-1\",\n    \"prompt\": \"Flat vector illustration of a bicycle courier crossing a rainy city square at dusk, muted teal and orange palette, clean shapes\",\n    \"n\": 4,\n    \"aspect_ratio\": \"16:9\",\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(3)\n    gen = requests.get(f\"{API}\u002Fimages\u002Fgenerations\u002F{gen['id']}\", headers=headers).json()\n\n# Each image settles on its own: save those that succeeded, named after their type\nsaved = 0\nfor index, output in enumerate(gen[\"outputs\"]):\n    if output[\"status\"] != \"succeeded\":\n        continue\n    extension = output[\"content_type\"].split(\"\u002F\")[-1]\n    with open(f\"courier-{index}.{extension}\", \"wb\") as file:\n        file.write(requests.get(output[\"url\"]).content)\n    saved += 1\nprint(f\"saved {saved} images, charged {gen['cost_usd']}\")","import { writeFile } from 'node:fs\u002Fpromises'\n\nconst API = 'https:\u002F\u002Fframeport.ai\u002Fv1'\nconst auth = { Authorization: `Bearer ${process.env.FRAMEPORT_API_KEY}` }\n\nlet gen = await fetch(`${API}\u002Fimages\u002Fgenerations`, {\n  method: 'POST',\n  headers: { ...auth, 'Content-Type': 'application\u002Fjson' },\n  body: JSON.stringify({\n    model: 'nano-banana-2-1',\n    prompt: 'Flat vector illustration of a bicycle courier crossing a rainy city square at dusk, muted teal and orange palette, clean shapes',\n    n: 4,\n    aspect_ratio: '16:9',\n  }),\n}).then(res => res.json())\nif (gen.error) throw new Error(`${gen.error.code}: ${gen.error.message}`)\n\nwhile (gen.status === 'queued' || gen.status === 'running') {\n  await new Promise(resolve => setTimeout(resolve, 3000))\n  gen = await fetch(`${API}\u002Fimages\u002Fgenerations\u002F${gen.id}`, { headers: auth }).then(res => res.json())\n}\n\n\u002F\u002F Each image settles on its own: save those that succeeded, named after their type\nconst done = gen.outputs.filter(output => output.status === 'succeeded')\nfor (const [index, output] of done.entries()) {\n  const extension = output.content_type.split('\u002F').pop()\n  const file = await fetch(output.url)\n  await writeFile(`courier-${index}.${extension}`, Buffer.from(await file.arrayBuffer()))\n}\nconsole.log(`saved ${done.length} images, charged ${gen.cost_usd}`)","Submit · poll",{"type":64,"lang":65,"code":66,"title":67},"code","json","{\n  \"id\": \"gen_4kQ8vT2nLm9Xr7Wd1sYcPa\",\n  \"object\": \"generation\",\n  \"type\": \"image\",\n  \"model\": \"nano-banana-2-1\",\n  \"status\": \"queued\",\n  \"input\": {\n    \"prompt\": \"Flat vector illustration of a bicycle courier crossing a rainy city square at dusk, muted teal and orange palette, clean shapes\",\n    \"n\": 4,\n    \"aspect_ratio\": \"16:9\",\n    \"reference_images\": 0\n  },\n  \"reserved_usd\": 0.34,\n  \"cost_usd\": null,\n  \"outputs\": [\n    { \"id\": \"file_8Hc2RkQw5ZpT1mVb7nXe3L\", \"status\": \"queued\" },\n    { \"id\": \"file_3Vb8KqW2nTx7Lc5Rm1YdPs\", \"status\": \"queued\" },\n    { \"id\": \"file_2Tn7XcQ9vLm4Ra8Ws1KbZd\", \"status\": \"queued\" },\n    { \"id\": \"file_5Wq1ZtR8xNc3Hv6Lp9KmTa\", \"status\": \"queued\" }\n  ],\n  \"error\": null,\n  \"created_at\": \"2026-11-28T10:00:00.000Z\",\n  \"completed_at\": null\n}","202 Accepted",{"type":54,"html":69},"\u003Cp>Once an output is done it carries its own \u003Ccode>status\u003C\u002Fcode>, a \u003Ccode>url\u003C\u002Fcode> signed for about an hour and a \u003Ccode>content_type\u003C\u002Fcode>. To be told when the whole generation has settled instead of asking, register a \u003Ca href=\"\u002Fdocs\u002Fwebhooks\">webhook\u003C\u002Fa>; the \u003Ca href=\"\u002Fdocs\u002Fimages\">images reference\u003C\u002Fa> documents every field.\u003C\u002Fp>\n\u003Ch2 id=\"nano-banana-2-1-aspect-ratios-and-batch-size\">Nano Banana 2.1 aspect ratios and batch size\u003C\u002Fh2>\n\u003Cp>Two fields shape what comes back:\u003C\u002Fp>\n\u003Cul>\n\u003Cli>\u003Cstrong>\u003Ccode>aspect_ratio\u003C\u002Fcode>\u003C\u002Fstrong>: 1:1, 3:4, 4:3, 9:16 and 16:9, square when you leave it out. Square suits avatars and feed posts, \u003Ccode>16:9\u003C\u002Fcode> headers and slides, \u003Ccode>9:16\u003C\u002Fcode> stories and phone wallpapers, \u003Ccode>4:3\u003C\u002Fcode> and \u003Ccode>3:4\u003C\u002Fcode> product and editorial frames.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>\u003Ccode>n\u003C\u002Fcode>\u003C\u002Fstrong>: 1 to 4 images, one when you leave it out. Every image is a separate render of the same prompt, so a single request returns several readings of your brief.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp>There is no picture input on this model: the subject, the setting and the style all have to be put into words. Send a value outside those lists and the API answers \u003Ccode>400 invalid_request\u003C\u002Fcode>, holding nothing, with the accepted values in its message. An \u003Ccode>Idempotency-Key\u003C\u002Fcode> header makes a retry safe, since the same key returns the first generation instead of starting another (\u003Ca href=\"\u002Fdocs\u002Fidempotency\">idempotency\u003C\u002Fa>).\u003C\u002Fp>\n\u003Ch2 id=\"how-nano-banana-2-1-images-are-billed\">How Nano Banana 2.1 images are billed\u003C\u002Fh2>\n\u003Cp>Every image costs $0.085, whatever its shape and however long the prompt. Submitting holds the price of the whole batch on your balance; each image is then charged as it succeeds, and the share of any image that fails returns to your balance.\u003C\u002Fp>\n\u003Cdiv class=\"blog-table box\">\u003Ctable class=\"tbl\">\u003Cthead>\u003Ctr>\u003Cth scope=\"col\" class=\"r\">Images\u003C\u002Fth>\u003Cth scope=\"col\" class=\"r\">Price\u003C\u002Fth>\u003C\u002Ftr>\u003C\u002Fthead>\u003Ctbody>\u003Ctr>\u003Ctd class=\"r\">1\u003C\u002Ftd>\u003Ctd class=\"r\">$0.085\u003C\u002Ftd>\u003C\u002Ftr>\n\u003Ctr>\u003Ctd class=\"r\">4\u003C\u002Ftd>\u003Ctd class=\"r\">$0.34\u003C\u002Ftd>\u003C\u002Ftr>\n\u003Ctr>\u003Ctd class=\"r\">100\u003C\u002Ftd>\u003Ctd class=\"r\">$8.50\u003C\u002Ftd>\u003C\u002Ftr>\n\u003Ctr>\u003Ctd class=\"r\">1,000\u003C\u002Ftd>\u003Ctd class=\"r\">$85.00\u003C\u002Ftd>\u003C\u002Ftr>\u003C\u002Ftbody>\u003C\u002Ftable>\u003C\u002Fdiv>\n\u003Cp>So a batch of four in which one image fails costs $0.255. \u003Ccode>POST \u002Fv1\u002Fgenerations\u002Fquote\u003C\u002Fcode> prices the same body without running it: no hold, and a flag that says whether your balance is enough.\u003C\u002Fp>",{"type":64,"lang":65,"code":71,"title":72},"{\n  \"object\": \"quote\",\n  \"model\": \"nano-banana-2-1\",\n  \"type\": \"image\",\n  \"mode\": \"generate\",\n  \"price_usd\": 0.34,\n  \"reserved_usd\": 0.34,\n  \"breakdown\": \"4 images × $0.085\",\n  \"available_usd\": 42.5,\n  \"enough_balance\": true\n}","Quote · 200 OK",{"type":54,"html":74},"\u003Cp>Code that builds requests from user input can add \u003Ccode>max_cost_usd\u003C\u002Fcode>: a request priced above it is refused before anything is held (\u003Ca href=\"\u002Fdocs\u002Fquotes\">quotes\u003C\u002Fa>). The model keeps Google&#39;s content policy, so a prompt it turns down answers \u003Ccode>400 content_policy\u003C\u002Fcode>, an image refused mid-run fails, and neither is charged. \u003Ca href=\"\u002Fpricing\">Pricing\u003C\u002Fa> explains the balance, topped up from $10.\u003C\u002Fp>",{"type":76,"model":14},"cta",{"type":54,"html":78},"\u003Ch2 id=\"prompts-that-suit-nano-banana-2-1\">Prompts that suit Nano Banana 2.1\u003C\u002Fh2>\n\u003Cul>\n\u003Cli>\u003Cstrong>Lead with the medium.\u003C\u002Fstrong> &quot;Watercolor&quot;, &quot;isometric 3D render&quot;, &quot;35mm street photograph&quot;: open with it, so the look is settled before the details arrive.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>One sentence for the scene, then short clauses.\u003C\u002Fstrong> Say what happens, then add the palette, the light and the framing, each in a few words.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Describe recurring things the same way every time.\u003C\u002Fstrong> The model sees no pictures, so a mascot or a product that returns across images needs the same words each time: color, shape, material, one distinctive detail.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Read the batch before rewriting.\u003C\u002Fstrong> Four takes of one prompt show what the prompt leaves open; tighten the clause that changes most between them.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Keep lettering to a word or two, in quotes.\u003C\u002Fstrong> For posters and packaging carried by their text, a model built for typography such as \u003Ca href=\"\u002Fblog\u002Fgpt-image-2-5-api\">GPT Image 2.5\u003C\u002Fa> fits better.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp>A vague prompt like &quot;a cozy cafe&quot; leaves most choices to chance. &quot;Isometric 3D render of a corner café at night, warm window light, two empty chairs outside, wet cobblestones, soft pastel palette&quot; makes those choices for it.\u003C\u002Fp>\n\u003Ch2 id=\"nano-banana-2-1-or-nano-banana-pro\">Nano Banana 2.1 or Nano Banana Pro?\u003C\u002Fh2>\n\u003Cp>Both come from Google and take the same request, so a prompt moves from one to the other with a change of \u003Ccode>model\u003C\u002Fcode>. What changes is what you pay for:\u003C\u002Fp>\n\u003Cul>\n\u003Cli>\u003Cstrong>Nano Banana 2.1\u003C\u002Fstrong>, $0.085 per image: prompt only, made for exploring and for volume.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Nano Banana Pro\u003C\u002Fstrong>, $0.16 per image: the maker&#39;s highest-fidelity model, which also reads up to 6 pictures and edits them by instruction.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp>Settle the composition on the cheaper model, and spend the Pro price only on the frames you will publish. For a table of the two and code that runs one prompt on both, read \u003Ca href=\"\u002Fblog\u002Fnano-banana-pro-vs-nano-banana-2-1\">Nano Banana Pro vs Nano Banana 2.1\u003C\u002Fa>; edits with reference pictures are in the \u003Ca href=\"\u002Fblog\u002Fnano-banana-pro-api\">Nano Banana Pro API\u003C\u002Fa> guide.\u003C\u002Fp>\n\u003Cp>Looking for a Nano Banana 2 alternative on the same key? For photoreal people and products, \u003Ca href=\"\u002Fmodels\u002Ffp-image-3\">Frameport Image 3\u003C\u002Fa> is priced at $0.025 an image; for concepts with a characterful look, try Grok Imagine 2.0. The \u003Ca href=\"\u002Fblog\u002Fcheapest-image-generation-api\">cheapest image generation API\u003C\u002Fa> guide ranks every image model by price.\u003C\u002Fp>\n\u003Cp>Batch and volume costs are in \u003Ca href=\"\u002Fblog\u002Fnano-banana-2-1-api-pricing\">Nano Banana 2.1 API pricing\u003C\u002Fa>.\u003C\u002Fp>",{"type":50,"id":50,"title":51,"items":80},[81,85,89,93,97],{"q":82,"html":83,"text":84},"How do I get a Nano Banana 2.1 API key?","\u003Cp>You use a Frameport key, not a Google one. \u003Ca href=\"\u002Fsignup\">Sign up\u003C\u002Fa>, add funds, then create a key from the API keys page of the dashboard. Copy it when it appears, because it is displayed a single time; every key begins with \u003Ccode>fp_live_\u003C\u002Fcode>. No Google account or cloud project is involved.\u003C\u002Fp>","You use a Frameport key, not a Google one. Sign up, add funds, then create a key from the API keys page of the dashboard. Copy it when it appears, because it is displayed a single time; every key begins with fp_live_. No Google account or cloud project is involved.",{"q":86,"html":87,"text":88},"Is this the Nano Banana 2 API?","\u003Cp>The version on sale is Nano Banana 2.1, called with the id \u003Ccode>nano-banana-2-1\u003C\u002Fcode>. The catalog has no Nano Banana 2.5 or Lite model; the \u003Ca href=\"\u002Fmodels\">models page\u003C\u002Fa> and \u003Ccode>GET \u002Fv1\u002Fmodels\u003C\u002Fcode> list what you can call. If you were after a Pro version, the catalog sells Nano Banana Pro, Google&#39;s highest-fidelity image model, on the same key.\u003C\u002Fp>","The version on sale is Nano Banana 2.1, called with the id nano-banana-2-1. The catalog has no Nano Banana 2.5 or Lite model; the models page and GET \u002Fv1\u002Fmodels list what you can call. If you were after a Pro version, the catalog sells Nano Banana Pro, Google's highest-fidelity image model, on the same key.",{"q":90,"html":91,"text":92},"Can Nano Banana 2.1 edit my photos?","\u003Cp>No. It renders from the prompt alone and does not use pictures. For edits by instruction, send your pictures to Nano Banana Pro, up to 6 per request, or to Frameport Image 1, up to 10.\u003C\u002Fp>","No. It renders from the prompt alone and does not use pictures. For edits by instruction, send your pictures to Nano Banana Pro, up to 6 per request, or to Frameport Image 1, up to 10.",{"q":94,"html":95,"text":96},"Is there a free Nano Banana 2.1 API?","\u003Cp>The account, the key and quotes cost nothing, and failed images are not charged. The images themselves are paid from a prepaid balance, from $10, with no subscription. You can also \u003Ca href=\"\u002Ftry\u002Fnano-banana-2-1\">try Nano Banana 2.1 online\u003C\u002Fa> before writing code.\u003C\u002Fp>","The account, the key and quotes cost nothing, and failed images are not charged. The images themselves are paid from a prepaid balance, from $10, with no subscription. You can also try Nano Banana 2.1 online before writing code.",{"q":98,"html":99,"text":100},"Where is the Nano Banana 2.1 API documentation?","\u003Cp>The \u003Ca href=\"\u002Fdocs\u002Fimages\">images reference\u003C\u002Fa> covers the endpoint and its fields, and the \u003Ca href=\"\u002Fmodels\u002Fnano-banana-2-1\">model page\u003C\u002Fa> lists the options and the price. \u003Ccode>GET \u002Fv1\u002Fmodels\u002Fnano-banana-2-1\u003C\u002Fcode> returns the live values your code should read: \u003Ccode>options.aspect_ratios\u003C\u002Fcode>, \u003Ccode>options.max_images\u003C\u002Fcode> and \u003Ccode>pricing.per_image\u003C\u002Fcode>.\u003C\u002Fp>","The images reference covers the endpoint and its fields, and the model page lists the options and the price. GET \u002Fv1\u002Fmodels\u002Fnano-banana-2-1 returns the live values your code should read: options.aspect_ratios, options.max_images and pricing.per_image.",[102,103,104,105,106],{"q":82,"html":83,"text":84},{"q":86,"html":87,"text":88},{"q":90,"html":91,"text":92},{"q":94,"html":95,"text":96},{"q":98,"html":99,"text":100},[108,114,127],{"slug":109,"path":110,"title":111,"description":112,"category":9,"categoryLabel":10,"date":11,"updated":11,"readingMinutes":12,"models":113,"featured":17},"nano-banana-pro-api","\u002Fblog\u002Fnano-banana-pro-api","Nano Banana Pro API: Generate Images by Code","The Nano Banana Pro API on one key: Google's highest-fidelity image model by code, edits from your pictures, batches, curl, Python and Node, and the price.",[15,14],{"slug":115,"path":116,"title":117,"description":118,"category":119,"categoryLabel":120,"date":11,"updated":11,"readingMinutes":121,"models":122,"featured":17},"ai-image-generation-api-cost","\u002Fblog\u002Fai-image-generation-api-cost","AI Image Generation API Cost per Image, by Model","Image generation API cost per image, model by model: what a batch and 1,000 images cost, reference pictures, and why a failed image costs nothing.","pricing","Pricing",4,[15,123,124,125,126,14],"gpt-image-2-5-sunburst","seedream-5-0-pro","flux-3-image","fp-image-1",{"slug":128,"path":129,"title":130,"description":131,"category":119,"categoryLabel":120,"date":11,"updated":11,"readingMinutes":132,"models":133,"featured":17},"cheapest-image-generation-api","\u002Fblog\u002Fcheapest-image-generation-api","Cheapest Image Generation API Models (2026)","The cheapest image generation API models in our catalog, what each gives up for its price, and how batches and per-image billing set the real cost.",6,[126,134,16,14,135],"fp-image-2","grok-imagine-2-0","\u002Fstudio",[138,155,163,172,198,216,236,252,267,282,297,311,322,336,349,362,375,385,393,401,410,418,427,434,453],{"id":134,"type":139,"name":140,"description":141,"maker":142,"family":142,"own":143,"image":144,"private":154},"image","Frameport Image 2","Photoreal renders, up to 4 reference images.","Frameport",true,{"pricing":145,"options":147},{"per_image":146,"per_extra_reference_image":-1},0.025,{"aspect_ratios":148,"max_images":121},[149,150,151,152,153],"1:1","3:4","4:3","9:16","16:9",{},{"id":16,"type":139,"name":156,"description":157,"maker":142,"family":142,"own":143,"image":158,"private":162},"Frameport Image 3","Clean photoreal renders for characters.",{"pricing":159,"options":160},{"per_image":146,"per_extra_reference_image":-1},{"aspect_ratios":161,"max_images":121},[149,150,151,152,153],{},{"id":126,"type":139,"name":164,"description":165,"maker":142,"family":142,"own":143,"image":166,"private":171},"Frameport Image 1","Generation and reference-driven renders, up to 10 reference images.",{"pricing":167,"options":169},{"per_image":146,"per_extra_reference_image":168},0.0025,{"aspect_ratios":170,"max_images":121},[149,150,151,152,153],{},{"id":173,"type":174,"name":175,"description":176,"maker":142,"family":177,"own":143,"video":178,"private":196},"fp-motion-1","video","Frameport Motion 1","Our video engine, with native sound.","Frameport Motion",{"pricing":179,"options":186},{"default_resolution":180,"per_second":181,"per_second_with_audio":-1,"aspect_ratio_multiplier":-1,"per_reference_image":-1,"per_frame_image":-1},"768p",{"480p":182,"768p":183,"1080p":184,"2K":185},0.02,0.06,0.08,0.095,{"resolutions":187,"durations":191,"aspect_ratios":194,"audio_toggle":143,"start_frame":143,"end_frame":143,"max_reference_images":121,"identity_resolutions":195,"seed":17,"negative_prompt":17},[188,180,189,190],"480p","1080p","2K",{"min":12,"max":192,"step":193},15,1,[153,152,149,151,150],[180,189],{"resolutions":197},[188,180],{"id":199,"type":174,"name":200,"description":201,"maker":202,"family":203,"own":17,"video":204},"seedance-2-5","Seedance 2.5","The long-take flagship — up to 30 seconds with sound","ByteDance","Seedance",{"pricing":205,"options":210},{"default_resolution":206,"per_second":207,"per_second_with_audio":-1,"aspect_ratio_multiplier":-1,"per_reference_image":-1,"per_frame_image":-1},"720p",{"480p":208,"720p":209},0.12,0.27,{"resolutions":211,"durations":212,"aspect_ratios":214,"audio_toggle":143,"start_frame":143,"end_frame":143,"max_reference_images":121,"identity_resolutions":-1,"seed":143,"negative_prompt":17},[188,206],{"min":121,"max":213,"step":193},30,[153,151,149,150,152,215],"21:9",{"id":217,"type":174,"name":218,"description":219,"maker":220,"family":221,"own":17,"video":222},"veo-3-1","Veo 3.1","Google’s flagship — up to 4K with native audio","Google","Veo",{"pricing":223,"options":229},{"default_resolution":189,"per_second":224,"per_second_with_audio":227,"aspect_ratio_multiplier":-1,"per_reference_image":-1,"per_frame_image":-1},{"720p":225,"1080p":225,"4K":226},0.235,0.465,{"720p":226,"1080p":226,"4K":228},0.695,{"resolutions":230,"durations":232,"aspect_ratios":234,"audio_toggle":143,"start_frame":143,"end_frame":143,"max_reference_images":235,"identity_resolutions":-1,"seed":143,"negative_prompt":143},[206,189,231],"4K",{"min":121,"max":233,"step":33},8,[153,152],3,{"id":237,"type":174,"name":238,"description":239,"maker":202,"family":203,"own":17,"video":240},"seedance-2-0","Seedance 2.0","Character consistency, up to 4K",{"pricing":241,"options":248},{"default_resolution":206,"per_second":242,"per_second_with_audio":-1,"aspect_ratio_multiplier":246,"per_reference_image":-1,"per_frame_image":-1},{"480p":184,"720p":243,"1080p":244,"4K":245},0.175,0.435,0.9,{"21:9":247},1.32,{"resolutions":249,"durations":250,"aspect_ratios":251,"audio_toggle":143,"start_frame":143,"end_frame":143,"max_reference_images":121,"identity_resolutions":-1,"seed":143,"negative_prompt":17},[188,206,189,231],{"min":121,"max":192,"step":193},[153,151,149,150,152,215],{"id":253,"type":174,"name":254,"description":255,"maker":256,"family":257,"own":17,"video":258},"hailuo-3","Hailuo 3","2K cinematic physics, subject references","MiniMax","Hailuo",{"pricing":259,"options":263},{"default_resolution":190,"per_second":260,"per_second_with_audio":-1,"aspect_ratio_multiplier":-1,"per_reference_image":262,"per_frame_image":-1},{"2K":261},0.15,0.047,{"resolutions":264,"durations":265,"aspect_ratios":266,"audio_toggle":143,"start_frame":143,"end_frame":143,"max_reference_images":235,"identity_resolutions":-1,"seed":17,"negative_prompt":17},[190],{"min":12,"max":192,"step":193},[215,153,151,149,150,152],{"id":268,"type":174,"name":269,"description":270,"maker":271,"family":271,"own":17,"video":272},"runway-gen-4-5","Runway Gen-4.5","Cinematic motion, strong prompt adherence","Runway",{"pricing":273,"options":276},{"default_resolution":206,"per_second":274,"per_second_with_audio":-1,"aspect_ratio_multiplier":-1,"per_reference_image":-1,"per_frame_image":-1},{"720p":275},0.14,{"resolutions":277,"durations":278,"aspect_ratios":280,"audio_toggle":17,"start_frame":143,"end_frame":17,"max_reference_images":281,"identity_resolutions":-1,"seed":143,"negative_prompt":17},[206],{"min":33,"max":279,"step":193},10,[153,152],0,{"id":283,"type":174,"name":284,"description":285,"maker":220,"family":221,"own":17,"video":286},"veo-3-1-fast","Veo 3.1 Fast","Veo quality, faster and a quarter of the price",{"pricing":287,"options":293},{"default_resolution":206,"per_second":288,"per_second_with_audio":291,"aspect_ratio_multiplier":-1,"per_reference_image":-1,"per_frame_image":-1},{"720p":289,"1080p":208,"4K":290},0.093,0.29,{"720p":208,"1080p":275,"4K":292},0.35,{"resolutions":294,"durations":295,"aspect_ratios":296,"audio_toggle":143,"start_frame":143,"end_frame":143,"max_reference_images":235,"identity_resolutions":-1,"seed":143,"negative_prompt":143},[206,189,231],{"min":121,"max":233,"step":33},[153,152],{"id":298,"type":174,"name":299,"description":300,"maker":202,"family":203,"own":17,"video":301},"seedance-2-0-fast","Seedance 2.0 Fast","Seedance references and sound, faster",{"pricing":302,"options":307},{"default_resolution":206,"per_second":303,"per_second_with_audio":-1,"aspect_ratio_multiplier":306,"per_reference_image":-1,"per_frame_image":-1},{"480p":304,"720p":305},0.063,0.145,{"21:9":247},{"resolutions":308,"durations":309,"aspect_ratios":310,"audio_toggle":143,"start_frame":143,"end_frame":143,"max_reference_images":121,"identity_resolutions":-1,"seed":143,"negative_prompt":17},[188,206],{"min":121,"max":192,"step":193},[153,151,149,150,152,215],{"id":312,"type":174,"name":313,"description":314,"maker":256,"family":257,"own":17,"video":315},"hailuo-3-max","Hailuo 3 Max","Fast Hailuo motion, 768p",{"pricing":316,"options":318},{"default_resolution":180,"per_second":317,"per_second_with_audio":-1,"aspect_ratio_multiplier":-1,"per_reference_image":-1,"per_frame_image":-1},{"480p":183,"768p":289},{"resolutions":319,"durations":320,"aspect_ratios":321,"audio_toggle":17,"start_frame":143,"end_frame":143,"max_reference_images":281,"identity_resolutions":-1,"seed":17,"negative_prompt":17},[188,180],{"min":12,"max":192,"step":193},[215,153,151,149,150,152],{"id":323,"type":174,"name":324,"description":325,"maker":326,"family":324,"own":17,"video":327},"grok-imagine","Grok Imagine","Quick clips from a prompt or a start image","xAI",{"pricing":328,"options":332},{"default_resolution":206,"per_second":329,"per_second_with_audio":-1,"aspect_ratio_multiplier":-1,"per_reference_image":-1,"per_frame_image":331},{"480p":289,"720p":330,"1080p":290},0.165,0.014,{"resolutions":333,"durations":334,"aspect_ratios":335,"audio_toggle":17,"start_frame":143,"end_frame":17,"max_reference_images":281,"identity_resolutions":-1,"seed":17,"negative_prompt":17},[188,206,189],{"min":193,"max":192,"step":193},[153,152,149,151,150],{"id":337,"type":174,"name":338,"description":-1,"maker":202,"family":203,"own":17,"video":339},"seedance-2-0-mini","Seedance 2.0 Mini",{"pricing":340,"options":345},{"default_resolution":188,"per_second":341,"per_second_with_audio":-1,"aspect_ratio_multiplier":344,"per_reference_image":-1,"per_frame_image":-1},{"480p":342,"720p":343},0.041,0.088,{"21:9":247},{"resolutions":346,"durations":347,"aspect_ratios":348,"audio_toggle":143,"start_frame":143,"end_frame":143,"max_reference_images":121,"identity_resolutions":-1,"seed":143,"negative_prompt":17},[188,206],{"min":121,"max":192,"step":193},[153,151,149,150,152,215],{"id":350,"type":174,"name":351,"description":352,"maker":220,"family":221,"own":17,"video":353},"veo-3-1-lite","Veo 3.1 Lite","Veo with sound, on every account",{"pricing":354,"options":358},{"default_resolution":206,"per_second":355,"per_second_with_audio":357,"aspect_ratio_multiplier":-1,"per_reference_image":-1,"per_frame_image":-1},{"720p":356,"1080p":183},0.036,{"720p":183,"1080p":289},{"resolutions":359,"durations":360,"aspect_ratios":361,"audio_toggle":143,"start_frame":143,"end_frame":143,"max_reference_images":281,"identity_resolutions":-1,"seed":143,"negative_prompt":143},[206,189],{"min":121,"max":233,"step":33},[153,152],{"id":363,"type":174,"name":364,"description":365,"maker":366,"family":367,"own":17,"video":368},"wan-3","Wan 3.0","Up to 30 seconds, references and sound","Alibaba","Wan",{"pricing":369,"options":371},{"default_resolution":206,"per_second":370,"per_second_with_audio":-1,"aspect_ratio_multiplier":-1,"per_reference_image":-1,"per_frame_image":-1},{"480p":183,"720p":208,"1080p":225},{"resolutions":372,"durations":373,"aspect_ratios":374,"audio_toggle":143,"start_frame":143,"end_frame":17,"max_reference_images":235,"identity_resolutions":-1,"seed":143,"negative_prompt":17},[188,206,189],{"min":33,"max":213,"step":193},[153,151,149,150,152],{"id":123,"type":139,"name":376,"description":377,"maker":378,"family":379,"own":17,"image":380},"GPT Image 2.5 Sunburst","OpenAI's flagship — precise text, composition and control","OpenAI","GPT Image",{"pricing":381,"options":383},{"per_image":382,"per_extra_reference_image":-1},0.085,{"aspect_ratios":384,"max_images":121},[149,150,151,152,153],{"id":386,"type":139,"name":387,"description":388,"maker":378,"family":379,"own":17,"image":389},"gpt-image-2-5-flare","GPT Image 2.5 Flare","OpenAI's image model tuned for expressive, dramatic frames",{"pricing":390,"options":391},{"per_image":382,"per_extra_reference_image":-1},{"aspect_ratios":392,"max_images":121},[149,150,151,152,153],{"id":14,"type":139,"name":394,"description":395,"maker":220,"family":396,"own":17,"image":397},"Nano Banana 2.1","Google's fast multimodal image model","Nano Banana",{"pricing":398,"options":399},{"per_image":382,"per_extra_reference_image":-1},{"aspect_ratios":400,"max_images":121},[149,150,151,152,153],{"id":124,"type":139,"name":402,"description":403,"maker":202,"family":404,"own":17,"image":405},"Seedream 5.0 Pro","ByteDance's flagship — rich detail and texture","Seedream",{"pricing":406,"options":408},{"per_image":407,"per_extra_reference_image":-1},0.099,{"aspect_ratios":409,"max_images":121},[149,150,151,152,153],{"id":15,"type":139,"name":411,"description":412,"maker":220,"family":396,"own":17,"image":413},"Nano Banana Pro","Google's highest-fidelity image model",{"pricing":414,"options":416},{"per_image":415,"per_extra_reference_image":-1},0.16,{"aspect_ratios":417,"max_images":121},[149,150,151,152,153],{"id":125,"type":139,"name":419,"description":420,"maker":421,"family":422,"own":17,"image":423},"Flux 3 Image","Black Forest Labs' FLUX.3 — photoreal and typography","Black Forest Labs","Flux",{"pricing":424,"options":425},{"per_image":343,"per_extra_reference_image":-1},{"aspect_ratios":426,"max_images":121},[149,150,151,152,153],{"id":135,"type":139,"name":428,"description":429,"maker":326,"family":324,"own":17,"image":430},"Grok Imagine 2.0","xAI's fast, characterful image model",{"pricing":431,"options":432},{"per_image":343,"per_extra_reference_image":-1},{"aspect_ratios":433,"max_images":121},[149,150,151,152,153],{"id":435,"type":174,"name":436,"description":437,"maker":142,"family":438,"own":143,"edit":439,"video":447},"fp-replace-1","Frameport Replace 1","Up to four people in your clip replaced by the faces you send: moves, lips, scene and sound kept.","Frameport Replace",{"tool":440,"formats":441,"min_seconds":33,"max_seconds":279,"min_billed_seconds":33,"max_bytes":444,"max_frames":445,"fps":446,"max_faces":121},"replace",[442,443],"mp4","mov",64000000,600,24,{"pricing":448,"options":451},{"default_resolution":180,"per_second":449,"per_second_with_audio":-1,"aspect_ratio_multiplier":-1,"per_reference_image":-1,"per_frame_image":-1},{"768p":208,"1080p":450},0.25,{"resolutions":452,"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},[180,189],{"id":454,"type":174,"name":455,"description":456,"maker":142,"family":457,"own":143,"edit":458,"video":463},"fp-upscale-1","Frameport Upscale 1","Your clip at 1080p or 2K: the same motion, frame rate and sound, sharper detail.","Frameport Upscale",{"tool":459,"formats":460,"min_seconds":193,"max_seconds":213,"min_billed_seconds":12,"max_bytes":461,"max_frames":462,"fps":-1,"max_faces":-1},"upscale",[442,443],100000000,900,{"pricing":464,"options":468},{"default_resolution":189,"per_second":465,"per_second_with_audio":-1,"aspect_ratio_multiplier":-1,"per_reference_image":-1,"per_frame_image":-1},{"1080p":466,"2K":467},0.03,0.05,{"resolutions":469,"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},[189,190],1795901825921,"b270fb84-a112-44f2-9801-f99d6c2e889e"]