Video Series
Wan 3.0 Prime Image-to-Video API
- Pass
first_image_urlto fix the first frame of the video exactly; addlast_image_urlto fix the last frame as well. - Reference images, videos and audio are not accepted: frames and reference material are mutually exclusive. For mixed references use Wan 3.0 Prime Reference-to-Video.
- At most 2 images (first and last frame). For 3 or more reference images use Reference-to-Video.
- Videos of 2 to 30 seconds at 480p, 720p or 1080p.
- Standard and Prime take identical parameters, defaults and limits; only the model id and the price differ (see Wan 3.0 Image-to-Video).
- Asynchronous:
POST /v1/videosreturns a task id; pollGET /v1/videos/{id}orGET /v1/tasks/{id}until the task completes. - Result links are APIKO-signed and kept for 24 hours; download anything you need to keep.
- Billing
- Billed seconds = output duration (
duration). - Charged per second at the price of the chosen
resolution; prices are on the model page. - A task that fails is refunded in full.
- Billed seconds = output duration (
POST
Authorizations
All requests use Bearer authentication:
Authorization: Bearer <API_KEY>.Create a key in Console → API Keys.
Routes
string
POST /v1/videos— create a video taskGET /v1/videos/{id}— query the task and readvideo_urlGET /v1/tasks/{id}— query the same task in the shared task format
Body
application/json
model
stringdefault:wan3.0-prime-image-to-videorequired
Use this exact public model id.
Available options:
wan3.0-prime-image-to-videoExample:
"wan3.0-prime-image-to-video"prompt
stringrequired
Video description.
- Chinese and English are supported. Up to 20,000 characters; a longer prompt is rejected with HTTP 400 before any charge.
- Describe how the picture moves on from the first frame.
Minimum length:
1Maximum length:
20000Example:
"A paper boat drifting across a calm lake at sunrise"aspect_ratio
enum<string>
Width-to-height ratio of the output video.
adaptive lets the model choose a ratio from the input material and the prompt; 16:9 is landscape, 9:16 portrait, 1:1 square.Available options:
adaptive, 16:9, 9:16, 1:1Example:
"adaptive"resolution
enum<string>default:720p
Output resolution of the video. Values are matched case-insensitively.
480pis the lowest price,720pthe default,1080pthe sharpest.- Each resolution has its own per-second price; see the model page.
Available options:
480p, 720p, 1080pExample:
"720p"duration
integerdefault:5
- Length of the output video in seconds: any integer from 2 to 30.
seconds(a string such as"10", as in the OpenAI video API) is accepted as an alias; send one of the two.
Range:
2 ≤ x ≤ 30Example:
5first_image_url
string<uri>required
First frame.
- Used exactly as the first frame of the video.
- Image limits: JPEG, JPG, PNG (no transparency), BMP or WEBP; width and height 240–8,000 px; aspect ratio between 1:8 and 8:1; up to 20 MB.
- Public HTTPS URLs only; files and base64 are not accepted.
Example:
"https://example.com/first-frame.png"last_image_url
string<uri>
Last frame; requires first_image_url.
- Used exactly as the last frame of the video; only together with
first_image_url. - Image limits: JPEG, JPG, PNG (no transparency), BMP or WEBP; width and height 240–8,000 px; aspect ratio between 1:8 and 8:1; up to 20 MB.
- Public HTTPS URLs only; files and base64 are not accepted.
Requires
first_image_url.Example:
"https://example.com/last-frame.png"callback_url
string<uri>
Optional public HTTPS URL notified when the task finishes.
- When the task finishes, APIKO POSTs the same JSON as
GET /v1/tasks/{id}with headerX-Apiko-Task-Id, retrying up to 3 times. - Callbacks are not signed: re-fetch the task to confirm the result.
Example:
"https://your-domain.com/webhooks/apiko-task"Response
200 - application/json
Charged when the request is accepted; a task that ends in failed is refunded in full.
id
string
Video task id. Query it with
GET /v1/videos/{id} or GET /v1/tasks/{id}.Example:
"task_abc123"status
enum<string>
Task status. Poll every 5–10 seconds until it is
completed or failed.Available options:
queued, in_progress, completed, failedprogress
integer
Progress from
0 to 100.video_url
string<uri>
Present on
GET /v1/videos/{id} when the task is completed: an APIKO-signed link kept for 24 hours. GET /v1/tasks/{id} returns the same link as data[0].url.Errors
application/json
Errors use the shape { "error": { "message", "type", "param", "code" } }; most messages end with a request id to quote when you contact support.
400
error
Invalid request. Fix the request instead of retrying it; it is not charged.
- A field this page does not list, e.g.
seed is not supported. - A value outside the listed options or range, e.g.
duration must be an integer from …. - A missing or empty
prompt(prompt is required). - A reference URL that is not public HTTPS (
… must be a public HTTPS URL). last_image_urlwithoutfirst_image_url(last_image_url requires first_image_url).
401
error
Missing or invalid API key (
Invalid token).403
error
Insufficient balance (
code: "insufficient_user_quota"). Add credit in Console → Billing.404
error
GET /v1/videos/{id} or GET /v1/tasks/{id} for a task that does not exist or belongs to another account (Task not found).503
error
The model exists but none of its routes can take the request right now:
No available channel for model … (code: "model_not_found"). Retry later with backoff, or pick another model. A missing or misspelled model returns 404 with the same message; check the id instead of retrying.