The Krea 3 API is available to every workspace. The
ultra thinking mode requires a Max plan or above.Endpoint
The endpoint uses the standard job lifecycle: it returns a
job_id, and you poll GET /jobs/{job_id} (or use a webhook) until the job completes. The output image is in result.urls[0].
Quickstart: your first image edit
All requests require a Bearer token. See API Keys & Billing if you don’t have one yet.1
Upload a reference
POST /assets with your input image. The response returns image_url. You can also pass an external image URL or a base64 data URI directly in image_urls.2
Create an edit
POST /generate/image/krea/krea-3 with your prompt and reference. Save the job_id from the response.3
Get the result
Poll
GET /jobs/{job_id} until status is completed. The output is in result.urls[0].Parameters
Set either
resolution or both width and height. The API returns:
Provide resolution or width and height.width and height must be set together.aspect_ratio cannot be used with width/height.resolution cannot be used with width/height.
With
width and height, the output is rounded to the nearest supported aspect ratio and a 1K or 2K canvas. Exact pixel dimensions are not guaranteed.Reusing a seed does not guarantee identical results, because the prompt expansion step can vary between runs.Thinking modes
Before it generates, Krea 3 interprets your prompt.thinking_mode sets how much planning it does.
If you omit
thinking_mode, the API uses fast.
Ultra
ultra is available to workspaces on a Max plan or above. Other workspaces get a 402 with K3_ULTRA_ACCESS_REQUIRED.
- Include at least one image in
image_urls. A text-only request withultraruns asfastand is billed asfast. - The output is always 2K. Set
resolutionto2K;1Kand4Kare not supported. - Use
aspect_ratioto set the shape.widthandheightare not supported. negative_prompt,loras, andstyle_urlsare not supported.- Zero Data Retention is not supported.
- Each request produces one image. A run can take several minutes. Use a webhook or poll with a long timeout.
Bounding boxes
When provided, this can specify bounding boxes on any image inimage_urls with an optional note prompt. Either prompt or at least one note must be specified. All coordinates are indicated from 0 to 1, as a fraction of either the width or height. Up to 24 regions are supported.
Fields
Regional edits
Withregional_edit: true, Krea 3 regenerates only the parts of the image that need to change. Everything else stays exactly as it was, so you can edit the same image again and again without quality loss.
Use it for local edits where the rest of the image must stay pixel-exact: recolor or swap an object, add or remove an element, fix a detail, or change the text on a sign. It is the safe way to chain edits on the latest output.
Leave it out for global edits that should re-render the whole image: restyling, relighting, changing the season or time of day, reframing, or combining several images into a new scene. Regular edits re-render the whole image, so artifacts can build up when you keep editing the latest output.
Regional edits need at least one image in image_urls.
Prompting
Krea 3 is an instruction-following editor. Write the edit in plain language:- Lead with the change. Add only the details that help to execute it.
- Close with one preservation sentence when the rest of the image should stay the same. Do not list everything that should stay the same.
- When the prompt uses more than one image, refer to each image by what it shows. For example: “Put the sneaker from the second image on the person in the first image.”
Image references
- Krea 3 uses each reference at its uploaded resolution. A reference larger than 4 MP is resized to 4 MP.
- Around 1 MP is enough for most edits. Do not upscale a reference before you send it.
- When fine details matter (small text, logos, fabric, faces in a wide shot), send the highest-resolution version of the image you have.
- With five or more references in one request, each reference is resized to at most 1536 px on its longest side. For full-detail references, send four or fewer.
Zero Data Retention
Krea 3 supports Zero Data Retention for enterprise workspaces. Send theX-Api-Zero-Data-Retention: 1 header. With Zero Data Retention:
- Every image in
image_urlsmust be a base64 data URI. thinking_modecan befastorhigh.ultrareturns a422.resolutioncan be1Kor2K.4Kreturns a422.- A request can use up to 8 image references.
- Bounding boxes are supported.
Errors
Validation errors list each problem in
details:
422 with:
Pricing
The price per image depends on the output resolution, the thinking mode, and the image references.
A
4K image is billed as a 2K image plus $0.04.
With ultra, the first four reference images are billed at $0.07 each and any others at $0.02 each, whatever their size.
Compare prices across every model on the API pricing page ↗, or see what you can build on the Krea API page ↗.
Related
Job lifecycle
Job statuses, polling, and results.
Webhooks
Get notified when a job completes instead of polling.