[{"data":1,"prerenderedAt":479,"buildId":480},["ShallowReactive",2],{"blog:article:nextjs-ai-image-generation":3,"catalog":142},{"article":4,"related":116,"studioPath":141},{"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":26,"toc":27,"blocks":47,"faq":110},"nextjs-ai-image-generation","\u002Fblog\u002Fnextjs-ai-image-generation","Next.js AI Image Generation With a Server Route","Nextjs AI image generation done safely: a route handler that holds the key, progress in the page, files served from your domain, and webhooks for video.","guides","Guides","2026-11-28",5,[14,15,16],"nano-banana-pro","fp-image-1","fp-motion-1",false,"nextjs ai image generation",[18,20,21,22,23,24,25],"nextjs image generation","nextjs image generation api","react image generation api key","nextjs image generation github","react image generation api free","grok imagine api nextjs",1037,[28,32,35,38,41,44],{"id":29,"text":30,"level":31},"next-js-ai-image-generation-the-architecture","Next.js AI image generation: the architecture",2,{"id":33,"text":34,"level":31},"a-route-handler-that-submits","A route handler that submits",{"id":36,"text":37,"level":31},"showing-progress","Showing progress",{"id":39,"text":40,"level":31},"serving-the-file","Serving the file",{"id":42,"text":43,"level":31},"webhooks-for-video","Webhooks for video",{"id":45,"text":46,"level":31},"faq","FAQ",[48,51,56,58,61,63,66,68,71,73,76,78,81,83,86,88],{"type":49,"html":50},"html","\u003Cp>Next.js AI image generation belongs on the server: a route handler receives the prompt from your page, calls the image API with a key the browser never sees, and hands back only an id to watch. On Frameport that route reaches \u003Ca href=\"\u002Fmodels\u002Fnano-banana-pro\">Nano Banana Pro\u003C\u002Fa>, Frameport Image 1 and every other image model with one key, and the same pattern, plus a webhook, runs video models such as Frameport Motion 1.\u003C\u002Fp>\n\u003Cp>This guide builds it in the App Router: the architecture, a route that submits, a page that shows progress, a route that serves the files from your own domain, and a webhook receiver for video clips.\u003C\u002Fp>\n\u003Ch2 id=\"next-js-ai-image-generation-the-architecture\">Next.js AI image generation: the architecture\u003C\u002Fh2>\n\u003Cp>The browser never calls the API. Your key spends your balance, and anything in client code, including any variable prefixed \u003Ccode>NEXT_PUBLIC_\u003C\u002Fcode>, ships to every visitor. So three server routes sit between the page and the API:\u003C\u002Fp>\n\u003Cdiv class=\"blog-table box\">\u003Ctable class=\"tbl\">\u003Cthead>\u003Ctr>\u003Cth scope=\"col\">Route\u003C\u002Fth>\u003Cth scope=\"col\">What it does\u003C\u002Fth>\u003C\u002Ftr>\u003C\u002Fthead>\u003Ctbody>\u003Ctr>\u003Ctd>\u003Ccode>POST \u002Fapi\u002Fimages\u003C\u002Fcode>\u003C\u002Ftd>\u003Ctd>Checks the user, validates the prompt, submits the generation, remembers who asked\u003C\u002Ftd>\u003C\u002Ftr>\n\u003Ctr>\u003Ctd>\u003Ccode>GET \u002Fapi\u002Fimages\u002F[id]\u003C\u002Fcode>\u003C\u002Ftd>\u003Ctd>Reads the generation for its owner, returns its status and image paths\u003C\u002Ftd>\u003C\u002Ftr>\n\u003Ctr>\u003Ctd>\u003Ccode>GET \u002Fapi\u002Fimages\u002F[id]\u002Ffile\u002F[index]\u003C\u002Fcode>\u003C\u002Ftd>\u003Ctd>Streams one image from the API, so the page never handles signed links\u003C\u002Ftd>\u003C\u002Ftr>\u003C\u002Ftbody>\u003C\u002Ftable>\u003C\u002Fdiv>\n\u003Cp>The key lives in \u003Ccode>.env.local\u003C\u002Fcode> as \u003Ccode>FRAMEPORT_API_KEY\u003C\u002Fcode>, without the public prefix, and one server-only module is the only code that reads it:\u003C\u002Fp>",{"type":52,"lang":53,"code":54,"title":55},"code","node","import 'server-only' \u002F\u002F npm install server-only: importing this from a client component fails the build\n\nexport function api(path: string, init: RequestInit = {}): Promise\u003CResponse> {\n  return fetch(`https:\u002F\u002Fframeport.ai\u002Fv1${path}`, {\n    ...init,\n    cache: 'no-store',\n    headers: {\n      'Authorization': `Bearer ${process.env.FRAMEPORT_API_KEY}`,\n      'Content-Type': 'application\u002Fjson',\n      ...init.headers,\n    },\n  })\n}","lib\u002Fai.ts",{"type":49,"html":57},"\u003Cp>Each generation id is stored with the user who started it, and every read checks that link; otherwise one user could watch another&#39;s images by guessing ids. Swap this sketch for your database and your auth:\u003C\u002Fp>",{"type":52,"lang":53,"code":59,"title":60},"import 'server-only'\nimport { cookies } from 'next\u002Fheaders'\n\nconst owners = new Map\u003Cstring, string>() \u002F\u002F generation id → user id: use your database\n\nexport async function currentUser(): Promise\u003Cstring | null> {\n  return (await cookies()).get('session')?.value ?? null \u002F\u002F use your auth\n}\nexport const remember = (id: string, user: string) => owners.set(id, user)\nexport const owns = (id: string, user: string) => owners.get(id) === user","lib\u002Fjobs.ts",{"type":49,"html":62},"\u003Ch2 id=\"a-route-handler-that-submits\">A route handler that submits\u003C\u002Fh2>\n\u003Cp>The route refuses what it should before anything is spent, then sends the request with a \u003Ccode>max_cost_usd\u003C\u002Fcode> cap, so no single call can cost more than you planned:\u003C\u002Fp>",{"type":52,"lang":53,"code":64,"title":65},"import { api } from '@\u002Flib\u002Fai'\nimport { currentUser, remember } from '@\u002Flib\u002Fjobs'\n\nexport async function POST(request: Request) {\n  const user = await currentUser()\n  if (!user) return Response.json({ message: 'Sign in first.' }, { status: 401 })\n\n  const { prompt } = await request.json()\n  if (typeof prompt !== 'string' || !prompt.trim() || prompt.length > 2400) {\n    return Response.json({ message: 'Write a prompt of up to 2,400 characters.' }, { status: 400 })\n  }\n\n  const res = await api('\u002Fimages\u002Fgenerations', {\n    method: 'POST',\n    body: JSON.stringify({ model: 'fp-image-1', prompt, n: 2, max_cost_usd: 0.05 }),\n  })\n  const gen = await res.json()\n  if (gen.error) return Response.json({ message: gen.error.message }, { status: res.status })\n\n  remember(gen.id, user)\n  return Response.json({ id: gen.id }, { status: 202 })\n}","app\u002Fapi\u002Fimages\u002Froute.ts",{"type":49,"html":67},"\u003Cp>Two images on Frameport Image 1 cost $0.05, and an image that fails is not charged. To switch to Nano Banana Pro, change the \u003Ccode>model\u003C\u002Fcode> and the cap; the body is the same for every image model (\u003Ca href=\"\u002Fdocs\u002Fimages\">images reference\u003C\u002Fa>). A server action (\u003Ccode>&#39;use server&#39;\u003C\u002Fcode>) can do the same job, but it is a public endpoint just like a route, so it needs the same user check. If your server retries a submit after a timeout, send an \u003Ccode>Idempotency-Key\u003C\u002Fcode> header so the retry returns the first generation instead of a second one (\u003Ca href=\"\u002Fblog\u002Fidempotency-keys-ai-generation\">idempotency keys\u003C\u002Fa>).\u003C\u002Fp>\n\u003Ch2 id=\"showing-progress\">Showing progress\u003C\u002Fh2>\n\u003Cp>The page polls your route, never the API. A read every two seconds, the low end of the interval the docs suggest, shows each image soon after it is ready:\u003C\u002Fp>",{"type":52,"lang":53,"code":69,"title":70},"'use client'\nimport { type FormEvent, useState } from 'react'\n\ntype Job = { status: string; images: string[]; message: string | null }\n\nexport default function Generate() {\n  const [prompt, setPrompt] = useState('')\n  const [job, setJob] = useState\u003CJob | null>(null)\n  const busy = job?.status === 'queued' || job?.status === 'running'\n\n  async function submit(event: FormEvent) {\n    event.preventDefault()\n    setJob({ status: 'queued', images: [], message: null })\n    const res = await fetch('\u002Fapi\u002Fimages', {\n      method: 'POST',\n      headers: { 'Content-Type': 'application\u002Fjson' },\n      body: JSON.stringify({ prompt }),\n    })\n    const started = await res.json()\n    if (!res.ok) return setJob({ status: 'failed', images: [], message: started.message })\n\n    let current: Job\n    do {\n      await new Promise(resolve => setTimeout(resolve, 2000))\n      current = await fetch(`\u002Fapi\u002Fimages\u002F${started.id}`).then(r => r.json())\n      setJob(current)\n    } while (current.status === 'queued' || current.status === 'running')\n  }\n\n  return (\n    \u003Cform onSubmit={submit}>\n      \u003Ctextarea value={prompt} onChange={event => setPrompt(event.target.value)} maxLength={2400} \u002F>\n      \u003Cbutton disabled={busy}>{busy ? 'Generating…' : 'Generate'}\u003C\u002Fbutton>\n      {job?.message && \u003Cp>{job.message}\u003C\u002Fp>}\n      {job?.images.map(src => \u003Cimg key={src} src={src} alt=\"\" width={512} height={512} \u002F>)}\n    \u003C\u002Fform>\n  )\n}","app\u002Fgenerate\u002Fpage.tsx",{"type":49,"html":72},"\u003Cp>The read route turns the generation into what the page needs and nothing more:\u003C\u002Fp>",{"type":52,"lang":53,"code":74,"title":75},"import { api } from '@\u002Flib\u002Fai'\nimport { currentUser, owns } from '@\u002Flib\u002Fjobs'\n\nexport async function GET(_request: Request, { params }: { params: Promise\u003C{ id: string }> }) {\n  const { id } = await params\n  const user = await currentUser()\n  if (!user || !owns(id, user)) return Response.json({ message: 'Not found.' }, { status: 404 })\n\n  const res = await api(`\u002Fgenerations\u002F${id}`)\n  if (!res.ok) return Response.json({ message: 'Try again in a moment.' }, { status: 503 })\n  const gen = await res.json()\n\n  return Response.json({\n    status: gen.status, \u002F\u002F queued, running, succeeded or failed\n    images: gen.outputs.flatMap((output: { status: string }, index: number) =>\n      output.status === 'succeeded' ? [`\u002Fapi\u002Fimages\u002F${id}\u002Ffile\u002F${index}`] : []),\n    message: gen.status === 'failed' ? gen.error.message : null,\n  })\n}","app\u002Fapi\u002Fimages\u002F[id]\u002Froute.ts",{"type":49,"html":77},"\u003Cp>Reads cost nothing and do not count against the workspace&#39;s 60 requests a minute, which only counts requests that start work.\u003C\u002Fp>\n\u003Ch2 id=\"serving-the-file\">Serving the file\u003C\u002Fh2>\n\u003Cp>Each output has a signed \u003Ccode>url\u003C\u002Fcode> that works without a key for about an hour, which is awkward to hand to a page that may stay open longer. Instead, stream the bytes through your own route from \u003Ccode>GET \u002Fv1\u002Fgenerations\u002F{id}\u002Fcontent\u002F{index}\u003C\u002Fcode>, which reads the output at that position with your key:\u003C\u002Fp>",{"type":52,"lang":53,"code":79,"title":80},"import { api } from '@\u002Flib\u002Fai'\nimport { currentUser, owns } from '@\u002Flib\u002Fjobs'\n\nexport async function GET(_request: Request, { params }: { params: Promise\u003C{ id: string; index: string }> }) {\n  const { id, index } = await params\n  const user = await currentUser()\n  if (!user || !owns(id, user) || !\u002F^[0-3]$\u002F.test(index)) return new Response('Not found', { status: 404 })\n\n  const file = await api(`\u002Fgenerations\u002F${id}\u002Fcontent\u002F${index}`)\n  if (!file.ok) return new Response(null, { status: file.status === 409 ? 409 : 404 })\n  return new Response(file.body, {\n    headers: {\n      'Content-Type': file.headers.get('content-type') ?? 'image\u002Fpng',\n      'Cache-Control': 'private, max-age=86400',\n    },\n  })\n}","app\u002Fapi\u002Fimages\u002F[id]\u002Ffile\u002F[index]\u002Froute.ts",{"type":49,"html":82},"\u003Cp>The image now lives at a stable path on your domain, behind your auth, and the body streams through without being held in memory. A \u003Ccode>409\u003C\u002Fcode> means the file is not ready yet. Files are not kept forever, though: copy the images users keep to your own storage (S3, R2, your CDN) once they succeed, and serve those copies.\u003C\u002Fp>\n\u003Ch2 id=\"webhooks-for-video\">Webhooks for video\u003C\u002Fh2>\n\u003Cp>For video, let the API call you rather than keep a page polling for the whole render. Submit from a route as above (\u003Ccode>\u002Fvideos\u002Fgenerations\u003C\u002Fcode> with \u003Ccode>fp-motion-1\u003C\u002Fcode>, a \u003Ccode>duration\u003C\u002Fcode>, a \u003Ccode>resolution\u003C\u002Fcode> and an \u003Ccode>aspect_ratio\u003C\u002Fcode>), then add an endpoint under \u003Ca href=\"\u002Fdashboard\u002Fwebhooks\">Webhooks\u003C\u002Fa> in the dashboard. Each delivery is a signed \u003Ccode>POST\u003C\u002Fcode> with the generation in \u003Ccode>data\u003C\u002Fcode>; verify it on the raw body and answer fast:\u003C\u002Fp>",{"type":52,"lang":53,"code":84,"title":85},"import { createHmac, timingSafeEqual } from 'node:crypto'\nimport { after } from 'next\u002Fserver'\n\nexport const runtime = 'nodejs'\n\nfunction verified(raw: string, header: string | null): boolean {\n  const parts = Object.fromEntries((header ?? '').split(',').map(part => part.trim().split('=')))\n  if (!parts.t || !parts.v1 || Math.abs(Date.now() \u002F 1000 - Number(parts.t)) > 300) return false\n  const expected = createHmac('sha256', process.env.WEBHOOK_SECRET!).update(`${parts.t}.${raw}`).digest('hex')\n  return expected.length === parts.v1.length && timingSafeEqual(Buffer.from(expected), Buffer.from(parts.v1))\n}\n\nasync function settle(gen: { id: string; status: string; cost_usd: number | null }) {\n  console.log(gen.id, gen.status, gen.cost_usd) \u002F\u002F mark the job in your database, copy the file, notify the user\n}\n\nexport async function POST(request: Request) {\n  const raw = await request.text() \u002F\u002F the exact text that was signed\n  if (!verified(raw, request.headers.get('Frameport-Signature'))) return new Response('Bad signature', { status: 400 })\n  const event = JSON.parse(raw)\n  after(() => settle(event.data)) \u002F\u002F runs once the response is sent\n  return new Response(null, { status: 204 })\n}","app\u002Fapi\u002Fhooks\u002Fgenerations\u002Froute.ts",{"type":49,"html":87},"\u003Cp>Answer within 10 seconds: a delivery without a \u003Ccode>2xx\u003C\u002Fcode> is retried after 1, 5 and 15 minutes with the same delivery id, so make \u003Ccode>settle\u003C\u002Fcode> safe to run twice. An endpoint covers every generation of the workspace, Studio runs included, so ignore ids your database does not know. The endpoint must be a public \u003Ccode>https\u003C\u002Fcode> URL; in development, expose your local server through a tunnel. A delivery goes out when the job closes, which a read or a background check that runs every minute triggers, so keep a slow poll for jobs that stay quiet too long (\u003Ca href=\"\u002Fblog\u002Fpolling-vs-webhooks-ai-jobs\">polling vs webhooks\u003C\u002Fa>).\u003C\u002Fp>\n\u003Cp>A Frameport Motion 1 clip of 5 seconds at 768p costs $0.30, with sound on or off at the same price. For the parts of a larger product, such as per-user budgets, storage and pricing, see \u003Ca href=\"\u002Fblog\u002Fhow-to-build-an-ai-video-app\">how to build an AI video app\u003C\u002Fa>; the \u003Ca href=\"\u002Fdocs\u002Fwebhooks\">webhooks reference\u003C\u002Fa> has every header, and the \u003Ca href=\"\u002Fblog\u002Fimage-generation-api-javascript\">image generation API JavaScript guide\u003C\u002Fa> covers the same calls outside a framework.\u003C\u002Fp>",{"type":45,"id":45,"title":46,"items":89},[90,94,98,102,106],{"q":91,"html":92,"text":93},"How do I add AI image generation to a Next.js app?","\u003Cp>Put the API call in a route handler or a server action, read the key from a server-only environment variable, and let your page call that route. The route returns a generation id; the page polls a second route for the status and shows the images through a third that streams the files.\u003C\u002Fp>","Put the API call in a route handler or a server action, read the key from a server-only environment variable, and let your page call that route. The route returns a generation id; the page polls a second route for the status and shows the images through a third that streams the files.",{"q":95,"html":96,"text":97},"Can I call the image API from a React component?","\u003Cp>Not with your key. A client component ships to the browser, and so does any \u003Ccode>NEXT_PUBLIC_\u003C\u002Fcode> variable. Keep the key in server code and let the component call your own route.\u003C\u002Fp>","Not with your key. A client component ships to the browser, and so does any NEXT_PUBLIC_ variable. Keep the key in server code and let the component call your own route.",{"q":99,"html":100,"text":101},"Is there a free image generation API for Next.js?","\u003Cp>The account, the API key and price quotes are free, and an image that fails costs nothing. Images are paid from a prepaid balance with no subscription, from $0.025 each on Frameport Image 1.\u003C\u002Fp>","The account, the API key and price quotes are free, and an image that fails costs nothing. Images are paid from a prepaid balance with no subscription, from $0.025 each on Frameport Image 1.",{"q":103,"html":104,"text":105},"Do I need next\u002Fimage for generated images?","\u003Cp>No. A plain \u003Ccode>img\u003C\u002Fcode> pointing at your file route works, since the route already serves the right type and cache headers. If you use \u003Ccode>next\u002Fimage\u003C\u002Fcode>, point it at your own route or storage rather than the signed links, which expire.\u003C\u002Fp>","No. A plain img pointing at your file route works, since the route already serves the right type and cache headers. If you use next\u002Fimage, point it at your own route or storage rather than the signed links, which expire.",{"q":107,"html":108,"text":109},"Can I use Grok Imagine or Nano Banana Pro from Next.js?","\u003Cp>Yes, with the same route: change \u003Ccode>model\u003C\u002Fcode> to \u003Ccode>grok-imagine-2-0\u003C\u002Fcode> or \u003Ccode>nano-banana-pro\u003C\u002Fcode> and adjust \u003Ccode>max_cost_usd\u003C\u002Fcode>. One key and one balance cover every model in the catalog.\u003C\u002Fp>","Yes, with the same route: change model to grok-imagine-2-0 or nano-banana-pro and adjust max_cost_usd. One key and one balance cover every model in the catalog.",[111,112,113,114,115],{"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},[117,128,135],{"slug":118,"path":119,"title":120,"description":121,"category":122,"categoryLabel":123,"date":11,"updated":11,"readingMinutes":124,"models":125,"featured":17},"modelslab-alternative","\u002Fblog\u002Fmodelslab-alternative","ModelsLab API Alternatives: Image and Video on One Key","Comparing ModelsLab API alternatives? Our own image and video engines on one key, a content filter your workspace sets, and no charge when a job fails.","alternatives","Alternatives",6,[15,126,16,127,14],"fp-image-2","fp-replace-1",{"slug":129,"path":130,"title":131,"description":132,"category":122,"categoryLabel":123,"date":11,"updated":11,"readingMinutes":124,"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.",[15,16,127,134,14],"seedance-2-5",{"slug":136,"path":137,"title":138,"description":139,"category":9,"categoryLabel":10,"date":11,"updated":11,"readingMinutes":12,"models":140,"featured":17},"turn-off-ai-content-filter","\u002Fblog\u002Fturn-off-ai-content-filter","AI Image Generator Without Content Filter: Turn It Off","The content filter is on by default and a refusal costs nothing. An owner or admin turns it off in Settings: what changes, what stays refused, the code.",[15,16],"\u002Fstudio",[143,161,170,179,204,221,241,257,272,287,302,316,327,341,354,367,380,391,399,408,418,426,436,444,462],{"id":126,"type":144,"name":145,"description":146,"maker":147,"family":147,"own":148,"image":149,"private":160},"image","Frameport Image 2","Photoreal renders, up to 4 reference images.","Frameport",true,{"pricing":150,"options":152},{"per_image":151,"per_extra_reference_image":-1},0.025,{"aspect_ratios":153,"max_images":159},[154,155,156,157,158],"1:1","3:4","4:3","9:16","16:9",4,{},{"id":162,"type":144,"name":163,"description":164,"maker":147,"family":147,"own":148,"image":165,"private":169},"fp-image-3","Frameport Image 3","Clean photoreal renders for characters.",{"pricing":166,"options":167},{"per_image":151,"per_extra_reference_image":-1},{"aspect_ratios":168,"max_images":159},[154,155,156,157,158],{},{"id":15,"type":144,"name":171,"description":172,"maker":147,"family":147,"own":148,"image":173,"private":178},"Frameport Image 1","Generation and reference-driven renders, up to 10 reference images.",{"pricing":174,"options":176},{"per_image":151,"per_extra_reference_image":175},0.0025,{"aspect_ratios":177,"max_images":159},[154,155,156,157,158],{},{"id":16,"type":180,"name":181,"description":182,"maker":147,"family":183,"own":148,"video":184,"private":202},"video","Frameport Motion 1","Our video engine, with native sound.","Frameport Motion",{"pricing":185,"options":192},{"default_resolution":186,"per_second":187,"per_second_with_audio":-1,"aspect_ratio_multiplier":-1,"per_reference_image":-1,"per_frame_image":-1},"768p",{"480p":188,"768p":189,"1080p":190,"2K":191},0.02,0.06,0.08,0.095,{"resolutions":193,"durations":197,"aspect_ratios":200,"audio_toggle":148,"start_frame":148,"end_frame":148,"max_reference_images":159,"identity_resolutions":201,"seed":17,"negative_prompt":17},[194,186,195,196],"480p","1080p","2K",{"min":12,"max":198,"step":199},15,1,[158,157,154,156,155],[186,195],{"resolutions":203},[194,186],{"id":134,"type":180,"name":205,"description":206,"maker":207,"family":208,"own":17,"video":209},"Seedance 2.5","The long-take flagship — up to 30 seconds with sound","ByteDance","Seedance",{"pricing":210,"options":215},{"default_resolution":211,"per_second":212,"per_second_with_audio":-1,"aspect_ratio_multiplier":-1,"per_reference_image":-1,"per_frame_image":-1},"720p",{"480p":213,"720p":214},0.12,0.27,{"resolutions":216,"durations":217,"aspect_ratios":219,"audio_toggle":148,"start_frame":148,"end_frame":148,"max_reference_images":159,"identity_resolutions":-1,"seed":148,"negative_prompt":17},[194,211],{"min":159,"max":218,"step":199},30,[158,156,154,155,157,220],"21:9",{"id":222,"type":180,"name":223,"description":224,"maker":225,"family":226,"own":17,"video":227},"veo-3-1","Veo 3.1","Google’s flagship — up to 4K with native audio","Google","Veo",{"pricing":228,"options":234},{"default_resolution":195,"per_second":229,"per_second_with_audio":232,"aspect_ratio_multiplier":-1,"per_reference_image":-1,"per_frame_image":-1},{"720p":230,"1080p":230,"4K":231},0.235,0.465,{"720p":231,"1080p":231,"4K":233},0.695,{"resolutions":235,"durations":237,"aspect_ratios":239,"audio_toggle":148,"start_frame":148,"end_frame":148,"max_reference_images":240,"identity_resolutions":-1,"seed":148,"negative_prompt":148},[211,195,236],"4K",{"min":159,"max":238,"step":31},8,[158,157],3,{"id":242,"type":180,"name":243,"description":244,"maker":207,"family":208,"own":17,"video":245},"seedance-2-0","Seedance 2.0","Character consistency, up to 4K",{"pricing":246,"options":253},{"default_resolution":211,"per_second":247,"per_second_with_audio":-1,"aspect_ratio_multiplier":251,"per_reference_image":-1,"per_frame_image":-1},{"480p":190,"720p":248,"1080p":249,"4K":250},0.175,0.435,0.9,{"21:9":252},1.32,{"resolutions":254,"durations":255,"aspect_ratios":256,"audio_toggle":148,"start_frame":148,"end_frame":148,"max_reference_images":159,"identity_resolutions":-1,"seed":148,"negative_prompt":17},[194,211,195,236],{"min":159,"max":198,"step":199},[158,156,154,155,157,220],{"id":258,"type":180,"name":259,"description":260,"maker":261,"family":262,"own":17,"video":263},"hailuo-3","Hailuo 3","2K cinematic physics, subject references","MiniMax","Hailuo",{"pricing":264,"options":268},{"default_resolution":196,"per_second":265,"per_second_with_audio":-1,"aspect_ratio_multiplier":-1,"per_reference_image":267,"per_frame_image":-1},{"2K":266},0.15,0.047,{"resolutions":269,"durations":270,"aspect_ratios":271,"audio_toggle":148,"start_frame":148,"end_frame":148,"max_reference_images":240,"identity_resolutions":-1,"seed":17,"negative_prompt":17},[196],{"min":12,"max":198,"step":199},[220,158,156,154,155,157],{"id":273,"type":180,"name":274,"description":275,"maker":276,"family":276,"own":17,"video":277},"runway-gen-4-5","Runway Gen-4.5","Cinematic motion, strong prompt adherence","Runway",{"pricing":278,"options":281},{"default_resolution":211,"per_second":279,"per_second_with_audio":-1,"aspect_ratio_multiplier":-1,"per_reference_image":-1,"per_frame_image":-1},{"720p":280},0.14,{"resolutions":282,"durations":283,"aspect_ratios":285,"audio_toggle":17,"start_frame":148,"end_frame":17,"max_reference_images":286,"identity_resolutions":-1,"seed":148,"negative_prompt":17},[211],{"min":31,"max":284,"step":199},10,[158,157],0,{"id":288,"type":180,"name":289,"description":290,"maker":225,"family":226,"own":17,"video":291},"veo-3-1-fast","Veo 3.1 Fast","Veo quality, faster and a quarter of the price",{"pricing":292,"options":298},{"default_resolution":211,"per_second":293,"per_second_with_audio":296,"aspect_ratio_multiplier":-1,"per_reference_image":-1,"per_frame_image":-1},{"720p":294,"1080p":213,"4K":295},0.093,0.29,{"720p":213,"1080p":280,"4K":297},0.35,{"resolutions":299,"durations":300,"aspect_ratios":301,"audio_toggle":148,"start_frame":148,"end_frame":148,"max_reference_images":240,"identity_resolutions":-1,"seed":148,"negative_prompt":148},[211,195,236],{"min":159,"max":238,"step":31},[158,157],{"id":303,"type":180,"name":304,"description":305,"maker":207,"family":208,"own":17,"video":306},"seedance-2-0-fast","Seedance 2.0 Fast","Seedance references and sound, faster",{"pricing":307,"options":312},{"default_resolution":211,"per_second":308,"per_second_with_audio":-1,"aspect_ratio_multiplier":311,"per_reference_image":-1,"per_frame_image":-1},{"480p":309,"720p":310},0.063,0.145,{"21:9":252},{"resolutions":313,"durations":314,"aspect_ratios":315,"audio_toggle":148,"start_frame":148,"end_frame":148,"max_reference_images":159,"identity_resolutions":-1,"seed":148,"negative_prompt":17},[194,211],{"min":159,"max":198,"step":199},[158,156,154,155,157,220],{"id":317,"type":180,"name":318,"description":319,"maker":261,"family":262,"own":17,"video":320},"hailuo-3-max","Hailuo 3 Max","Fast Hailuo motion, 768p",{"pricing":321,"options":323},{"default_resolution":186,"per_second":322,"per_second_with_audio":-1,"aspect_ratio_multiplier":-1,"per_reference_image":-1,"per_frame_image":-1},{"480p":189,"768p":294},{"resolutions":324,"durations":325,"aspect_ratios":326,"audio_toggle":17,"start_frame":148,"end_frame":148,"max_reference_images":286,"identity_resolutions":-1,"seed":17,"negative_prompt":17},[194,186],{"min":12,"max":198,"step":199},[220,158,156,154,155,157],{"id":328,"type":180,"name":329,"description":330,"maker":331,"family":329,"own":17,"video":332},"grok-imagine","Grok Imagine","Quick clips from a prompt or a start image","xAI",{"pricing":333,"options":337},{"default_resolution":211,"per_second":334,"per_second_with_audio":-1,"aspect_ratio_multiplier":-1,"per_reference_image":-1,"per_frame_image":336},{"480p":294,"720p":335,"1080p":295},0.165,0.014,{"resolutions":338,"durations":339,"aspect_ratios":340,"audio_toggle":17,"start_frame":148,"end_frame":17,"max_reference_images":286,"identity_resolutions":-1,"seed":17,"negative_prompt":17},[194,211,195],{"min":199,"max":198,"step":199},[158,157,154,156,155],{"id":342,"type":180,"name":343,"description":-1,"maker":207,"family":208,"own":17,"video":344},"seedance-2-0-mini","Seedance 2.0 Mini",{"pricing":345,"options":350},{"default_resolution":194,"per_second":346,"per_second_with_audio":-1,"aspect_ratio_multiplier":349,"per_reference_image":-1,"per_frame_image":-1},{"480p":347,"720p":348},0.041,0.088,{"21:9":252},{"resolutions":351,"durations":352,"aspect_ratios":353,"audio_toggle":148,"start_frame":148,"end_frame":148,"max_reference_images":159,"identity_resolutions":-1,"seed":148,"negative_prompt":17},[194,211],{"min":159,"max":198,"step":199},[158,156,154,155,157,220],{"id":355,"type":180,"name":356,"description":357,"maker":225,"family":226,"own":17,"video":358},"veo-3-1-lite","Veo 3.1 Lite","Veo with sound, on every account",{"pricing":359,"options":363},{"default_resolution":211,"per_second":360,"per_second_with_audio":362,"aspect_ratio_multiplier":-1,"per_reference_image":-1,"per_frame_image":-1},{"720p":361,"1080p":189},0.036,{"720p":189,"1080p":294},{"resolutions":364,"durations":365,"aspect_ratios":366,"audio_toggle":148,"start_frame":148,"end_frame":148,"max_reference_images":286,"identity_resolutions":-1,"seed":148,"negative_prompt":148},[211,195],{"min":159,"max":238,"step":31},[158,157],{"id":368,"type":180,"name":369,"description":370,"maker":371,"family":372,"own":17,"video":373},"wan-3","Wan 3.0","Up to 30 seconds, references and sound","Alibaba","Wan",{"pricing":374,"options":376},{"default_resolution":211,"per_second":375,"per_second_with_audio":-1,"aspect_ratio_multiplier":-1,"per_reference_image":-1,"per_frame_image":-1},{"480p":189,"720p":213,"1080p":230},{"resolutions":377,"durations":378,"aspect_ratios":379,"audio_toggle":148,"start_frame":148,"end_frame":17,"max_reference_images":240,"identity_resolutions":-1,"seed":148,"negative_prompt":17},[194,211,195],{"min":31,"max":218,"step":199},[158,156,154,155,157],{"id":381,"type":144,"name":382,"description":383,"maker":384,"family":385,"own":17,"image":386},"gpt-image-2-5-sunburst","GPT Image 2.5 Sunburst","OpenAI's flagship — precise text, composition and control","OpenAI","GPT Image",{"pricing":387,"options":389},{"per_image":388,"per_extra_reference_image":-1},0.085,{"aspect_ratios":390,"max_images":159},[154,155,156,157,158],{"id":392,"type":144,"name":393,"description":394,"maker":384,"family":385,"own":17,"image":395},"gpt-image-2-5-flare","GPT Image 2.5 Flare","OpenAI's image model tuned for expressive, dramatic frames",{"pricing":396,"options":397},{"per_image":388,"per_extra_reference_image":-1},{"aspect_ratios":398,"max_images":159},[154,155,156,157,158],{"id":400,"type":144,"name":401,"description":402,"maker":225,"family":403,"own":17,"image":404},"nano-banana-2-1","Nano Banana 2.1","Google's fast multimodal image model","Nano Banana",{"pricing":405,"options":406},{"per_image":388,"per_extra_reference_image":-1},{"aspect_ratios":407,"max_images":159},[154,155,156,157,158],{"id":409,"type":144,"name":410,"description":411,"maker":207,"family":412,"own":17,"image":413},"seedream-5-0-pro","Seedream 5.0 Pro","ByteDance's flagship — rich detail and texture","Seedream",{"pricing":414,"options":416},{"per_image":415,"per_extra_reference_image":-1},0.099,{"aspect_ratios":417,"max_images":159},[154,155,156,157,158],{"id":14,"type":144,"name":419,"description":420,"maker":225,"family":403,"own":17,"image":421},"Nano Banana Pro","Google's highest-fidelity image model",{"pricing":422,"options":424},{"per_image":423,"per_extra_reference_image":-1},0.16,{"aspect_ratios":425,"max_images":159},[154,155,156,157,158],{"id":427,"type":144,"name":428,"description":429,"maker":430,"family":431,"own":17,"image":432},"flux-3-image","Flux 3 Image","Black Forest Labs' FLUX.3 — photoreal and typography","Black Forest Labs","Flux",{"pricing":433,"options":434},{"per_image":348,"per_extra_reference_image":-1},{"aspect_ratios":435,"max_images":159},[154,155,156,157,158],{"id":437,"type":144,"name":438,"description":439,"maker":331,"family":329,"own":17,"image":440},"grok-imagine-2-0","Grok Imagine 2.0","xAI's fast, characterful image model",{"pricing":441,"options":442},{"per_image":348,"per_extra_reference_image":-1},{"aspect_ratios":443,"max_images":159},[154,155,156,157,158],{"id":127,"type":180,"name":445,"description":446,"maker":147,"family":447,"own":148,"edit":448,"video":456},"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":449,"formats":450,"min_seconds":31,"max_seconds":284,"min_billed_seconds":31,"max_bytes":453,"max_frames":454,"fps":455,"max_faces":159},"replace",[451,452],"mp4","mov",64000000,600,24,{"pricing":457,"options":460},{"default_resolution":186,"per_second":458,"per_second_with_audio":-1,"aspect_ratio_multiplier":-1,"per_reference_image":-1,"per_frame_image":-1},{"768p":213,"1080p":459},0.25,{"resolutions":461,"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},[186,195],{"id":463,"type":180,"name":464,"description":465,"maker":147,"family":466,"own":148,"edit":467,"video":472},"fp-upscale-1","Frameport Upscale 1","Your clip at 1080p or 2K: the same motion, frame rate and sound, sharper detail.","Frameport Upscale",{"tool":468,"formats":469,"min_seconds":199,"max_seconds":218,"min_billed_seconds":12,"max_bytes":470,"max_frames":471,"fps":-1,"max_faces":-1},"upscale",[451,452],100000000,900,{"pricing":473,"options":477},{"default_resolution":195,"per_second":474,"per_second_with_audio":-1,"aspect_ratio_multiplier":-1,"per_reference_image":-1,"per_frame_image":-1},{"1080p":475,"2K":476},0.03,0.05,{"resolutions":478,"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},[195,196],1795901825995,"b270fb84-a112-44f2-9801-f99d6c2e889e"]