Image to Image
Authorizations
Pass Authorization: Bearer <token> in the request header.
Headers
Media type of the request body. Set to application/json to ensure the request data is in JSON format.
application/json Body
Model name. Available value: image-01.
image-01 Text description of the image, up to 1500 characters.
Subject reference for image-to-image generation.
Style settings. Only takes effect when model is image-01-live.
Image aspect ratio. Defaults to 1:1. Available values:
1:1(1024x1024)16:9(1280x720)4:3(1152x864)3:2(1248x832)2:3(832x1248)3:4(864x1152)9:16(720x1280)21:9(1344x576) (only forimage-01)
1:1, 16:9, 4:3, 3:2, 2:3, 3:4, 9:16, 21:9 Width of the generated image in pixels. Only takes effect when model is image-01. Note: width and height must be set together, value range [512, 2048], and must be a multiple of 8. If set together with aspect_ratio, aspect_ratio takes precedence.
Height of the generated image in pixels. Only takes effect when model is image-01. Note: width and height must be set together, value range [512, 2048], and must be a multiple of 8. If set together with aspect_ratio, aspect_ratio takes precedence.
Format of the returned image. Defaults to url. Available values: url, base64.
⚠️ Note: URLs are valid for 24 hours.
url, base64 Random seed. Using the same seed and parameters can generate images with similar content for reproducible results. If not provided, a random seed is generated for each of the n images.
Number of images to generate per request, range [1, 9]. Defaults to 1.
1 <= x <= 9Whether to enable automatic prompt optimization. Defaults to false.
Whether to add a watermark to the generated image. Defaults to false.