Skip to main content
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.

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_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

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.