Image

Generate images at 2K or 4K, or edit source images with prompts and up to five image references. Set preserve_source_size to keep the first source image dimensions; aspect_ratio and resolution are then ignored.

post/generate/image/ideogram/ideogram-4.6

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.

Request body

object required
prompt, string required
seed, integer
quality, 'very_low' | 'low' | 'medium' | 'high'
preserve_source_size, boolean
skip_prompt_expansion, boolean
aspect_ratio, '1:1' | '4:3' | '3:2' | '16:9' | '2.4:1' | '4:5' | '2:3' | '9:16'

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

resolution, '2K' | '4K'

Resolution scale. One of: 2K, 4K.

image_urls, string[]

Up to five source or reference images for prompt-based editing. Omit for text-to-image generation.

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