Wanx AI - Text to Video
Generate high-quality videos from text descriptions using Wanx AI's advanced video generation models. Features multiple model variants including 14B and 1.3B parameter models with LoRA support and keyframe control.
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 | Qubico/wanx | AI model to use | ✔️ |
conversationId | string | TEXT_TO_VIDEO | Conversation context | ✔️ |
promptObject.prompt | string | cyberpunk cityscape | Text description of the video | ✔️ |
promptObject.taskType | string | txt2video-14b | Model variant to use | ✔️ |
promptObject.negativePrompt | string | blurry, low quality | What to avoid in the video | ❌ |
promptObject.aspectRatio | string | 16:9 | Video aspect ratio | ❌ |
promptObject.loraType | string | ghibli | LoRA effect type for LoRA models | ❌ |
promptObject.loraStrength | number | 0.8 | LoRA effect strength (0.1-1.0) | ❌ |
Available Model Variants
txt2video-14b
- 14B parameter model for high-quality text-to-video generationtxt2video-1.3b
- 1.3B parameter model for faster text-to-video generationtxt2video-14b-lora
- 14B model with LoRA effects for stylized text-to-video
Supported Aspect Ratios
16:9
- Widescreen format9:16
- Vertical/mobile format1:1
- Square format
LoRA Effect Types (for txt2video-14b-lora)
ghibli
- Studio Ghibli animation styleflat-color
- Flat color illustration stylepassionate-kissing
- Romantic scene effects
Code Examples
- cURL
- JavaScript
- Python
curl --location 'https://api.1min.ai/api/features' \
--header 'API-KEY: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"type": "TEXT_TO_VIDEO",
"model": "Qubico/wanx",
"conversationId": "TEXT_TO_VIDEO",
"promptObject": {
"prompt": "cyberpunk cityscape with neon lights and flying vehicles",
"taskType": "txt2video-14b",
"negativePrompt": "blurry, low quality, distorted",
"aspectRatio": "16:9"
}
}'
fetch('https://api.1min.ai/api/features', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'API-KEY': 'YOUR_API_KEY'
},
body: JSON.stringify({
type: 'TEXT_TO_VIDEO',
model: 'Qubico/wanx',
conversationId: 'TEXT_TO_VIDEO',
promptObject: {
prompt: 'cyberpunk cityscape with neon lights and flying vehicles',
taskType: 'txt2video-14b',
negativePrompt: 'blurry, low quality, distorted',
aspectRatio: '16:9'
}
})
})
import requests
url = "https://api.1min.ai/api/features"
headers = {
"Content-Type": "application/json",
"API-KEY": "YOUR_API_KEY"
}
data = {
"type": "TEXT_TO_VIDEO",
"model": "Qubico/wanx",
"conversationId": "TEXT_TO_VIDEO",
"promptObject": {
"prompt": "cyberpunk cityscape with neon lights and flying vehicles",
"taskType": "txt2video-14b",
"negativePrompt": "blurry, low quality, distorted",
"aspectRatio": "16:9"
}
}
response = requests.post(url, headers=headers, json=data)
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": "Qubico/wanx",
"conversationId": "TEXT_TO_VIDEO",
"promptObject": {
"prompt": "cyberpunk cityscape with neon lights and flying vehicles",
"taskType": "txt2video-14b",
"negativePrompt": "blurry, low quality, distorted",
"aspectRatio": "16:9"
}
}'
Response
{}