This commit is contained in:
yumoqing 2026-04-01 15:55:41 +08:00
parent 2f99a00991
commit fb2c6383f9

View File

@ -115,6 +115,21 @@ data: [DONE]
| duration | integer | 否 | `12` | 视频长度。视频时长(秒)。 |
### 例子
使用seedance的例子
```
#!/usr/bin/env bash
# "model": "doubao-seedance-1-5-pro-251215",
curl -X POST https://opencomputing.ai/llmage/video \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <your-apikey-from-opencomputing.ai" \
-d '{
"llmid": "CrEMkFQfRCmbmopZsCqLj",
"prompt": "小猫在抓老鼠",
"duration": 5,
"radio": "16:9",
"resolution": "480p"
}'
```
## 图生视频
| 模型id | 供应商 | 模型名 |
@ -159,7 +174,9 @@ data: [DONE]
| image_file2 | string | 否 | - | 尾帧图片。视频结束的画面URL 或 Base64。 |
### 例子
使用seedance的例子
```
```
## 参考生视频
| 模型id | 供应商 | 模型名 |
|--------|--------|--------|
@ -211,9 +228,9 @@ data: [DONE]
}
```
### 查询任务状态
## 查询任务状态
* path /llmage/tasks
* method POST
* method GET
* headers
```
{
@ -261,6 +278,14 @@ data: [DONE]
}
```
### 例子
```
#!/usr/bin/env bash
# "model": "doubao-seedance-1-5-pro-251215",
curl -X GET https://opencomputing.ai/llmage/tasks?taskid=$1 \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <your-apikey-from-opencomputing.ai>"
```
## 错误信息
* 401: {"error": "Invalid API Key"}