Introduction
Krea 2 Medium API turns a written art brief into a single PNG or JPEG. Its five framing options and lossless default suit illustration studies, presentation drafts and images that will be retouched. For Krea 2 Medium, compose within 1:1, 4:3, 3:4, 16:9 or 9:16, starting from square unless the destination requires another shape.
| Field | Value |
|---|---|
| Input | Text |
| Output | Image |
| Endpoint | Text to Image |
| Required input | Prompt (up to 5,000 characters) |
| Aspect ratios | 1:1, 4:3, 3:4, 16:9, 9:16 |
| Reproducibility | Krea 2 Medium · No seed field — identical requests return different frames |
| Reference image input | Not exposed on this endpoint |
| Content policy | Krea 2 Medium · No platform filter, no maturity flag; the model draws its own line |
Key features & highlights
Krea 2 Medium — Shape the visual direction
Krea 2 Medium API turns a written art brief into a single PNG or JPEG. Its five framing options and lossless default suit illustration studies, presentation drafts and images that will be retouched.
PNG by default, because these frames get edited later
output_format defaults to png rather than jpeg, which is the right default for a tier whose output usually goes into a comp, a crop or a retouch rather than straight to a viewer. Switch to jpeg when the frame is going to a review thread and transfer size matters more than edges.
Krea 2 Medium — Content limits
In SpicyAPI checks of Krea 2 Medium, stronger NSFW briefs could return softened images. This endpoint is not labelled unrestricted; the absence of an extra platform filter does not establish what the model will render.
Request parameters
| Parameter | Required | Description |
|---|---|---|
prompt | Yes | Up to 5,000 characters. Lead with the subject, then the composition, the light and the material; leave the rest unsaid rather than padding it with adjectives. at least 1 characters · at most 5000 characters |
aspect_ratio | No | For Krea 2 Medium, compose within 1:1, 4:3, 3:4, 16:9 or 9:16, starting from square unless the destination requires another shape. |
output_format | No | png by default, or jpeg. png is lossless and the safer handoff into further editing or compositing; jpeg is a smaller file and enough for review and web placement. |
Pricing
$0.03 / image
Use cases
Editorial and portrait batches
Available-light portraiture, interiors and styling frames produced fifty at a time through a single endpoint. The png default is what makes that practical: the keepers go straight into a retouch instead of through a re-export, and nothing is thrown away by a lossy pass before anyone has chosen.
Social and feed assets
For Krea 2 Medium, compose within 1:1, 4:3, 3:4, 16:9 or 9:16, starting from square unless the destination requires another shape.
Internal preview and pitch drafts
Save the chosen Krea 2 Medium file before retouching and preserve its request alongside the working version for later review.
Reference plates for later editing
Because it has no image-to-image endpoint of its own, Medium is often the plate generator: make the frame here as png, then take it to a tier or model that accepts a reference image.
Prompt guide & pro tips
Generate at the shape you will publish
For Krea 2 Medium, compose within 1:1, 4:3, 3:4, 16:9 or 9:16, starting from square unless the destination requires another shape.
Write the light, not the adjectives
For a Krea 2 Medium illustration study, describe the light and medium together, such as a window-lit room rendered in watercolour; review whether both instructions survive in the image.
Keep the prompt with the keeper
Save the chosen Krea 2 Medium file before retouching and preserve its request alongside the working version for later review.
Working with Krea 2 Medium
Krea 2 Medium API turns a written art brief into a single PNG or JPEG. Its five framing options and lossless default suit illustration studies, presentation drafts and images that will be retouched.
Inputs and framing
For Krea 2 Medium, compose within 1:1, 4:3, 3:4, 16:9 or 9:16, starting from square unless the destination requires another shape. Because Krea 2 Medium has no seed, an approved PNG or JPEG should be stored as the actual deliverable, not represented only by its prompt.
Style direction
For a Krea 2 Medium illustration study, describe the light and medium together, such as a window-lit room rendered in watercolour; review whether both instructions survive in the image.
Results and billing
A Krea 2 Medium request produces one PNG or JPEG; the default PNG can continue into retouching without an extra lossy export. Save the chosen Krea 2 Medium file before retouching and preserve its request alongside the working version for later review.
Content limits
In SpicyAPI checks of Krea 2 Medium, stronger NSFW briefs could return softened images. This endpoint is not labelled unrestricted; the absence of an extra platform filter does not establish what the model will render.
API quick start
# Generate the idempotency key once; reuse it when retrying after a lost response.
export SPICY_IDEMPOTENCY_KEY="${SPICY_IDEMPOTENCY_KEY:-$(uuidgen)}"
curl -X POST https://api.spicyapi.ai/api/v1/jobs/createTask \
-H "Authorization: Bearer $SPICY_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $SPICY_IDEMPOTENCY_KEY" \
-d '{
"model": "krea/2-medium/text-to-image",
"input": {
"prompt": "A ceramic teapot on a linen cloth, soft window light, muted palette",
"aspect_ratio": "1:1",
"output_format": "png"
}
}'
# Copy data.taskId from the response into TASK_ID, then poll the status.
TASK_ID="TASK_ID_FROM_RESPONSE"
curl "https://api.spicyapi.ai/api/v1/jobs/recordInfo?taskId=$TASK_ID" \
-H "Authorization: Bearer $SPICY_API_KEY"
See the API reference for authentication, the complete schema, polling, and error handling.












