Endpoint
Request Headers
Body Attributes
Response Attributes
Supported Models
Example
Text-to-Image Request
Image-to-Image Request
Request
Response
Batch Generation Response (batch_quantity > 1)
Important Notes
- Model Auto-Selection: If
model_nameis not provided, the system automatically selects the appropriate model based on whethersource_imagesis provided - Text-to-Image: Use
wavespeed-ai/flux-krea-dev-loraor omitmodel_nameandsource_images - Image-to-Image: Use
wavespeed-ai/flux-kontext-devor providesource_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
webhookurlto receive notifications when image generation is complete - Save the
_idfrom the response to check image status using the Get Image Result API
Response Code Description
Please note that if the value of the response code is not equal to 1000, the request has failed or encountered an error.