Async endpoint. The request returns immediately with the job’s id; the actual generation runs in the background and is charged on success only.
minimax-image-01 is the only image model in the free tier, so it is the one an account that has never added credits can call. Every other image model needs a first top-up: until then it answers 402 with error.code: "model_requires_paid".
Request body
string
required
One of: minimax-image-01, gpt-image-2, gpt-image-2.5-flare, nano-banana-3-flash, recraft-v4, recraft-v4-pro, recraft-v4-vector, flux-2-pro, flux-kontext-pro, ideogram-v3. See Image Generation.
string
required
Text prompt describing the desired image. Maximum 4000 characters.
number
default:"1"
Number of images to generate. Range 1–4; a value outside it is clamped, not refused. Each image is billed at the model’s per-image rate. Ignored by flux-2-pro (per-megapixel billing — n=1 always).
string
"WIDTHxHEIGHT" (e.g. "1024x1024") or "auto". Only the WIDTHxHEIGHT form is read, and it picks the nearest of the canonical aspect ratios 1:1, 16:9, 9:16, 4:3, 3:4, 21:9; the resolution is the model’s own for that aspect. An aspect string such as "16:9" is not parsed. "auto", an aspect string, or a ratio far from all six falls back to the model default, which is landscape 16:9 on recraft-v4, recraft-v4-pro, recraft-v4-vector and flux-2-pro (21:9 also becomes 16:9 there). On flux-2-pro the hold is sized from the WIDTHxHEIGHT you send, and the final charge from the megapixels of the image delivered, so the hold can be larger than the charge; the difference is refunded.
string
low, medium or high on gpt-image-2 and gpt-image-2.5-flare, which price each image by quality. auto, or omitting it, is billed as medium. On gpt-image-2.5-flare each reference image (image_url / image_urls) adds $0.012 once per request, and sizes above 1536 px on a side return 400 invalid_parameter.
string
HTTPS URL of a single source image. Required for flux-kontext-pro (image-edit model). Optionally accepted by flux-2-pro for image-to-image generation. Ignored by other text-to-image models. A flux-kontext-pro request without image_url (or image_urls) returns 400 image_url_required.
string[]
Array of HTTPS source image URLs for multi-reference blending. Up to 16 on gpt-image-2 and gpt-image-2.5-flare and up to 10 on every other model. On flux-2-pro the first 6 entries are processed at high fidelity, entries 7–10 act as supplementary composition guides. Models that take image input: flux-2-pro, flux-kontext-pro, gpt-image-2, gpt-image-2.5-flare, nano-banana-3-flash. When both image_url and image_urls are present, image_urls takes precedence. A longer array returns 400 too_many_references.
string
Client-supplied key to make the request safe to retry. Also accepted as an Idempotency-Key header. Keys longer than 128 characters are cut to 128. The key is scoped to your account, not to one API key: repeated POSTs from the same account with the same key return the same job — no duplicate charge, no duplicate generation.
object
Pass-through model-specific parameters (e.g. seed, style). Forwarded to the underlying provider, except the fields your price is based on or that are moderated (prompt, image count, size, duration, reference images): those always come from the top-level parameters, and provider quality tiers that are not priced separately run at the priced tier.
Response
202 Accepted for new jobs, 200 OK if the same idempotency_key is replayed.When all of your concurrent image slots are busy, the job waits in a queue instead, and the response is 200 OK with a short body. Poll it like any other job; the hold is placed when it leaves the queue.
One of: queued, pending, processing, succeeded, failed, refunded, expired.
number
Hold amount placed at submit time (USD). Refunded if the job fails.
number | null
Final billed amount once the job succeeds. null until then.
number | null
The part of the hold returned to your balance once it is released (USD). null until then.
Poll for the result
GET /v1/jobs/{id}
Same response shape. Poll every 1–2 seconds until status is succeeded, failed, refunded, or expired. Most images complete within 30 seconds; the runner times out at 5 minutes.
The output.url is a Kyma-hosted URL. The image is copied there so the link keeps working after the model’s own temporary link expires. Job responses also carry kind, capability, prompt, aspect_ratio, duration_s and is_shared.
List your jobs
GET /v1/jobs?kind=image&limit=20
Your jobs, newest first, in the same shape as above. kind is image, video or audio (optional); limit is 1–100 (default 20). The response is {"object": "list", "data": [...], "next_cursor", "has_more"}: pass next_cursor back as cursor for the next page.
Errors
Most errors have the shape {"error": {"message", "code"}}. Some also carry type.
Status
error.type
error.code
When
400
invalid_request
—
Invalid JSON body
400
—
invalid_model
The model is served, but not by the image pipeline
400
—
invalid_prompt
Missing prompt or > 4000 chars
400
—
image_url_required
flux-kontext-pro called without image_url or image_urls
400
—
too_many_references
image_urls has more entries than the model accepts
401
auth_error
—
Missing or invalid API key
402
billing_error
model_requires_paid
Your account has never added credits and the model is not in the free tier. The message lists the free-tier media models
402
billing_error
insufficient_credits
Your balance does not cover the job
402
billing_error
insufficient_credits
The hold could not be placed after the job was created
Kyma does not serve that model. A retired model’s message names its replacement (Model imagen-4 was retired. Use nano-banana-3-flash.) and error.did_you_mean lists it (error.didYouMean is kept for older clients)
413
invalid_request
—
Request body > 25 MB
429
—
queue_full
Every concurrent slot for your tier is busy and your queue is full. Retry-After: 30. Tier caps are on GET /v1/limits/tiers
500
—
db_error / billing_error
Internal failure — nothing is charged
The 402 bodies also carry balance, required, topup_url and a details object at the top level, plus topup on model_requires_paid and insufficient_credits.When status becomes failed or refunded, no charge is made and the held funds are returned to your balance via a hold_release ledger entry.
Examples
Free-tier image
Works on the signup credit.
curl -X POST https://kymaapi.com/v1/images/generations \ -H "Authorization: Bearer $KYMA_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "minimax-image-01", "prompt": "a lighthouse on a rocky coast at dawn, soft mist", "size": "1024x1024" }'
The examples below use models that need a first top-up.
Cinematic hero shot
curl -X POST https://kymaapi.com/v1/images/generations \ -H "Authorization: Bearer $KYMA_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "flux-2-pro", "prompt": "an architectural photo of a modernist house at dusk, long exposure", "size": "1920x1080" }'
Image edit with kontext
curl -X POST https://kymaapi.com/v1/images/generations \ -H "Authorization: Bearer $KYMA_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "flux-kontext-pro", "prompt": "replace the sky with a stormy sunset", "image_url": "https://example.com/source.jpg" }'
Multi-reference blend with FLUX.2 Pro
curl -X POST https://kymaapi.com/v1/images/generations \ -H "Authorization: Bearer $KYMA_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "flux-2-pro", "prompt": "blend these references into one cohesive editorial scene", "image_urls": [ "https://example.com/style-ref-a.jpg", "https://example.com/style-ref-b.jpg", "https://example.com/composition-c.jpg" ], "size": "1920x1080" }'
Native vector (SVG) output
curl -X POST https://kymaapi.com/v1/images/generations \ -H "Authorization: Bearer $KYMA_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "recraft-v4-vector", "prompt": "minimalist Greek psi symbol shaped like a wave, gold on navy" }'
The resulting output.url returns an SVG file (Content-Type: image/svg+xml) with editable paths and layers — open directly in Figma or Illustrator.
Idempotent retry
curl -X POST https://kymaapi.com/v1/images/generations \ -H "Authorization: Bearer $KYMA_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "ideogram-v3", "prompt": "minimalist coffee bag label that reads KYMA ROAST", "idempotency_key": "order-78421-asset-1" }'
Replaying this exact request returns the same job — no new charge.
{"docsConfig":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"Kyma API","colors":{"primary":"#D4A843","light":"#F2D675","dark":"#C8952E"},"favicon":"https://mintcdn.com/kyma/Ir71WrmY8XrY4SLl/favicon.png?fit=max\u0026auto=format\u0026n=Ir71WrmY8XrY4SLl\u0026q=85\u0026s=9027f99aa13fcc832643ead1f6fb1d86","logo":{"light":"https://mintcdn.com/kyma/Ir71WrmY8XrY4SLl/logo/light.svg?fit=max\u0026auto=format\u0026n=Ir71WrmY8XrY4SLl\u0026q=85\u0026s=dcfc23077ffc3b8109d9c3d5d8c4cfc3","dark":"https://mintcdn.com/kyma/Ir71WrmY8XrY4SLl/logo/dark.svg?fit=max\u0026auto=format\u0026n=Ir71WrmY8XrY4SLl\u0026q=85\u0026s=c21c20f5709c51359720a141096fbfc9"},"api":{"mdx":{"server":"https://kymaapi.com","auth":{"method":"bearer","name":null}}},"background":{"decoration":null,"color":{"light":null,"dark":"#08081a"}},"navbar":{"links":[{"label":"Dashboard","href":"https://kymaapi.com/dashboard"}],"primary":{"type":"button","label":"Get API Key","href":"https://kymaapi.com"}},"footer":{"socials":{"x":"https://x.com/Kyma_API"}},"integrations":{"posthog":{"apiKey":"phc_yCxqxwS8Quvpuxtgrwddye9ucgRPoQBGyAUBYz4UjStV","apiHost":"https://us.i.posthog.com","sessionRecording":false}},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"kyma","hasAudioNarration":false,"actualSubdomain":"kyma","customDomains":["docs.kymaapi.com"],"gitSource":{"type":"github","owner":"kyma-api","repo":"kyma-api","deployBranch":"main","contentDirectory":"docs-site","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6b09f521d31c90b31eec06bb","clientVersion":"0.0.4347","searchFilterCounts":[{"language":"default","tag":"Models","count":74},{"language":"default","tag":"Guides","count":64},{"language":"default","tag":"API Reference","count":25},{"language":"default","tag":"Endpoints","count":25},{"language":"default","tag":"Integrations","count":19},{"language":"default","tag":"Text \u0026 code","count":16},{"language":"default","tag":"Use Cases","count":9},{"language":"default","tag":"Image","count":7},{"language":"default","tag":"Documentation","count":5},{"language":"default","tag":"Audio","count":5}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/images-generations","slug":"/api-reference/images-generations","pageMetadata":{"title":"Image Generations","api":"POST /v1/images/generations","description":"Generate or edit images. Asynchronous — returns 202 with a job id; poll GET /v1/jobs/{id} for the result.","href":"/api-reference/images-generations"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_components.p, {\n children: [\"Generate or edit images. Asynchronous — returns 202 with a job id; poll GET /v1/jobs/\", \" for the result.\"]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,ParamField,ResponseField,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Async endpoint. The request returns immediately with the job’s `,_jsx(_components.code,{children:`id`}),`; the actual generation runs in the background and is charged on success only.`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`minimax-image-01`}),` is the only image model in the `,_jsx(_components.a,{href:`/pricing#free-tier`,children:`free tier`}),`, so it is the one an account that has never added credits can call. Every other image model needs a first top-up: until then it answers `,_jsx(_components.code,{children:`402`}),` with `,_jsx(_components.code,{children:`error.code: \"model_requires_paid\"`}),`.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`request-body`,children:`Request body`}),`\n`,_jsx(ParamField,{body:`model`,type:`string`,required:true,id:`param-model`,children:_jsxs(_components.p,{children:[`One of: `,_jsx(_components.code,{children:`minimax-image-01`}),`, `,_jsx(_components.code,{children:`gpt-image-2`}),`, `,_jsx(_components.code,{children:`gpt-image-2.5-flare`}),`, `,_jsx(_components.code,{children:`nano-banana-3-flash`}),`, `,_jsx(_components.code,{children:`recraft-v4`}),`, `,_jsx(_components.code,{children:`recraft-v4-pro`}),`, `,_jsx(_components.code,{children:`recraft-v4-vector`}),`, `,_jsx(_components.code,{children:`flux-2-pro`}),`, `,_jsx(_components.code,{children:`flux-kontext-pro`}),`, `,_jsx(_components.code,{children:`ideogram-v3`}),`. See `,_jsx(_components.a,{href:`/models/image-generation`,children:`Image Generation`}),`.`]})}),`\n`,_jsx(ParamField,{body:`prompt`,type:`string`,required:true,id:`param-prompt`,children:_jsx(_components.p,{children:`Text prompt describing the desired image. Maximum 4000 characters.`})}),`\n`,_jsx(ParamField,{body:`n`,type:`number`,default:`1`,id:`param-n`,children:_jsxs(_components.p,{children:[`Number of images to generate. Range 1–4; a value outside it is clamped, not refused. Each image is billed at the model’s per-image rate. Ignored by `,_jsx(_components.code,{children:`flux-2-pro`}),` (per-megapixel billing — `,_jsx(_components.code,{children:`n=1`}),` always).`]})}),`\n`,_jsx(ParamField,{body:`size`,type:`string`,id:`param-size`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`\"WIDTHxHEIGHT\"`}),` (e.g. `,_jsx(_components.code,{children:`\"1024x1024\"`}),`) or `,_jsx(_components.code,{children:`\"auto\"`}),`. Only the `,_jsx(_components.code,{children:`WIDTHxHEIGHT`}),` form is read, and it picks the nearest of the canonical aspect ratios `,_jsx(_components.code,{children:`1:1`}),`, `,_jsx(_components.code,{children:`16:9`}),`, `,_jsx(_components.code,{children:`9:16`}),`, `,_jsx(_components.code,{children:`4:3`}),`, `,_jsx(_components.code,{children:`3:4`}),`, `,_jsx(_components.code,{children:`21:9`}),`; the resolution is the model’s own for that aspect. An aspect string such as `,_jsx(_components.code,{children:`\"16:9\"`}),` is `,_jsx(_components.strong,{children:`not`}),` parsed. `,_jsx(_components.code,{children:`\"auto\"`}),`, an aspect string, or a ratio far from all six falls back to the model default, which is landscape 16:9 on `,_jsx(_components.code,{children:`recraft-v4`}),`, `,_jsx(_components.code,{children:`recraft-v4-pro`}),`, `,_jsx(_components.code,{children:`recraft-v4-vector`}),` and `,_jsx(_components.code,{children:`flux-2-pro`}),` (21:9 also becomes 16:9 there). On `,_jsx(_components.code,{children:`flux-2-pro`}),` the hold is sized from the `,_jsx(_components.code,{children:`WIDTHxHEIGHT`}),` you send, and the final charge from the megapixels of the image delivered, so the hold can be larger than the charge; the difference is refunded.`]})}),`\n`,_jsx(ParamField,{body:`quality`,type:`string`,id:`param-quality`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`low`}),`, `,_jsx(_components.code,{children:`medium`}),` or `,_jsx(_components.code,{children:`high`}),` on `,_jsx(_components.code,{children:`gpt-image-2`}),` and `,_jsx(_components.code,{children:`gpt-image-2.5-flare`}),`, which price each image by quality. `,_jsx(_components.code,{children:`auto`}),`, or omitting it, is billed as `,_jsx(_components.code,{children:`medium`}),`. On `,_jsx(_components.code,{children:`gpt-image-2.5-flare`}),` each reference image (`,_jsx(_components.code,{children:`image_url`}),` / `,_jsx(_components.code,{children:`image_urls`}),`) adds $0.012 once per request, and sizes above 1536 px on a side return `,_jsx(_components.code,{children:`400 invalid_parameter`}),`.`]})}),`\n`,_jsx(ParamField,{body:`image_url`,type:`string`,id:`param-image-url`,children:_jsxs(_components.p,{children:[`HTTPS URL of a single source image. `,_jsxs(_components.strong,{children:[`Required for `,_jsx(_components.code,{children:`flux-kontext-pro`})]}),` (image-edit model). Optionally accepted by `,_jsx(_components.code,{children:`flux-2-pro`}),` for image-to-image generation. Ignored by other text-to-image models. A `,_jsx(_components.code,{children:`flux-kontext-pro`}),` request without `,_jsx(_components.code,{children:`image_url`}),` (or `,_jsx(_components.code,{children:`image_urls`}),`) returns `,_jsx(_components.code,{children:`400 image_url_required`}),`.`]})}),`\n`,_jsx(ParamField,{body:`image_urls`,type:`string[]`,id:`param-image-urls`,children:_jsxs(_components.p,{children:[`Array of HTTPS source image URLs for `,_jsx(_components.strong,{children:`multi-reference blending`}),`. Up to 16 on `,_jsx(_components.code,{children:`gpt-image-2`}),` and `,_jsx(_components.code,{children:`gpt-image-2.5-flare`}),` and up to 10 on every other model. On `,_jsx(_components.code,{children:`flux-2-pro`}),` the first 6 entries are processed at high fidelity, entries 7–10 act as supplementary composition guides. Models that take image input: `,_jsx(_components.code,{children:`flux-2-pro`}),`, `,_jsx(_components.code,{children:`flux-kontext-pro`}),`, `,_jsx(_components.code,{children:`gpt-image-2`}),`, `,_jsx(_components.code,{children:`gpt-image-2.5-flare`}),`, `,_jsx(_components.code,{children:`nano-banana-3-flash`}),`. When both `,_jsx(_components.code,{children:`image_url`}),` and `,_jsx(_components.code,{children:`image_urls`}),` are present, `,_jsx(_components.code,{children:`image_urls`}),` takes precedence. A longer array returns `,_jsx(_components.code,{children:`400 too_many_references`}),`.`]})}),`\n`,_jsx(ParamField,{body:`idempotency_key`,type:`string`,id:`param-idempotency-key`,children:_jsxs(_components.p,{children:[`Client-supplied key to make the request safe to retry. Also accepted as an `,_jsx(_components.code,{children:`Idempotency-Key`}),` header. Keys longer than 128 characters are cut to 128. The key is scoped to your account, not to one API key: repeated POSTs from the same account with the same key return the same job — no duplicate charge, no duplicate generation.`]})}),`\n`,_jsx(ParamField,{body:`extra`,type:`object`,id:`param-extra`,children:_jsxs(_components.p,{children:[`Pass-through model-specific parameters (e.g. `,_jsx(_components.code,{children:`seed`}),`, `,_jsx(_components.code,{children:`style`}),`). Forwarded to the underlying provider, except the fields your price is based on or that are moderated (`,_jsx(_components.code,{children:`prompt`}),`, image count, size, duration, reference images): those always come from the top-level parameters, and provider quality tiers that are not priced separately run at the priced tier.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`202 Accepted`}),` for new jobs, `,_jsx(_components.code,{children:`200 OK`}),` if the same `,_jsx(_components.code,{children:`idempotency_key`}),` is replayed.`]}),`\n`,_jsxs(_components.p,{children:[`When all of your concurrent image slots are busy, the job waits in a queue instead, and the response is `,_jsx(_components.code,{children:`200 OK`}),` with a short body. Poll it like any other job; the hold is placed when it leaves the queue.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{ `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"f3a9c8b2e1d0a4b6c7d8e9f0\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"queued\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"queue_position\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"minimax-image-01\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"created\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1777111200`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`]})})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`12`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`12`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"f3a9c8b2e1d0a4b6c7d8e9f0\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"object\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"image.job\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"pending\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"recraft-v4\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"created_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-04-25T10:00:00.000Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"completed_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"output\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"estimated_cost\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.054`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"charged_amount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(ResponseField,{name:`id`,type:`string`,id:`param-id`,children:[`Job ID. Use it to poll `,_jsx(_components.code,{children:`GET /v1/jobs/{id}`}),`.`]}),`\n`,_jsxs(ResponseField,{name:`status`,type:`string`,id:`param-status`,children:[`One of: `,_jsx(_components.code,{children:`queued`}),`, `,_jsx(_components.code,{children:`pending`}),`, `,_jsx(_components.code,{children:`processing`}),`, `,_jsx(_components.code,{children:`succeeded`}),`, `,_jsx(_components.code,{children:`failed`}),`, `,_jsx(_components.code,{children:`refunded`}),`, `,_jsx(_components.code,{children:`expired`}),`.`]}),`\n`,_jsx(ResponseField,{name:`estimated_cost`,type:`number`,id:`param-estimated-cost`,children:`Hold amount placed at submit time (USD). Refunded if the job fails.`}),`\n`,_jsxs(ResponseField,{name:`charged_amount`,type:`number | null`,id:`param-charged-amount`,children:[`Final billed amount once the job succeeds. `,_jsx(_components.code,{children:`null`}),` until then.`]}),`\n`,_jsxs(ResponseField,{name:`refunded_amount`,type:`number | null`,id:`param-refunded-amount`,children:[`The part of the hold returned to your balance once it is released (USD). `,_jsx(_components.code,{children:`null`}),` until then.`]}),`\n`,_jsx(Heading,{level:`2`,id:`poll-for-the-result`,children:`Poll for the result`}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`GET /v1/jobs/{id}`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.p,{children:[`Same response shape. Poll every 1–2 seconds until `,_jsx(_components.code,{children:`status`}),` is `,_jsx(_components.code,{children:`succeeded`}),`, `,_jsx(_components.code,{children:`failed`}),`, `,_jsx(_components.code,{children:`refunded`}),`, or `,_jsx(_components.code,{children:`expired`}),`. Most images complete within 30 seconds; the runner times out at 5 minutes.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`15`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`15`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"f3a9c8b2e1d0a4b6c7d8e9f0\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"object\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"image.job\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"succeeded\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"recraft-v4\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"created_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-04-25T10:00:00.000Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"completed_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-04-25T10:00:14.220Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"output\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://…/image.jpg\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"metadata\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"images\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [{ `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"width\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1920`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"height\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1080`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"content_type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"image/jpeg\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }] }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"estimated_cost\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.054`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"charged_amount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.054`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`output.url`}),` is a Kyma-hosted URL. The image is copied there so the link keeps working after the model’s own temporary link expires. Job responses also carry `,_jsx(_components.code,{children:`kind`}),`, `,_jsx(_components.code,{children:`capability`}),`, `,_jsx(_components.code,{children:`prompt`}),`, `,_jsx(_components.code,{children:`aspect_ratio`}),`, `,_jsx(_components.code,{children:`duration_s`}),` and `,_jsx(_components.code,{children:`is_shared`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`list-your-jobs`,children:`List your jobs`}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`GET /v1/jobs?kind=image\u0026limit=20`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.p,{children:[`Your jobs, newest first, in the same shape as above. `,_jsx(_components.code,{children:`kind`}),` is `,_jsx(_components.code,{children:`image`}),`, `,_jsx(_components.code,{children:`video`}),` or `,_jsx(_components.code,{children:`audio`}),` (optional); `,_jsx(_components.code,{children:`limit`}),` is 1–100 (default 20). The response is `,_jsx(_components.code,{children:`{\"object\": \"list\", \"data\": [...], \"next_cursor\", \"has_more\"}`}),`: pass `,_jsx(_components.code,{children:`next_cursor`}),` back as `,_jsx(_components.code,{children:`cursor`}),` for the next page.`]}),`\n`,_jsx(Heading,{level:`2`,id:`errors`,children:`Errors`}),`\n`,_jsxs(_components.p,{children:[`Most errors have the shape `,_jsx(_components.code,{children:`{\"error\": {\"message\", \"code\"}}`}),`. Some also carry `,_jsx(_components.code,{children:`type`}),`.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Status`}),_jsx(_components.th,{children:_jsx(_components.code,{children:`error.type`})}),_jsx(_components.th,{children:_jsx(_components.code,{children:`error.code`})}),_jsx(_components.th,{children:`When`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`invalid_request`})}),_jsx(_components.td,{children:`—`}),_jsx(_components.td,{children:`Invalid JSON body`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsx(_components.td,{children:`—`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`invalid_model`})}),_jsx(_components.td,{children:`The model is served, but not by the image pipeline`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsx(_components.td,{children:`—`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`invalid_prompt`})}),_jsx(_components.td,{children:`Missing prompt or > 4000 chars`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsx(_components.td,{children:`—`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`image_url_required`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`flux-kontext-pro`}),` called without `,_jsx(_components.code,{children:`image_url`}),` or `,_jsx(_components.code,{children:`image_urls`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsx(_components.td,{children:`—`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`too_many_references`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`image_urls`}),` has more entries than the model accepts`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`401`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`auth_error`})}),_jsx(_components.td,{children:`—`}),_jsx(_components.td,{children:`Missing or invalid API key`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`402`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`billing_error`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`model_requires_paid`})}),_jsx(_components.td,{children:`Your account has never added credits and the model is not in the free tier. The message lists the free-tier media models`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`402`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`billing_error`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`insufficient_credits`})}),_jsx(_components.td,{children:`Your balance does not cover the job`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`402`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`billing_error`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`insufficient_credits`})}),_jsx(_components.td,{children:`The hold could not be placed after the job was created`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`404`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`not_found_error`})}),_jsx(_components.td,{children:_jsx(_components.a,{href:`/api-reference/errors#model_not_found`,children:_jsx(_components.code,{children:`model_not_found`})})}),_jsxs(_components.td,{children:[`Kyma does not serve that model. A retired model’s message names its replacement (`,_jsx(_components.code,{children:`Model imagen-4 was retired. Use nano-banana-3-flash.`}),`) and `,_jsx(_components.code,{children:`error.did_you_mean`}),` lists it (`,_jsx(_components.code,{children:`error.didYouMean`}),` is kept for older clients)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`413`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`invalid_request`})}),_jsx(_components.td,{children:`—`}),_jsx(_components.td,{children:`Request body > 25 MB`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`429`})}),_jsx(_components.td,{children:`—`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`queue_full`})}),_jsxs(_components.td,{children:[`Every concurrent slot for your tier is busy and your queue is full. `,_jsx(_components.code,{children:`Retry-After: 30`}),`. Tier caps are on `,_jsx(_components.a,{href:`/api-reference/limits-tiers`,children:_jsx(_components.code,{children:`GET /v1/limits/tiers`})})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`500`})}),_jsx(_components.td,{children:`—`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`db_error`}),` / `,_jsx(_components.code,{children:`billing_error`})]}),_jsx(_components.td,{children:`Internal failure — nothing is charged`})]})]})]}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`402`}),` bodies also carry `,_jsx(_components.code,{children:`balance`}),`, `,_jsx(_components.code,{children:`required`}),`, `,_jsx(_components.code,{children:`topup_url`}),` and a `,_jsx(_components.code,{children:`details`}),` object at the top level, plus `,_jsx(_components.code,{children:`topup`}),` on `,_jsx(_components.code,{children:`model_requires_paid`}),` and `,_jsx(_components.code,{children:`insufficient_credits`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`When `,_jsx(_components.code,{children:`status`}),` becomes `,_jsx(_components.code,{children:`failed`}),` or `,_jsx(_components.code,{children:`refunded`}),`, no charge is made and the held funds are returned to your balance via a `,_jsx(_components.code,{children:`hold_release`}),` ledger entry.`]}),`\n`,_jsx(Heading,{level:`2`,id:`examples`,children:`Examples`}),`\n`,_jsx(Heading,{level:`3`,id:`free-tier-image`,children:`Free-tier image`}),`\n`,_jsx(_components.p,{children:`Works on the signup credit.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`8`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://kymaapi.com/v1/images/generations`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$KYMA_API_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"model\": \"minimax-image-01\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"prompt\": \"a lighthouse on a rocky coast at dawn, soft mist\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"size\": \"1024x1024\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`The examples below use models that need a first top-up.`}),`\n`,_jsx(Heading,{level:`3`,id:`cinematic-hero-shot`,children:`Cinematic hero shot`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`8`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://kymaapi.com/v1/images/generations`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$KYMA_API_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"model\": \"flux-2-pro\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"prompt\": \"an architectural photo of a modernist house at dusk, long exposure\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"size\": \"1920x1080\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`image-edit-with-kontext`,children:`Image edit with kontext`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`8`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://kymaapi.com/v1/images/generations`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$KYMA_API_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"model\": \"flux-kontext-pro\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"prompt\": \"replace the sky with a stormy sunset\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"image_url\": \"https://example.com/source.jpg\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`multi-reference-blend-with-flux-2-pro`,children:`Multi-reference blend with FLUX.2 Pro`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`13`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`13`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://kymaapi.com/v1/images/generations`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$KYMA_API_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"model\": \"flux-2-pro\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"prompt\": \"blend these references into one cohesive editorial scene\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"image_urls\": [`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://example.com/style-ref-a.jpg\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://example.com/style-ref-b.jpg\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://example.com/composition-c.jpg\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"size\": \"1920x1080\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`native-vector-svg-output`,children:`Native vector (SVG) output`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`7`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://kymaapi.com/v1/images/generations`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$KYMA_API_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"model\": \"recraft-v4-vector\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"prompt\": \"minimalist Greek psi symbol shaped like a wave, gold on navy\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`The resulting `,_jsx(_components.code,{children:`output.url`}),` returns an SVG file (`,_jsx(_components.code,{children:`Content-Type: image/svg+xml`}),`) with editable paths and layers — open directly in Figma or Illustrator.`]}),`\n`,_jsx(Heading,{level:`3`,id:`idempotent-retry`,children:`Idempotent retry`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`8`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://kymaapi.com/v1/images/generations`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$KYMA_API_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"model\": \"ideogram-v3\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"prompt\": \"minimalist coffee bag label that reads KYMA ROAST\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"idempotency_key\": \"order-78421-asset-1\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Replaying this exact request returns the same job — no new charge.`})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Image Generations","api":"POST /v1/images/generations","description":"Generate or edit images. Asynchronous — returns 202 with a job id; poll GET /v1/jobs/{id} for the result.","href":"/api-reference/images-generations"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Request body","slug":"request-body","depth":2,"children":[]},{"title":"Response","slug":"response","depth":2,"children":[]},{"title":"Poll for the result","slug":"poll-for-the-result","depth":2,"children":[]},{"title":"List your jobs","slug":"list-your-jobs","depth":2,"children":[]},{"title":"Errors","slug":"errors","depth":2,"children":[]},{"title":"Examples","slug":"examples","depth":2,"children":[{"title":"Free-tier image","slug":"free-tier-image","depth":3,"children":[]},{"title":"Cinematic hero shot","slug":"cinematic-hero-shot","depth":3,"children":[]},{"title":"Image edit with kontext","slug":"image-edit-with-kontext","depth":3,"children":[]},{"title":"Multi-reference blend with FLUX.2 Pro","slug":"multi-reference-blend-with-flux-2-pro","depth":3,"children":[]},{"title":"Native vector (SVG) output","slug":"native-vector-svg-output","depth":3,"children":[]},{"title":"Idempotent retry","slug":"idempotent-retry","depth":3,"children":[]}]}],"codeExamples":{},"endpoint":{"title":"Image Generations","path":"/v1/images/generations","servers":[{"url":"https://kymaapi.com"}],"method":"post","request":{"security":[{"title":"Bearer Auth","parameters":{"header":{"Authorization":{"type":"http","scheme":"bearer","description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token."}},"query":{},"cookie":{}}}],"parameters":{"query":{},"header":{},"cookie":{},"path":{}},"body":{"application/json":{"schemaArray":[{"type":"object","properties":{"model":[{"type":"string","description":"One of: `minimax-image-01` , `gpt-image-2` , `gpt-image-2.5-flare` , `nano-banana-3-flash` , `recraft-v4` , `recraft-v4-pro` , `recraft-v4-vector` , `flux-2-pro` , `flux-kontext-pro` , `ideogram-v3` . See Image Generation .","required":true}],"prompt":[{"type":"string","description":"Text prompt describing the desired image. Maximum 4000 characters.","required":true}],"n":[{"type":"number","description":"Number of images to generate. Range 1–4; a value outside it is clamped, not refused. Each image is billed at the model’s per-image rate. Ignored by `flux-2-pro` (per-megapixel billing — `n=1` always)."}],"size":[{"type":"string","description":"`\"WIDTHxHEIGHT\"` (e.g. `\"1024x1024\"` ) or `\"auto\"` . Only the `WIDTHxHEIGHT` form is read, and it picks the nearest of the canonical aspect ratios `1:1` , `16:9` , `9:16` , `4:3` , `3:4` , `21:9` ; the resolution is the model’s own for that aspect. An aspect string such as `\"16:9\"` is not parsed. `\"auto\"` , an aspect string, or a ratio far from all six falls back to the model default, which is landscape 16:9 on `recraft-v4` , `recraft-v4-pro` , `recraft-v4-vector` and `flux-2-pro` (21:9 also becomes 16:9 there). On `flux-2-pro` the hold is sized from the `WIDTHxHEIGHT` you send, and the final charge from the megapixels of the image delivered, so the hold can be larger than the charge; the difference is refunded."}],"quality":[{"type":"string","description":"`low` , `medium` or `high` on `gpt-image-2` and `gpt-image-2.5-flare` , which price each image by quality. `auto` , or omitting it, is billed as `medium` . On `gpt-image-2.5-flare` each reference image ( `image_url` / `image_urls` ) adds $0.012 once per request, and sizes above 1536 px on a side return `400 invalid_parameter` ."}],"image_url":[{"type":"string","description":"HTTPS URL of a single source image. Required for `flux-kontext-pro` (image-edit model). Optionally accepted by `flux-2-pro` for image-to-image generation. Ignored by other text-to-image models. A `flux-kontext-pro` request without `image_url` (or `image_urls` ) returns `400 image_url_required` ."}],"image_urls":[{"type":"array","items":[{"type":"string"}],"description":"Array of HTTPS source image URLs for multi-reference blending . Up to 16 on `gpt-image-2` and `gpt-image-2.5-flare` and up to 10 on every other model. On `flux-2-pro` the first 6 entries are processed at high fidelity, entries 7–10 act as supplementary composition guides. Models that take image input: `flux-2-pro` , `flux-kontext-pro` , `gpt-image-2` , `gpt-image-2.5-flare` , `nano-banana-3-flash` . When both `image_url` and `image_urls` are present, `image_urls` takes precedence. A longer array returns `400 too_many_references` ."}],"idempotency_key":[{"type":"string","description":"Client-supplied key to make the request safe to retry. Also accepted as an `Idempotency-Key` header. Keys longer than 128 characters are cut to 128. The key is scoped to your account, not to one API key: repeated POSTs from the same account with the same key return the same job — no duplicate charge, no duplicate generation."}],"extra":[{"type":"object","properties":{},"description":"Pass-through model-specific parameters (e.g. `seed` , `style` ). Forwarded to the underlying provider, except the fields your price is based on or that are moderated ( `prompt` , image count, size, duration, reference images): those always come from the top-level parameters, and provider quality tiers that are not priced separately run at the priced tier."}]}}],"examples":{"example":{"value":{"model":"\u003cstring>","prompt":"\u003cstring>","n":123,"size":"\u003cstring>","quality":"\u003cstring>","image_url":"\u003cstring>","image_urls":["\u003cstring>"],"idempotency_key":"\u003cstring>","extra":{}}}}}}},"response":{"200":{"application/json":{"schemaArray":[{"type":"object","properties":{"id":[{"type":"string","description":"Job ID. Use it to poll `GET /v1/jobs/{id}` ."}],"status":[{"type":"string","description":"One of: `queued` , `pending` , `processing` , `succeeded` , `failed` , `refunded` , `expired` ."}],"estimated_cost":[{"type":"number","description":"Hold amount placed at submit time (USD). Refunded if the job fails."}],"charged_amount":[{"type":"object","properties":{},"description":"Final billed amount once the job succeeds. `null` until then."}],"refunded_amount":[{"type":"object","properties":{},"description":"The part of the hold returned to your balance once it is released (USD). `null` until then."}]}}],"examples":{"example":{"value":{"id":"\u003cstring>","status":"\u003cstring>","estimated_cost":123,"charged_amount":{},"refunded_amount":{}}}}}}},"deprecated":false}},"jsLinks":[],"subdomain":"kyma","siteName":"Kyma API","title":"Image Generations - Kyma API","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-09T02:50:16.544Z","originalFileLocation":"api-reference/images-generations.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Generate or edit images. Asynchronous — returns 202 with a job id; poll GET /v1/jobs/{id} for the result.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Kyma API\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/kyma/VCp6_M63dEPrRkxq/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/kyma/VCp6_M63dEPrRkxq/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/kyma/VCp6_M63dEPrRkxq/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/kyma/VCp6_M63dEPrRkxq/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/kyma/VCp6_M63dEPrRkxq/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/kyma/VCp6_M63dEPrRkxq/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/kyma/VCp6_M63dEPrRkxq/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/kyma/VCp6_M63dEPrRkxq/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/kyma/VCp6_M63dEPrRkxq/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Image Generations - Kyma API\">\u003cmeta data-mint-head property=\"og:description\" content=\"Generate or edit images. Asynchronous — returns 202 with a job id; poll GET /v1/jobs/{id} for the result.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Kyma API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.kymaapi.com/api-reference/images-generations\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://kyma.mintlify.site/_mintlify/api/og/v2?division=Endpoints\u0026amp;title=Image+Generations\u0026amp;description=Generate+or+edit+images.+Asynchronous+%E2%80%94+returns+202+with+a+job+id%3B+poll+GET+%2Fv1%2Fjobs%2F%7Bid%7D+for+the+result.\u0026amp;theme=9d9285143cba3d744d7c7101\u0026amp;signature=72199d711ff6d2baf7dc31c22d8ecce71884f30fde00c40360633f664e498b73\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Image Generations - Kyma API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Generate or edit images. Asynchronous — returns 202 with a job id; poll GET /v1/jobs/{id} for the result.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://kyma.mintlify.site/_mintlify/api/og/v2?division=Endpoints\u0026amp;title=Image+Generations\u0026amp;description=Generate+or+edit+images.+Asynchronous+%E2%80%94+returns+202+with+a+job+id%3B+poll+GET+%2Fv1%2Fjobs%2F%7Bid%7D+for+the+result.\u0026amp;theme=9d9285143cba3d744d7c7101\u0026amp;signature=72199d711ff6d2baf7dc31c22d8ecce71884f30fde00c40360633f664e498b73\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/kyma/VCp6_M63dEPrRkxq/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Kyma API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#D4A843\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.kymaapi.com/api-reference/images-generations\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/images-generations.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.kymaapi.com/#organization\",\"name\":\"Kyma API\",\"url\":\"https://docs.kymaapi.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/kyma/Ir71WrmY8XrY4SLl/logo/light.svg?fit=max\u0026auto=format\u0026n=Ir71WrmY8XrY4SLl\u0026q=85\u0026s=dcfc23077ffc3b8109d9c3d5d8c4cfc3\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.kymaapi.com#website\",\"name\":\"Kyma API\",\"url\":\"https://docs.kymaapi.com\",\"publisher\":{\"@id\":\"https://docs.kymaapi.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.kymaapi.com/api-reference/images-generations#webpage\",\"url\":\"https://docs.kymaapi.com/api-reference/images-generations\",\"name\":\"Image Generations\",\"description\":\"Generate or edit images. Asynchronous — returns 202 with a job id; poll GET /v1/jobs/{id} for the result.\",\"dateModified\":\"2026-10-09T02:50:16.544Z\",\"isPartOf\":{\"@id\":\"https://docs.kymaapi.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.kymaapi.com/api-reference/images-generations#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.kymaapi.com/api-reference/images-generations#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Endpoints\",\"item\":\"https://docs.kymaapi.com/api-reference/errors\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Image Generations\",\"item\":\"https://docs.kymaapi.com/api-reference/images-generations\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.kymaapi.com/api-reference/images-generations#apireference\",\"headline\":\"Image Generations\",\"name\":\"Image Generations\",\"description\":\"Generate or edit images. Asynchronous — returns 202 with a job id; poll GET /v1/jobs/{id} for the result.\",\"url\":\"https://docs.kymaapi.com/api-reference/images-generations\",\"mainEntityOfPage\":{\"@id\":\"https://docs.kymaapi.com/api-reference/images-generations#webpage\"},\"dateModified\":\"2026-10-09T02:50:16.544Z\",\"publisher\":{\"@id\":\"https://docs.kymaapi.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.kymaapi.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Kyma API\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Kyma API\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/images-generations.md","siteName":"Kyma API","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/introduction"}]},{"tab":"Guides","pages":[{"title":"Guides","href":"/guides/any-openai-client"}]},{"tab":"API Reference","groups":[{"group":"Endpoints","pages":[{"title":"Errors","href":"/api-reference/errors"},{"title":"Chat Completions","api":"POST /v1/chat/completions","href":"/api-reference/chat-completions"},{"title":"Messages (Anthropic format)","api":"POST /v1/messages","href":"/api-reference/messages"},{"title":"Create embeddings","api":"POST /v1/embeddings","href":"/api-reference/embeddings"},{"title":"Rerank documents","api":"POST /v1/rerank","href":"/api-reference/rerank"},{"title":"Make a decision","api":"POST /v1/decisions","href":"/api-reference/decisions"},{"title":"Create a completion (legacy)","description":"OpenAI's deprecated text-completion shape, served for compatibility.","api":"POST /v1/completions","href":"/api-reference/completions"},{"title":"Image Generations","api":"POST /v1/images/generations","href":"/api-reference/images-generations"},{"title":"Video Generations","api":"POST /v1/videos/generations","description":"Generate video clips with kling-3-pro or kling-avatar-v2-pro. Async, billed per second of footage.","href":"/api-reference/videos-generations"},{"title":"Audio Transcriptions","api":"POST /v1/audio/transcriptions","href":"/api-reference/audio-transcriptions"},{"title":"Audio Speech (TTS)","api":"POST /v1/audio/speech","href":"/api-reference/audio-speech"},{"title":"Audio Music","api":"POST /v1/audio/music","href":"/api-reference/audio-music"},{"title":"Audio Voices","api":"GET /v1/audio/voices","href":"/api-reference/audio-voices"},{"title":"List Models","api":"GET /v1/models","href":"/api-reference/models-list"},{"title":"Recommend a model","api":"GET /v1/models/recommend","href":"/api-reference/models-recommend"},{"title":"Pricing Catalog","api":"GET /v1/pricing","href":"/api-reference/pricing-catalog"},{"title":"Tier Matrix","api":"GET /v1/limits/tiers","href":"/api-reference/limits-tiers"},{"title":"Credit balance","api":"GET /v1/credits/balance","href":"/api-reference/credits-balance"},{"title":"Register","api":"POST /v1/auth/register","href":"/api-reference/auth-register"},{"title":"Login","api":"POST /v1/auth/login","href":"/api-reference/auth-login"},{"title":"Get User Info","api":"GET /v1/auth/me","href":"/api-reference/auth-me"},{"title":"Manage API Keys","href":"/api-reference/auth-keys"},{"title":"Usage by model","api":"GET /v1/auth/usage/models","href":"/api-reference/auth-usage-models"},{"title":"Usage by day","api":"GET /v1/auth/usage/daily","href":"/api-reference/auth-usage-daily"},{"title":"GET /v1/auth/limits","href":"/api-reference/auth-limits"}]}]},{"tab":"Models","pages":[{"title":"Models","href":"/models/overview"}]}]},"basePath":"","title":"Image Generations - Kyma API","deploymentId":"dpl_6UE2cqB47X6P7P3F2hD3UphW6ijc","buildId":"dpl_6UE2cqB47X6P7P3F2hD3UphW6ijc","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-BMn8tSe3.js","snippetPresets-Dl5ZrD9W.js","utils-CddEzDcs.js","style-to-object-BY3JEAdk.js","utils-Dym31Pnf.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-ZiqR8hPK.js","conditional-requirements-CFM0id0Q.js","cloneDeep-D3fPbylz.js","_Uint8Array-BcNtDki0.js","isObject-FP1Yky1u.js","ApiExamples-4Sf3CFhl.js","usePlaygroundInputsStore-Ck91l6q0.js","shallow-DapBSR9G.js","isEqual-Clu_sGzx.js","CodeSnippets-DAVHdSX2.js","CodeSnippet-Be6AcO_D.js","use-playground-group-access-CteWws2O.js","Page-_aL_PM_2.js","api-description-markdown-BPoPkVJQ.js","DynamicMarkdown-QJ7LkRm3.js","SectionHeading-DyxPTJti.js","MethodPill-CGjK-dNY.js","getPastedJson-C4YIGTOJ.js","Check2Icon-B7COpIZE.js","axios-CsQoIw0U.js"]}