- 🔥最新公告
- OpenAI SDK教程
- 聊天(OpenAIChat)
- AnthropicClaude
- 图像(Images)
- 视频生成(Videos)
- 视频生成
- sora
- 数字人系列-对口型(lipsync)
- Runway(官方格式)
- Luma(官方格式)
- 可灵API(官方格式)
- 智谱清影(Cogvideox官方格式)
- 音频(Audio)
- 嵌入(RAG-Embeddings)
- 重排序(RAG-Reranker)
- 对象存储+文件解析(Files)
- 内容审查(Moderations)
- 助手测试版(AssistantsBeta)待开发
- 线程数(Threads)待开发
- 留言(Messages)待开发
- 运行(Runs)待开发
- 批量API(Batch API)待开发
- 微调(Fine-tuning)待开发
- 🔥AI 工具
- 文档智能&图片处理
- AI产品配置教程
- 教程类
- 系统API
- 视频生成
- Midjourney
- Recraft(图片)
- 未命名接口POST
- 未命名接口POST
获取任务
正式环境
正式环境
GET
https://api.chatfire.cn/tasks/{task_id}
最后修改时间:2024-07-16 10:23:12
责任人:未设置
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Path 参数
task_id
string
任务ID
示例值:
kling-28430450
Header 参数
Authorization
string
必需
示例值:
Bearer sk-u7odHHKIOmtCAhKC7031E41cB412458bBa5aB4B568356bD
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.chatfire.cn/tasks/kling-28430450' \
--header 'Authorization: Bearer sk-u7odHHKIOmtCAhKC7031E41cB412458bBa5aB4B568356bD'
返回响应
🟢200成功
application/json
Body
task
object
必需
id
string
必需
name
string
必需
image
null
必需
createdAt
string
必需
updatedAt
string
必需
taskType
string
必需
options
object
必需
status
string
必需
error
null
必需
progressText
null
必需
progressRatio
null
必需
estimatedTimeToStartSeconds
number
必需
artifacts
array[string]
必需
sharedAsset
null
必需
示例
{
"task": {
"id": "e7583ad8-1b29-43af-982b-1f89daa59202",
"name": "Gen-3 Alpha 文生视频",
"image": null,
"createdAt": "2024-07-25T02:48:33.892Z",
"updatedAt": "2024-07-25T02:48:33.934Z",
"taskType": "gen3a",
"options": {
"name": "Gen-3 Alpha 文生视频",
"assetGroupName": "Generative Video",
"text_prompt": "童话里的世界,如同一个缤纷的调色盘,各种色彩交织在一起,组成了一幅美丽的画卷。那里有翠绿如茵的森林、湛蓝如海的天空、缤纷如梦的城堡,还有各种各样让人惊奇的生物。",
"seconds": 10,
"watermark": false,
"exploreMode": true,
"enhance_prompt": true,
"width": 1280,
"height": 768,
"recordingEnabled": true
},
"status": "PENDING",
"error": null,
"progressText": null,
"progressRatio": null,
"estimatedTimeToStartSeconds": 41.76,
"artifacts": [],
"sharedAsset": null
}
}
修改于 2024-07-16 10:23:12