Use this file to discover all available pages before exploring further.
The resources (image, video, voice) generated by our API are valid for 7 days.
Please save the relevant resources as soon as possible to prevent expiration.
Your API Key used for request authorization. If both Authorization and x-api-key have values, Authorization will be used first and x-api-key will be discarded.
Authorization
Bearer {token}
Your API Key used for request authorization.Get Token
Model name. Options: wavespeed-ai/flux-krea-dev-lora (text-to-image), wavespeed-ai/flux-kontext-dev (image-to-image). Auto-selected based on source_images if not provided
source_images
Array
false
Array of source image URLs for image-to-image transformation. When provided, automatically uses image-to-image model
{ "model_name": "wavespeed-ai/flux-krea-dev-lora", "negative_prompt": "low quality, worst quality, blurry, out of focus", "prompt": "A majestic mountain landscape at sunset with golden light", "scale": "16:9", "resolution": "4k", "batch_quantity": 1}
Model Auto-Selection: If model_name is not provided, the system automatically selects the appropriate model based on whether source_images is provided
Text-to-Image: Use wavespeed-ai/flux-krea-dev-lora or omit model_name and source_images
Image-to-Image: Use wavespeed-ai/flux-kontext-dev or provide source_images (first URL will be used as source)
Batch Generation: Set batch_quantity (1-4) to generate multiple images in one request. Each image deducts credits separately
Resolution: Default is “4k”. Both “1080p” and “4k” cost 1 credit per image
Similar Parameter: Only applicable for image-to-image model. Controls how closely the output matches the source image (0=more creative, 1=more similar)
Resource Expiration: Generated images are valid for 7 days, save them promptly
Webhook: Use webhookurl to receive notifications when image generation is complete
Save the _id from the response to check image status using the Get Image Result API