GET /api/v1/client/tasks/{taskId}callBackUrl parameter so your service can receive completion notifications instead of polling for task status.| Mode | When | duration | Other assets allowed |
|---|---|---|---|
| A Text / reference images / characters | No first_frame_url, no video_list | Required, integer 3β15 | image_urls, character_ids |
| B First frame only | first_frame_url set, no last_frame_url | Required, integer 3β15 | None (see exclusions) |
| C First and last frame | Both first_frame_url and last_frame_url | Required, integer 3β10 | None (see exclusions) |
| D Video edit | video_list set | Do not send | image_urls, character_ids |
first_frame_url or last_frame_url is set):last_frame_url aloneimage_urls, video_list, or character_ids at the same timenumber of reference images + (2 if a video is present) β€ 7image_urls: max 6, 1 slot eachvideo_list: max 1, 2 slotscharacter_ids: max 2. Character images do not count toward the reference-image quotacharacter_ids (up to 2): supported in Modes A and D (mutually exclusive with first_frame_url / last_frame_url); character assets do not consume the 7-slot image quota.audio_ids: standalone audio_ids is not supported on Gemini Omni 1.2 Flash.video_list) duration (3β15 s): the input video must be 3 to 15 seconds long (videos with a readable duration under 3 s or over 15 s are rejected with 422 before billing). If the video's duration cannot be parsed from its container or is supplied as a data: URI, it is billed at the 15-second maximum.curl --location 'https://api.emix.ai/api/v1/client/tasks' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "google/gemini-omni-flash-1-2",
"callBackUrl": "https://your-domain.com/api/callback",
"input": {
"prompt": "The character walks through a rainy street at night, neon reflections",
"duration": 8,
"aspect_ratio": "9:16",
"resolution": "720p",
"image_urls": [
"https://example.com/ref1.png",
"https://example.com/ref2.png"
],
"character_ids": [
"character_01hx8p0demo"
]
}
}'{
"code": 200,
"msg": "success",
"data": {
"taskId": "task_gemini_1765180586443"
}
}