Image to Video
Generate a video with sound from a first frame, optionally ending on a last frame (Wan 3.0 image_to_video).
Wan 3.0 starts the video from the first image in image_urls and, if you send a second one, ends on it; prompt says what happens in between. The aspect ratio follows the first frame, so aspect_ratio isn't accepted. Use two frames of the same orientation (both landscape or both portrait): with one landscape and one portrait, generation may fail.
Create a task
https://api.nanoapi.ai/v1/tasksUse the shared create endpoint with model: "wan-3.0".
Headers
| Header | Required | Description |
|---|---|---|
Authorization | Yes | Bearer <API key>, see Authentication. |
Content-Type | Yes | application/json |
Idempotency-Key | No | A unique string for every new task, ideally a UUID (1–255 characters). See Preventing duplicate tasks. |
Body
| Parameter | Type | Required | Description |
|---|---|---|---|
model | string | Yes | wan-3.0 |
variant | string | Yes | standard or prime, see Variants. Sets the price. |
mode | string | Yes | image_to_video |
image_urls | string[] | Yes | 1–2 images: the first frame and optionally the last frame. See Media. |
prompt | string | Yes | What happens in the video, at most 8000 characters. Best written in English. |
resolution | string | Yes | 480p, 720p or 1080p. Sets the price. |
duration | integer | Yes | Output length in seconds, 2–30. Billed per second, see Pricing. |
generate_audio | boolean | No | Whether the output has sound, default true. Doesn't affect the price. |
enable_thinking | boolean | No | true has the model reason about the prompt before generating: closer to your description, but slower. Default false. |
webhook_url | string | No | Notified when the task succeeds or fails: https, up to 2048 characters, not a private, loopback or reserved address. See Webhooks. |
prime, a first and a last frame, 1080p, 5 seconds:
curl https://api.nanoapi.ai/v1/tasks \
-H "Authorization: Bearer $NANOAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "wan-3.0",
"variant": "prime",
"mode": "image_to_video",
"image_urls": [
"https://example.com/first_frame.jpg",
"https://example.com/last_frame.jpg"
],
"prompt": "The woman turns around and walks toward the window, the camera follows her",
"resolution": "1080p",
"duration": 5
}'Response: 200 OK, the new task (fields). Keep data.id to get the result; the task can still fail, see Errors.
{
"code": 200,
"message": "success",
"data": {
"object": "task",
"id": "tk_01jbq5w8m2c4x7b0n3q6t9e1r5",
"model": "wan-3.0",
"status": "queued",
"error": null,
"created_at": "2026-11-11T08:30:00Z"
}
}Pricing
cost = duration × price per second of the variant and resolutionLoading the current prices…
Billed seconds are the duration you ask for, however many images you send; sound in the output (generate_audio) and enable_thinking don't change the price. Current prices: GET /v1/products (the prices rows of the variant). The task's billing.frozen is the amount that counts; freezing and charging: Billing. Every variant's prices: Wan 3.0 → Pricing.
Errors
See Wan 3.0 → Errors. This mode's parameter rules are in the table above.