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
| Field | Value |
|---|---|
| API-KEY | <api-key> |
| Content-Type | application/json |
Request Parameters
| Field Name | Type | Example | Description | Required |
|---|---|---|---|---|
| type | string | TEXT_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.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": "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/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": "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.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 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.