| Item | Content |
|---|---|
| Base URL | https://llm.ai-nebula.com |
| Authentication Method | API Key (Token) |
| Request Headers | Authorization: Bearer sk-xxxx |
| Content-Type | application/json |
| Task Mode | Asynchronous Task (Submit Task → Poll Status) |
wan2.5-i2v-preview - Image-to-Video Preview VersionPOST /v1/video/generationsAuthorization: Bearer sk-xxxx
Content-Type: application/json| Parameter Name | Type | Required | Description | Example Value |
|---|---|---|---|---|
model | string | Yes | Model name | "wan2.5-i2v-preview" |
prompt | string | Yes | Video generation prompt (describing action and scene) | "A kitten slowly opens its eyes, ears twitching gently" |
image | string | Yes | Input image (Supports HTTPS URL or base64 format) | "https://example.com/cat.jpg" |
duration | int | No | Video duration (seconds), supports: 5, 10. Default: 5 | 5 |
resolution | string | No | Video resolution, supports: "480p", "720p", "1080p". Default: "720p" | "720p" |
smart_rewrite | bool | No | Whether to enable smart prompt expansion. Default: false | true |
generate_audio | bool | No | Whether to generate audio synchronized with the video. Default: false | true |
audio_url | string | No | Custom audio file URL (HTTPS format) | "https://example.com/audio.mp3" |
seed | int | No | Random seed (for result reproduction), range: 0-2147483647 | 12345 |
{
"task_id": "ae8eb420-8aa6-440a-8eb8-1d1afe8d5e97",
"status": "submitted",
"format": "mp4",
"metadata": {
"model_price": 0.0738,
"requested_seconds": 5,
"billing_pending": true,
"group_ratio": 1,
"token_name": "nebula-video-generations-default",
"output": {
"task_id": "ae8eb420-8aa6-440a-8eb8-1d1afe8d5e97",
"task_status": "PENDING"
},
"request_id": "b356ad62-d35f-4f4b-9a6d-0787f6966a68"
}
}| Field Name | Type | Description |
|---|---|---|
task_id | string | Task ID, used for subsequent status queries |
status | string | Task status, initial value is "submitted" |
format | string | Video format, fixed as "mp4" |
metadata | object | Metadata information (billing, original response, etc.) |
GET /v1/video/generations/{task_id}Authorization: Bearer sk-xxxx| Parameter Name | Type | Required | Description |
|---|---|---|---|
task_id | string | Yes | Task ID (obtained from the submission response) |
{
"task_id": "ae8eb420-8aa6-440a-8eb8-1d1afe8d5e97",
"status": "in_progress",
"format": "mp4",
"metadata": {
"model_price": 0.0738,
"billing_pending": true,
"output": {
"task_status": "PENDING"
}
}
}{
"task_id": "ae8eb420-8aa6-440a-8eb8-1d1afe8d5e97",
"status": "in_progress",
"format": "mp4",
"metadata": {
"output": {
"task_status": "RUNNING"
}
}
}{
"task_id": "ae8eb420-8aa6-440a-8eb8-1d1afe8d5e97",
"status": "succeeded",
"format": "mp4",
"url": "https://dashscope-result-sh.oss-cn-shanghai.aliyuncs.com/.../video.mp4?Expires=...",
"metadata": {
"model_price": 0.0738,
"billing_pending": false,
"group_ratio": 1,
"usage": {
"video_count": 1,
"duration": 5,
"resolution": "720p"
},
"output": {
"task_status": "SUCCEEDED",
"video_url": "https://dashscope-result-sh.oss-cn-shanghai.aliyuncs.com/.../video.mp4",
"submit_time": "2025-11-04 19:15:11.819",
"end_time": "2025-11-04 19:16:40.291"
},
"request_id": "35549d8f-58e7-4c5c-a827-39a2f2d58a2d"
}
}{
"task_id": "ae8eb420-8aa6-440a-8eb8-1d1afe8d5e97",
"status": "failed",
"format": "mp4",
"metadata": {
"output": {
"task_status": "FAILED",
"code": "InvalidParameter.ImageFormat",
"message": "Image format not supported or incorrect format"
}
}
}| Status Value | Description | Progress |
|---|---|---|
submitted | Task submitted | Initial State |
in_progress | Task in progress (including queuing and executing) | Ongoing |
succeeded | Task completed successfully | Finished |
failed | Task failed | Finished |
in_progress, periodic polling is required (recommended every 3-5 seconds).succeeded, the url field contains the video download address (signed, valid for 24 hours).failed, check metadata.output.message for the reason for failure.| Value | Description | Billing |
|---|---|---|
5 | 5-second video (Recommended, Default) | Billed for 5 seconds |
10 | 10-second video | Billed for 10 seconds |
5.| Value | Resolution | Price (USD/sec) | 5s Cost | 10s Cost |
|---|---|---|---|---|
"480p" | 480P | $0.0369 | $0.1845 | $0.369 |
"720p" | 720P (Default) | $0.0738 | $0.369 | $0.738 |
"1080p" | 1080P | $0.1233 | $0.6165 | $1.233 |
"https://example.com/image.jpg""http://example.com/image.jpg""data:image/jpeg;base64,/9j/4AAQSkZJRg..."| Value | Description |
|---|---|
true | Enable smart expansion; the system will automatically optimize and enrich the prompt to improve video quality |
false | Disabled (Default); generates strictly according to the original prompt |
| Value | Description |
|---|---|
true | Automatically generate audio synchronized with the visual (e.g., ambient sounds, action sound effects) |
false | Do not generate audio (Default) |
audio_url is provided simultaneously, generate_audio will be ignored.Cost = Resolution Price (USD/sec) × Video Duration (sec) × Group Ratio| Resolution | Duration | Unit Price | Total Cost | Approx CNY |
|---|---|---|---|---|
| 480P | 5s | $0.0369/sec | $0.1845 | ¥1.33 |
| 720P | 5s | $0.0738/sec | $0.369 | ¥2.66 |
| 1080P | 5s | $0.1233/sec | $0.6165 | ¥4.44 |
| 480P | 10s | $0.0369/sec | $0.369 | ¥2.66 |
| 720P | 10s | $0.0738/sec | $0.738 | ¥5.32 |
| 1080P | 10s | $0.1233/sec | $1.233 | ¥8.88 |
| HTTP Status Code | Error Code | Description | Solution |
|---|---|---|---|
| 400 | InvalidParameter.ImageFormat | Image format not supported | Use JPEG or PNG format |
| 400 | InvalidParameter.ImageSize | Image size exceeds limit | Compress image to under 5MB |
| 400 | InvalidParameter.DataInspection | Content moderation failed | Check image and prompt content |
| 401 | InvalidApiKey | Invalid API Key | Check Authorization header |
| 403 | InsufficientQuota | Insufficient balance | Recharge and retry |
| 429 | Throttling.RateLimit | Request frequency too high | Reduce request frequency |
| 500 | InternalError | Internal Server Error | Retry later |
{
"code": "fail_to_fetch_task",
"message": "{\"request_id\":\"167c0805-d44d-4f5c-8b8f-d4c628a18b81\",\"code\":\"InvalidParameter.ImageFormat\",\"message\":\"Image format not supported or incorrect format\"}",
"data": null
}generate_audio: true (Auto-generate audio).audio_url (Custom audio).smart_rewrite feature.