Skip to main content
POST

Authorizations

Authorization
string
header
required

API Key authentication. Format: Bearer YOUR_API_KEY.

Body

application/json

At least one of image or video must be provided. Both may be provided together.

prompt
string
required

Editing instruction describing the desired transformation

Minimum string length: 1
Example:

"Transform this into a watercolor painting"

image
string[]

Input image URLs. At least one of image or video must be provided. Supports up to 14 images, or up to 10 images when video is also provided.

Required array length: 1 - 14 elements

Image URL (e.g. https://example.com/image.jpg).

Example:
video
string

Input video URL. At least one of image or video must be provided. Must be a publicly accessible HTTPS URL without cookies, authentication, or custom headers. Maximum file size: 15 MB.

Example:

"https://example.com/video.mp4"

videoMimeType
enum<string>

MIME type of the input video. Requires video.

Available options:
video/mp4,
video/mpeg,
video/mpg,
video/mpegps,
video/mov,
video/avi,
video/wmv,
video/flv
Example:

"video/mp4"

aspectRatio
enum<string>
default:1:1

Output image aspect ratio

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

"16:9"

imageSize
enum<string>

Output image resolution (Flash Lite supports 1K only)

Available options:
1K
Example:

"1K"

Response

Task submitted successfully

code
integer
required

Response code, 0 indicates success

Example:

0

message
string
required

Response message

Example:

"success"

data
object
required

Detailed data about the submitted asynchronous task.