Skip to main content

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.

ModeRequired images
first_frameimageUrl
first_lastimageUrl and imageTailUrl

Endpoint​

Request Headers​

FieldValue
API-KEY<api-key>
Content-Typeapplication/json

Request Parameters​

Field NameTypeExampleDescriptionRequired
typestringIMAGE_TO_VIDEOFeature identifier✔️
modelstringwan3.0-videowan3.0-video or wan3.0-video-prime✔️
asyncbooleantrueReturn a processing record immediately, then poll for the result❌
conversationIdstringconversation UUIDOptional conversation context❌
promptObject.promptstringA cat wakes upNonempty text description; maximum 20,000 characters✔️
promptObject.modestringfirst_framefirst_frame or first_last✔️
promptObject.imageUrlstringimages/first-frame.pngUploaded first-frame image storage path, required in both modes✔️
promptObject.imageTailUrlstringimages/last-frame.pngUploaded last-frame image storage path, required for first_last; omit for first_frameConditional
promptObject.resolutionstring720P480P, 720P, or 1080P✔️
promptObject.ratiostring16:9adaptive, 21:9, 16:9, 4:3, 1:1, 3:4, or 9:16. Omit to use the provider's adaptive default❌
promptObject.durationnumber5Integer duration from 2 to 30 seconds✔️
promptObject.audiobooleantrueRequest generated audio (true) or disable it (false)❌
promptObject.prompt_extendbooleantrueEnable provider prompt rewriting❌
promptObject.watermarkbooleanfalseWhether to add a watermark❌
promptObject.seednumber123Integer 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/features

Generated 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.resultObject is an array containing the generated MP4 storage path, and aiRecord.temporaryUrl is a signed download URL.
  • FAILURE: aiRecord.aiRecordDetail.resultObject contains an error object. A polling response can be HTTP 200 even 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.