dantelabs-agentic-school 1.0.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/marketplace.json +11 -53
- package/cli/bin/cli.js +31 -8
- package/cli/src/commands/info.js +15 -11
- package/cli/src/commands/install.js +53 -29
- package/cli/src/commands/list.js +28 -22
- package/cli/src/commands/uninstall.js +23 -16
- package/cli/src/i18n/index.js +96 -0
- package/cli/src/i18n/locales/en.js +107 -0
- package/cli/src/i18n/locales/ko.js +107 -0
- package/cli/src/lib/config.js +116 -1
- package/cli/src/lib/installer.js +106 -3
- package/package.json +1 -1
- package/plugins/brand-analytics/plugin.json +9 -0
- package/plugins/campaign-orchestration/plugin.json +9 -0
- package/plugins/common/plugin.json +9 -0
- package/plugins/common/skills/kie-image-generator/.env.example +4 -0
- package/plugins/common/skills/kie-image-generator/SKILL.md +281 -0
- package/plugins/common/skills/kie-image-generator/references/api_docs.md +358 -0
- package/plugins/common/skills/kie-image-generator/scripts/__pycache__/utils.cpython-313.pyc +0 -0
- package/plugins/common/skills/kie-image-generator/scripts/generate_image.py +285 -0
- package/plugins/common/skills/kie-image-generator/scripts/models/__init__.py +19 -0
- package/plugins/common/skills/kie-image-generator/scripts/models/__pycache__/__init__.cpython-313.pyc +0 -0
- package/plugins/common/skills/kie-image-generator/scripts/models/__pycache__/flux_kontext.cpython-313.pyc +0 -0
- package/plugins/common/skills/kie-image-generator/scripts/models/__pycache__/gpt4o.cpython-313.pyc +0 -0
- package/plugins/common/skills/kie-image-generator/scripts/models/__pycache__/ideogram.cpython-313.pyc +0 -0
- package/plugins/common/skills/kie-image-generator/scripts/models/__pycache__/imagen.cpython-313.pyc +0 -0
- package/plugins/common/skills/kie-image-generator/scripts/models/__pycache__/nano_banana.cpython-313.pyc +0 -0
- package/plugins/common/skills/kie-image-generator/scripts/models/__pycache__/nano_banana_edit.cpython-313.pyc +0 -0
- package/plugins/common/skills/kie-image-generator/scripts/models/__pycache__/nano_banana_pro.cpython-313.pyc +0 -0
- package/plugins/common/skills/kie-image-generator/scripts/models/__pycache__/seedream.cpython-313.pyc +0 -0
- package/plugins/common/skills/kie-image-generator/scripts/models/__pycache__/seedream_edit.cpython-313.pyc +0 -0
- package/plugins/common/skills/kie-image-generator/scripts/models/flux_kontext.py +36 -0
- package/plugins/common/skills/kie-image-generator/scripts/models/gpt4o.py +36 -0
- package/plugins/common/skills/kie-image-generator/scripts/models/ideogram.py +85 -0
- package/plugins/common/skills/kie-image-generator/scripts/models/imagen.py +48 -0
- package/plugins/common/skills/kie-image-generator/scripts/models/nano_banana.py +40 -0
- package/plugins/common/skills/kie-image-generator/scripts/models/nano_banana_edit.py +55 -0
- package/plugins/common/skills/kie-image-generator/scripts/models/nano_banana_pro.py +47 -0
- package/plugins/common/skills/kie-image-generator/scripts/models/seedream.py +51 -0
- package/plugins/common/skills/kie-image-generator/scripts/models/seedream_edit.py +66 -0
- package/plugins/common/skills/kie-image-generator/scripts/utils.py +706 -0
- package/plugins/common/skills/kie-video-generator/SKILL.md +258 -0
- package/plugins/common/skills/kie-video-generator/references/api_docs.md +202 -0
- package/plugins/common/skills/kie-video-generator/scripts/__pycache__/utils.cpython-313.pyc +0 -0
- package/plugins/common/skills/kie-video-generator/scripts/generate_video.py +356 -0
- package/plugins/common/skills/kie-video-generator/scripts/models/__init__.py +4 -0
- package/plugins/common/skills/kie-video-generator/scripts/utils.py +617 -0
- package/plugins/content-creation/plugin.json +9 -0
- package/plugins/creative-production/plugin.json +9 -0
- package/plugins/customer-segmentation/plugin.json +9 -0
- package/plugins/market-research/plugin.json +9 -0
- package/plugins/persona-builder/plugin.json +9 -0
- package/plugins/social-strategy/plugin.json +9 -0
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: kie-video-generator
|
|
3
|
+
description: Generate AI videos using Kie.ai's diverse video generation models including Veo 3, Sora 2, Kling, Wan, Hailuo, Seedance, and more. Supports text-to-video, image-to-video, and video extension with automatic usage tracking and model comparison.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Kie Video Generator
|
|
7
|
+
|
|
8
|
+
## Overview
|
|
9
|
+
|
|
10
|
+
Generate high-quality AI videos using Kie.ai's comprehensive collection of video generation models. This skill provides access to 15+ state-of-the-art models including Google Veo 3/3.1, OpenAI Sora 2, Kling 2.5/2.6, Wan 2.2/2.5/2.6, Hailuo, ByteDance Seedance, and more.
|
|
11
|
+
|
|
12
|
+
**Features:**
|
|
13
|
+
- Text-to-video and image-to-video generation
|
|
14
|
+
- Automatic credit usage tracking and reporting
|
|
15
|
+
- Model cost comparison before generation
|
|
16
|
+
- Interactive model selection
|
|
17
|
+
- Video extension capabilities
|
|
18
|
+
|
|
19
|
+
## Quick Start
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
# Check available credits
|
|
23
|
+
python scripts/generate_video.py --credits
|
|
24
|
+
|
|
25
|
+
# List all available models with pricing
|
|
26
|
+
python scripts/generate_video.py --list-models
|
|
27
|
+
|
|
28
|
+
# Generate video with interactive model selection
|
|
29
|
+
python scripts/generate_video.py "a serene sunset over the ocean"
|
|
30
|
+
|
|
31
|
+
# Generate with specific model
|
|
32
|
+
python scripts/generate_video.py "cyberpunk city at night" --model veo3
|
|
33
|
+
|
|
34
|
+
# Image-to-video generation
|
|
35
|
+
python scripts/generate_video.py "make this image come alive" --model kling-2.6-i2v --image https://example.com/image.jpg
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Supported Models
|
|
39
|
+
|
|
40
|
+
### Google Veo 3 / 3.1
|
|
41
|
+
| Model ID | Type | Duration | Resolution | Est. Cost |
|
|
42
|
+
|----------|------|----------|------------|-----------|
|
|
43
|
+
| `veo3` | Text/Image to Video | 8s | 1080P | $2.00 |
|
|
44
|
+
| `veo3-fast` | Text/Image to Video | 8s | 1080P | $0.40 |
|
|
45
|
+
|
|
46
|
+
**Parameters:** `prompt`, `imageUrls` (1-2), `aspectRatio` (16:9, 9:16, Auto), `seeds`, `enableTranslation`, `watermark`
|
|
47
|
+
|
|
48
|
+
### OpenAI Sora 2
|
|
49
|
+
| Model ID | Type | Frames | Resolution | Est. Cost |
|
|
50
|
+
|----------|------|--------|------------|-----------|
|
|
51
|
+
| `sora-2-t2v` | Text to Video | 10/15 | landscape/portrait | ~$1.00 |
|
|
52
|
+
| `sora-2-pro-t2v` | Pro Text to Video | 10/15 | landscape/portrait | ~$2.00 |
|
|
53
|
+
| `sora-2-i2v` | Image to Video | - | - | ~$1.50 |
|
|
54
|
+
| `sora-2-watermark-remover` | Remove Watermark | - | - | ~$0.50 |
|
|
55
|
+
|
|
56
|
+
**Parameters:** `prompt`, `aspect_ratio`, `n_frames`, `remove_watermark`, `character_id_list`
|
|
57
|
+
|
|
58
|
+
### Kling 2.5 / 2.6
|
|
59
|
+
| Model ID | Type | Duration | Resolution | Est. Cost |
|
|
60
|
+
|----------|------|----------|------------|-----------|
|
|
61
|
+
| `kling-2.6-t2v` | Text to Video | 5/10s | 1:1, 16:9, 9:16 | ~$0.50 |
|
|
62
|
+
| `kling-2.6-i2v` | Image to Video | 5/10s | - | ~$0.60 |
|
|
63
|
+
| `kling-2.5-t2v` | Text to Video | 5/10s | - | ~$0.40 |
|
|
64
|
+
| `kling-2.1-master` | Master Text to Video | - | - | ~$0.80 |
|
|
65
|
+
|
|
66
|
+
**Parameters:** `prompt`, `image_urls`, `sound`, `aspect_ratio`, `duration`
|
|
67
|
+
|
|
68
|
+
### Wan 2.2 / 2.5 / 2.6
|
|
69
|
+
| Model ID | Type | Duration | Resolution | Est. Cost |
|
|
70
|
+
|----------|------|----------|------------|-----------|
|
|
71
|
+
| `wan-2.6-t2v` | Text to Video | 5/10/15s | 720p/1080p | ~$0.30 |
|
|
72
|
+
| `wan-2.5-t2v` | Text to Video | - | - | ~$0.25 |
|
|
73
|
+
| `wan-2.2-t2v` | Text to Video | - | - | ~$0.20 |
|
|
74
|
+
| `wan-2.2-animate` | Animate | - | - | ~$0.30 |
|
|
75
|
+
|
|
76
|
+
**Parameters:** `prompt`, `duration`, `resolution`
|
|
77
|
+
|
|
78
|
+
### Hailuo 2.3
|
|
79
|
+
| Model ID | Type | Duration | Resolution | Est. Cost |
|
|
80
|
+
|----------|------|----------|------------|-----------|
|
|
81
|
+
| `hailuo-2.3-i2v-standard` | Image to Video (Standard) | 6/10s | 512P/768P | ~$0.30 |
|
|
82
|
+
| `hailuo-2.3-i2v-pro` | Image to Video (Pro) | 6/10s | 512P/768P | ~$0.50 |
|
|
83
|
+
| `hailuo-2.3-t2v-standard` | Text to Video (Standard) | - | - | ~$0.30 |
|
|
84
|
+
|
|
85
|
+
**Parameters:** `prompt`, `image_url`, `end_image_url`, `duration`, `resolution`, `prompt_optimizer`
|
|
86
|
+
|
|
87
|
+
### ByteDance Seedance 1.5
|
|
88
|
+
| Model ID | Type | Duration | Resolution | Est. Cost |
|
|
89
|
+
|----------|------|----------|------------|-----------|
|
|
90
|
+
| `seedance-1.5-pro` | Pro Video | 4/8/12s | 480p/720p | ~$0.40 |
|
|
91
|
+
| `seedance-v1-pro-t2v` | Pro Text to Video | - | - | ~$0.35 |
|
|
92
|
+
| `seedance-v1-lite-i2v` | Lite Image to Video | - | - | ~$0.20 |
|
|
93
|
+
| `seedance-v1-pro-i2v` | Pro Image to Video | - | - | ~$0.40 |
|
|
94
|
+
| `seedance-v1-pro-fast-i2v` | Pro Fast Image to Video | - | - | ~$0.30 |
|
|
95
|
+
|
|
96
|
+
**Parameters:** `prompt`, `input_urls`, `aspect_ratio`, `resolution`, `duration`, `fixed_lens`, `generate_audio`
|
|
97
|
+
|
|
98
|
+
### Grok Imagine
|
|
99
|
+
| Model ID | Type | Est. Cost |
|
|
100
|
+
|----------|------|-----------|
|
|
101
|
+
| `grok-imagine` | Text/Image to Video | ~$0.50 |
|
|
102
|
+
|
|
103
|
+
## Workflow
|
|
104
|
+
|
|
105
|
+
### Step 1: Check Credits
|
|
106
|
+
|
|
107
|
+
Always check your available credits before generating:
|
|
108
|
+
|
|
109
|
+
```bash
|
|
110
|
+
python scripts/generate_video.py --credits
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
Output:
|
|
114
|
+
```
|
|
115
|
+
💰 Kie.ai Account Balance
|
|
116
|
+
━━━━━━━━━━━━━━━━━━━━━━━━
|
|
117
|
+
Available Credits: 1,250
|
|
118
|
+
Estimated Value: $6.25 USD
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
### Step 2: Compare Models
|
|
122
|
+
|
|
123
|
+
View all available models with estimated costs:
|
|
124
|
+
|
|
125
|
+
```bash
|
|
126
|
+
python scripts/generate_video.py --list-models
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
### Step 3: Generate Video
|
|
130
|
+
|
|
131
|
+
**Interactive mode (recommended for first-time users):**
|
|
132
|
+
```bash
|
|
133
|
+
python scripts/generate_video.py "your prompt here"
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
The script will:
|
|
137
|
+
1. Display your current credits
|
|
138
|
+
2. Show available models with costs
|
|
139
|
+
3. Ask you to select a model
|
|
140
|
+
4. Confirm before generating
|
|
141
|
+
5. Poll for completion and download
|
|
142
|
+
|
|
143
|
+
**Direct mode (when you know the model):**
|
|
144
|
+
```bash
|
|
145
|
+
python scripts/generate_video.py "your prompt" --model veo3-fast
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
### Step 4: Image-to-Video
|
|
149
|
+
|
|
150
|
+
For models that support image input:
|
|
151
|
+
|
|
152
|
+
```bash
|
|
153
|
+
# Single image
|
|
154
|
+
python scripts/generate_video.py "animate this scene" \
|
|
155
|
+
--model kling-2.6-i2v \
|
|
156
|
+
--image https://example.com/image.jpg
|
|
157
|
+
|
|
158
|
+
# First and last frame (Veo 3, Hailuo)
|
|
159
|
+
python scripts/generate_video.py "transition between scenes" \
|
|
160
|
+
--model veo3 \
|
|
161
|
+
--image https://example.com/start.jpg \
|
|
162
|
+
--end-image https://example.com/end.jpg
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
## Advanced Usage
|
|
166
|
+
|
|
167
|
+
### Model-Specific Parameters
|
|
168
|
+
|
|
169
|
+
**Veo 3:**
|
|
170
|
+
```bash
|
|
171
|
+
python scripts/generate_video.py "cinematic landscape" \
|
|
172
|
+
--model veo3 \
|
|
173
|
+
--aspect-ratio 16:9 \
|
|
174
|
+
--seed 12345
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
**Kling 2.6:**
|
|
178
|
+
```bash
|
|
179
|
+
python scripts/generate_video.py "dancing robot" \
|
|
180
|
+
--model kling-2.6-t2v \
|
|
181
|
+
--duration 10 \
|
|
182
|
+
--sound
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
**Wan 2.6:**
|
|
186
|
+
```bash
|
|
187
|
+
python scripts/generate_video.py "flowing water" \
|
|
188
|
+
--model wan-2.6-t2v \
|
|
189
|
+
--duration 15 \
|
|
190
|
+
--resolution 1080p
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
**Seedance:**
|
|
194
|
+
```bash
|
|
195
|
+
python scripts/generate_video.py "product showcase" \
|
|
196
|
+
--model seedance-1.5-pro \
|
|
197
|
+
--duration 8 \
|
|
198
|
+
--aspect-ratio 16:9 \
|
|
199
|
+
--generate-audio
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
### Output Options
|
|
203
|
+
|
|
204
|
+
```bash
|
|
205
|
+
# Custom output directory
|
|
206
|
+
python scripts/generate_video.py "prompt" --output ~/Videos/ai/
|
|
207
|
+
|
|
208
|
+
# Custom filename
|
|
209
|
+
python scripts/generate_video.py "prompt" --filename my_video
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
## Environment Setup
|
|
213
|
+
|
|
214
|
+
Create `.env` file in the skill directory:
|
|
215
|
+
|
|
216
|
+
```bash
|
|
217
|
+
KIE_AI_API_KEY=your_api_key_here
|
|
218
|
+
```
|
|
219
|
+
|
|
220
|
+
Or use the centralized auth:
|
|
221
|
+
```bash
|
|
222
|
+
source ~/.claude/auth/kie-ai.env
|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
## Cost Estimation
|
|
226
|
+
|
|
227
|
+
Before each generation, the script shows estimated cost:
|
|
228
|
+
|
|
229
|
+
```
|
|
230
|
+
📊 Cost Estimate
|
|
231
|
+
━━━━━━━━━━━━━━━━━━━━━━━━
|
|
232
|
+
Model: veo3-fast
|
|
233
|
+
Estimated Cost: ~80 credits ($0.40)
|
|
234
|
+
Current Balance: 1,250 credits ($6.25)
|
|
235
|
+
After Generation: ~1,170 credits ($5.85)
|
|
236
|
+
|
|
237
|
+
Proceed with generation? [y/N]:
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
## Error Handling
|
|
241
|
+
|
|
242
|
+
Common error codes:
|
|
243
|
+
- **401**: Invalid API key
|
|
244
|
+
- **402**: Insufficient credits
|
|
245
|
+
- **422**: Invalid parameters
|
|
246
|
+
- **429**: Rate limited (wait and retry)
|
|
247
|
+
- **501**: Generation failed (try different prompt/model)
|
|
248
|
+
|
|
249
|
+
## Resources
|
|
250
|
+
|
|
251
|
+
### scripts/
|
|
252
|
+
- `generate_video.py` - Main CLI with interactive model selection
|
|
253
|
+
- `utils.py` - API utilities, polling, credit checking
|
|
254
|
+
- `models/` - Model-specific parameter handlers
|
|
255
|
+
|
|
256
|
+
### references/
|
|
257
|
+
- `api_docs.md` - Complete API documentation
|
|
258
|
+
- `models.md` - Detailed model specifications
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
# Kie.ai Video API Documentation Reference
|
|
2
|
+
|
|
3
|
+
## Base URL
|
|
4
|
+
```
|
|
5
|
+
https://api.kie.ai
|
|
6
|
+
```
|
|
7
|
+
|
|
8
|
+
## Authentication
|
|
9
|
+
All requests require Bearer token:
|
|
10
|
+
```
|
|
11
|
+
Authorization: Bearer YOUR_API_KEY
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## Unified Jobs API
|
|
15
|
+
|
|
16
|
+
Most video models use the unified Jobs API pattern:
|
|
17
|
+
|
|
18
|
+
### Create Task
|
|
19
|
+
```
|
|
20
|
+
POST /api/v1/jobs/createTask
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Request body:
|
|
24
|
+
```json
|
|
25
|
+
{
|
|
26
|
+
"model": "model-id",
|
|
27
|
+
"callBackUrl": "optional-webhook-url",
|
|
28
|
+
"input": {
|
|
29
|
+
"prompt": "text description",
|
|
30
|
+
// model-specific parameters
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Response:
|
|
36
|
+
```json
|
|
37
|
+
{
|
|
38
|
+
"code": 200,
|
|
39
|
+
"msg": "success",
|
|
40
|
+
"data": {
|
|
41
|
+
"taskId": "task_xxx"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
### Query Task Status
|
|
47
|
+
```
|
|
48
|
+
GET /api/v1/jobs/recordInfo?taskId={taskId}
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
Response:
|
|
52
|
+
```json
|
|
53
|
+
{
|
|
54
|
+
"code": 200,
|
|
55
|
+
"msg": "success",
|
|
56
|
+
"data": {
|
|
57
|
+
"taskId": "task_xxx",
|
|
58
|
+
"model": "model-id",
|
|
59
|
+
"state": "success|waiting|queuing|generating|fail",
|
|
60
|
+
"resultJson": "{\"resultUrls\":[\"https://...\"]}",
|
|
61
|
+
"failCode": "",
|
|
62
|
+
"failMsg": "",
|
|
63
|
+
"costTime": 0,
|
|
64
|
+
"completeTime": 1698765432000,
|
|
65
|
+
"createTime": 1698765400000
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
### Get Account Credits
|
|
71
|
+
```
|
|
72
|
+
GET /api/v1/chat/credit
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
Response:
|
|
76
|
+
```json
|
|
77
|
+
{
|
|
78
|
+
"code": 200,
|
|
79
|
+
"msg": "success",
|
|
80
|
+
"data": 1250
|
|
81
|
+
}
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
---
|
|
85
|
+
|
|
86
|
+
## Veo 3 API
|
|
87
|
+
|
|
88
|
+
### Generate Video
|
|
89
|
+
```
|
|
90
|
+
POST /api/v1/veo/generate
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
Parameters:
|
|
94
|
+
| Parameter | Type | Required | Description |
|
|
95
|
+
|-----------|------|----------|-------------|
|
|
96
|
+
| prompt | string | Yes | Video description |
|
|
97
|
+
| model | enum | No | `veo3` or `veo3_fast` |
|
|
98
|
+
| imageUrls | array | No | 1-2 reference images |
|
|
99
|
+
| generationType | enum | No | TEXT_2_VIDEO, FIRST_AND_LAST_FRAMES_2_VIDEO, REFERENCE_2_VIDEO |
|
|
100
|
+
| aspectRatio | enum | No | 16:9, 9:16, Auto |
|
|
101
|
+
| seeds | integer | No | 10000-99999 |
|
|
102
|
+
| callBackUrl | string | No | Webhook URL |
|
|
103
|
+
| enableTranslation | boolean | No | Auto-translate prompt |
|
|
104
|
+
| watermark | string | No | Watermark text |
|
|
105
|
+
|
|
106
|
+
### Get Video Status
|
|
107
|
+
```
|
|
108
|
+
GET /api/v1/veo/record-info?taskId={taskId}
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
### Get 1080P Video
|
|
112
|
+
```
|
|
113
|
+
GET /api/v1/veo/get-1080p-video?taskId={taskId}
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
---
|
|
117
|
+
|
|
118
|
+
## Model-Specific Parameters
|
|
119
|
+
|
|
120
|
+
### Sora 2 (sora-2-text-to-video)
|
|
121
|
+
| Parameter | Type | Options |
|
|
122
|
+
|-----------|------|---------|
|
|
123
|
+
| prompt | string | max 10,000 chars |
|
|
124
|
+
| aspect_ratio | enum | landscape, portrait |
|
|
125
|
+
| n_frames | enum | "10", "15" |
|
|
126
|
+
| remove_watermark | boolean | - |
|
|
127
|
+
|
|
128
|
+
### Kling 2.6 (kling-2.6/text-to-video)
|
|
129
|
+
| Parameter | Type | Options |
|
|
130
|
+
|-----------|------|---------|
|
|
131
|
+
| prompt | string | max 1000 chars |
|
|
132
|
+
| sound | boolean | - |
|
|
133
|
+
| aspect_ratio | enum | 1:1, 16:9, 9:16 |
|
|
134
|
+
| duration | enum | "5", "10" |
|
|
135
|
+
|
|
136
|
+
### Wan 2.6 (wan/2-6-text-to-video)
|
|
137
|
+
| Parameter | Type | Options |
|
|
138
|
+
|-----------|------|---------|
|
|
139
|
+
| prompt | string | max 5000 chars |
|
|
140
|
+
| duration | enum | "5", "10", "15" |
|
|
141
|
+
| resolution | enum | 720p, 1080p |
|
|
142
|
+
|
|
143
|
+
### Hailuo (hailuo/02-image-to-video-standard)
|
|
144
|
+
| Parameter | Type | Options |
|
|
145
|
+
|-----------|------|---------|
|
|
146
|
+
| prompt | string | max 1500 chars |
|
|
147
|
+
| image_url | string | First frame |
|
|
148
|
+
| end_image_url | string | Last frame |
|
|
149
|
+
| duration | enum | "6", "10" |
|
|
150
|
+
| resolution | enum | 512P, 768P |
|
|
151
|
+
| prompt_optimizer | boolean | - |
|
|
152
|
+
|
|
153
|
+
### Seedance 1.5 (bytedance/seedance-1.5-pro)
|
|
154
|
+
| Parameter | Type | Options |
|
|
155
|
+
|-----------|------|---------|
|
|
156
|
+
| prompt | string | max 2500 chars |
|
|
157
|
+
| input_urls | array | 0-2 images |
|
|
158
|
+
| aspect_ratio | enum | 1:1, 4:3, 3:4, 16:9, 9:16, 21:9 |
|
|
159
|
+
| resolution | enum | 480p, 720p |
|
|
160
|
+
| duration | enum | 4, 8, 12 |
|
|
161
|
+
| fixed_lens | boolean | - |
|
|
162
|
+
| generate_audio | boolean | - |
|
|
163
|
+
|
|
164
|
+
---
|
|
165
|
+
|
|
166
|
+
## Error Codes
|
|
167
|
+
|
|
168
|
+
| Code | Description |
|
|
169
|
+
|------|-------------|
|
|
170
|
+
| 200 | Success |
|
|
171
|
+
| 401 | Unauthorized (invalid API key) |
|
|
172
|
+
| 402 | Insufficient credits |
|
|
173
|
+
| 404 | Not found |
|
|
174
|
+
| 422 | Validation error |
|
|
175
|
+
| 429 | Rate limited |
|
|
176
|
+
| 455 | Service unavailable |
|
|
177
|
+
| 500 | Server error |
|
|
178
|
+
| 501 | Generation failed |
|
|
179
|
+
| 505 | Feature disabled |
|
|
180
|
+
|
|
181
|
+
---
|
|
182
|
+
|
|
183
|
+
## Credit System
|
|
184
|
+
|
|
185
|
+
- 1 credit = $0.005 USD
|
|
186
|
+
- Credits are deducted upon task completion
|
|
187
|
+
- Use GET /api/v1/chat/credit to check balance
|
|
188
|
+
|
|
189
|
+
## Pricing Estimates
|
|
190
|
+
|
|
191
|
+
| Model | Est. Credits | Est. USD |
|
|
192
|
+
|-------|--------------|----------|
|
|
193
|
+
| Veo 3 Quality | 400 | $2.00 |
|
|
194
|
+
| Veo 3 Fast | 80 | $0.40 |
|
|
195
|
+
| Sora 2 T2V | 200 | $1.00 |
|
|
196
|
+
| Sora 2 Pro | 400 | $2.00 |
|
|
197
|
+
| Kling 2.6 T2V | 100 | $0.50 |
|
|
198
|
+
| Wan 2.6 T2V | 60 | $0.30 |
|
|
199
|
+
| Hailuo Standard | 60 | $0.30 |
|
|
200
|
+
| Seedance Pro | 80 | $0.40 |
|
|
201
|
+
|
|
202
|
+
*Prices are estimates and may vary based on parameters.*
|