Skip to main content

Wan 3 & Wan 3 Prime - Text to Video

Generate video from a text description with optional generated audio and aspect-ratio control. Both Wan 3 (wan3.0-video) and Wan 3 Prime (wan3.0-video-prime) use the request contract below.

Endpoint​

Request Headers​

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

Request Parameters​

Field NameTypeExampleDescriptionRequired
typestringTEXT_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.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": "TEXT_TO_VIDEO",
"model": "wan3.0-video",
"async": true,
"promptObject": {
"prompt": "A river flowing gently through a deep canyon at midday.",
"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.

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": "TEXT_TO_VIDEO",
"model": "wan3.0-video",
"async": true,
"promptObject": {
"prompt": "A river flowing gently through a deep canyon at midday.",
"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 video input 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.