Wan 3 & Wan 3 Prime - Image to Video
Animate a single uploaded image with first_frame, or generate a transition between two uploaded images with first_last. Both Wan 3 (wan3.0-video) and Wan 3 Prime (wan3.0-video-prime) use the request contract below.
Upload images with the Asset API first. Use the returned storage paths in imageUrl and imageTailUrl.
| Mode | Required images |
|---|---|
first_frame | imageUrl |
first_last | imageUrl and imageTailUrl |
Endpoint
Request Headers
| Field | Value |
|---|---|
| API-KEY | <api-key> |
| Content-Type | application/json |
Request Parameters
| Field Name | Type | Example | Description | Required |
|---|---|---|---|---|
| type | string | IMAGE_TO_VIDEO | Feature identifier | ✔️ |
| model | string | wan3.0-video | wan3.0-video or wan3.0-video-prime | ✔️ |
| async | boolean | true | Return a processing record immediately, then poll for the result | ❌ |
| conversationId | string | conversation UUID | Optional conversation context | ❌ |
| promptObject.prompt | string | A cat wakes up | Nonempty text description; maximum 20,000 characters | ✔️ |
| promptObject.mode | string | first_frame | first_frame or first_last | ✔️ |
| promptObject.imageUrl | string | images/first-frame.png | Uploaded first-frame image storage path, required in both modes | ✔️ |
| promptObject.imageTailUrl | string | images/last-frame.png | Uploaded last-frame image storage path, required for first_last; omit for first_frame | Conditional |
| promptObject.resolution | string | 720P | 480P, 720P, or 1080P | ✔️ |
| promptObject.ratio | string | 16:9 | adaptive, 21:9, 16:9, 4:3, 1:1, 3:4, or 9:16. Omit to use the provider's adaptive default | ❌ |
| promptObject.duration | number | 5 | Integer duration from 2 to 30 seconds | ✔️ |
| promptObject.audio | boolean | true | Request generated audio (true) or disable it (false) | ❌ |
| promptObject.prompt_extend | boolean | true | Enable provider prompt rewriting | ❌ |
| promptObject.watermark | boolean | false | Whether to add a watermark | ❌ |
| promptObject.seed | number | 123 | Integer from 0 to 2147483647; omit for a random seed | ❌ |
Optional provider parameters are forwarded when supplied; omitted values use provider defaults. Smart duration (-1), custom audio (audioUrl), negative prompts (negativePrompt), reference media, video editing, and video continuation are not supported by this integration.
Request Example
curl --location 'https://api.1min.ai/api/features' \
--header 'API-KEY: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"type": "IMAGE_TO_VIDEO",
"model": "wan3.0-video",
"async": true,
"promptObject": {
"mode": "first_frame",
"imageUrl": "images/first-frame.png",
"prompt": "The camera slowly pans across the room as the cat wakes up.",
"resolution": "720P",
"ratio": "16:9",
"duration": 5,
"audio": true,
"prompt_extend": true,
"watermark": false
}
}'
Replace model with wan3.0-video-prime to use Wan 3 Prime.
First and Last Frame Example
{
"type": "IMAGE_TO_VIDEO",
"model": "wan3.0-video-prime",
"async": true,
"promptObject": {
"mode": "first_last",
"imageUrl": "images/first-frame.png",
"prompt": "The camera slowly pans across the room as the cat wakes up.",
"resolution": "720P",
"ratio": "16:9",
"duration": 5,
"audio": true,
"prompt_extend": true,
"watermark": false,
"imageTailUrl": "images/last-frame.png"
}
}
Interactive Playground
API Playground
https://api.1min.ai/api/featuresGenerated cURL Command:
curl -X POST "https://api.1min.ai/api/features" \
-H "API-KEY: <your-api-key>" \
-H "Content-Type: application/json" \
-d '{
"type": "IMAGE_TO_VIDEO",
"model": "wan3.0-video",
"async": true,
"promptObject": {
"mode": "first_frame",
"imageUrl": "images/first-frame.png",
"prompt": "The camera slowly pans across the room as the cat wakes up.",
"resolution": "720P",
"ratio": "16:9",
"duration": 5,
"audio": true,
"prompt_extend": true,
"watermark": false
}
}'
Asynchronous Response and Polling
Set async: true as in the examples above. The API returns HTTP 200 with an aiRecord whose uuid identifies the result and whose status is PROCESSING. Poll the Get Result API with the same API key:
curl --location 'https://api.1min.ai/api/results/<aiRecord.uuid>' \
--header 'API-KEY: <api-key>'
Check aiRecord.status on every poll:
PROCESSING: generation is still running.SUCCESS:aiRecord.aiRecordDetail.resultObjectis an array containing the generated MP4 storage path, andaiRecord.temporaryUrlis a signed download URL.FAILURE:aiRecord.aiRecordDetail.resultObjectcontains an error object. A polling response can be HTTP200even when generation fails.
If async is omitted or false, the public API waits for processing to finish before returning the record. The provider itself uses asynchronous generation in either case.
Credit Usage
Credits are rate(resolution) × duration, where duration is the requested value in seconds (2–30). Because this integration sends no input video (images only) and does not use smart duration, the generated video always matches the requested duration, so billing uses the requested resolution and duration. Failed requests are not billed. Successful record metadata includes credit, resolution, and duration.
Use GET /api/resources/models for the configured model rates; Wan 3 and Wan 3 Prime can have different rates.