Krea

Best for expressive illustrations.

post/generate/image/krea/krea-2/medium

Request

  • Base URL
    https://api.krea.ai
  • Auth
    HTTP bearer

Headers

X-Webhook-URL, string uri

URL to receive a POST request when the job completes. The webhook will receive the job data including results. Deliveries are signed with Ed25519 (EdDSA); verify them with the keys at https://api.krea.ai/.well-known/jwks.json (see X-Krea-Webhook-* headers). Treat requests without these headers as unauthenticated.

X-Api-Zero-Data-Retention, '1'

Enable Zero Data Retention for this request. Refer to the documentation.

Request body

object required
prompt, string required
seed, number nullable
styles, object[]

Styles (typically LoRAs) to use for the generation

image_style_references, object[]

Image style references. (0 = no style influence, 1 = maximum). Default 0.5.

aspect_ratio, '1:1' | '4:3' | '3:2' | '16:9' | '2.35:1' | '4:5' | '3:4' | '2:3' | '9:16' required

Aspect ratio. One of: 1:1, 4:3, 3:2, 16:9, 2.35:1, 4:5, 3:4, 2:3, 9:16.

resolution, '1K' required

Resolution scale. One of: 1K.

creativity, 'raw' | 'low' | 'medium' | 'high'

Prompt expansion mode. raw disables prompt expansion; low, medium, and high control expansion strength. This does not affect the K2 Intensity, Complexity, or Movement slider LoRAs.

intensity, integer

K2 Intensity slider value from -100 to 100. Use 0 for neutral/no slider LoRA.

complexity, integer

K2 Complexity slider value from -100 to 100. Use 0 for neutral/no slider LoRA.

movement, integer

K2 Movement slider value from -100 to 100. Use 0 for neutral/no slider LoRA.

moodboards, object[]

Moodboards to use for generation. Currently limited to one moodboard.

image_url, string uri nullable

Can be an external URL, base64 data URI, or uploaded asset URL.

strength, number

Denoising strength when image_url is provided. 0 keeps the input image, 1 fully replaces it (the input image is ignored). Has no effect without image_url. Default 0.99.

Response

The resulting job data. This will be returned in a pending state until the job is completed. See /jobs/{id} for retrieving the results.

object required
job_id, string uuid required
status, 'backlogged' | 'queued' | 'scheduled' | 'processing' | 'sampling' | 'intermediate-complete' | 'finalizing' | 'completed' | 'failed' | 'cancelled' required
created_at, string date-time required
completed_at, unknown required
result, unknown required
error, object
progress, number nullable
export_progress, object

Motion exports only, while running: frames rendered of the total, then finishing while the sound is added, then saving while the MP4 is filed.

Changes