Skip to main content
POST
krea-2-turbo Interface

Authorizations

Authorization
string
header
required

##All APIs require Bearer Token authentication##

Get API Key:

Visit API Key Management Page to get your API Key

Add to request header:

Body

application/json
model
enum<string>
default:krea-2-turbo
required

Image generation model name

Available options:
krea-2-turbo
Example:

"krea-2-turbo"

prompt
string
required

Prompt describing the image to be generated. English works best, with a maximum length of 640 tokens

Example:

"A cinematic product poster, silver headphones floating against a deep matte-black backdrop with soft rim lighting"

size
enum<string>
default:1:1

Aspect ratio of the generated image; defaults to 1:1 when omitted. The actual output pixels are determined jointly by size and quality.

Supported ratios (11 total): 1:1, 4:3, 3:4, 5:4, 4:5, 2:3, 3:2, 9:16, 16:9, 1:2, 2:1

Output pixel reference (size × quality):

Available options:
1:1,
4:3,
3:4,
5:4,
4:5,
2:3,
3:2,
9:16,
16:9,
1:2,
2:1
Example:

"16:9"

quality
enum<string>
default:1K

Output resolution tier 1K / 2K; defaults to 1K when omitted. 2K produces higher-resolution images than 1K. Billing differs by tier — see the pricing page

Available options:
1K,
2K
Example:

"1K"

seed
integer

Random seed for generating similar compositions

Note:

  • Range: 0 to 1048576
  • 0 or empty uses a random seed
  • Same seed with same prompt may reproduce the same composition
Required range: 0 <= x <= 1048576
Example:

12345

nsfw_check
boolean
default:false

Enable additional NSFW content moderation

Note:

  • Default: false (disabled)
  • Basic content moderation is always active even when disabled
  • Enable for stricter content filtering
Example:

false

callback_url
string<uri>

HTTPS callback address after task completion

Callback Timing:

  • Triggered when task is completed, failed, or cancelled
  • Sent after billing confirmation is completed

Security Restrictions:

  • Only HTTPS protocol is supported
  • Callback to internal IP addresses is prohibited (127.0.0.1, 10.x.x.x, 172.16-31.x.x, 192.168.x.x, etc.)
  • URL length must not exceed 2048 characters

Callback Mechanism:

  • Timeout: 10 seconds
  • Maximum 3 retries on failure (retries after 1 second/2 seconds/4 seconds)
  • Callback response body format is consistent with the task query API response format
  • Callback address returning 2xx status code is considered successful, other status codes will trigger retry
Example:

"https://your-domain.com/webhooks/image-task-completed"

Response

Image generation task created successfully

created
integer

Task creation timestamp

Example:

1751280000

id
string

Task ID

Example:

"task-unified-1751280000-k2t9x8a3"

model
string

Actual model name used

Example:

"krea-2-turbo"

object
enum<string>

Specific type of the task

Available options:
image.generation.task
progress
integer

Task progress percentage (0-100)

Required range: 0 <= x <= 100
Example:

0

status
enum<string>

Task status

Available options:
pending,
processing,
completed,
failed
Example:

"pending"

task_info
object

Async task information

type
enum<string>

Output type of the task

Available options:
text,
image,
audio,
video
Example:

"image"

usage
object

Usage and billing information