- 🔥最新公告
- 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 09:54:43
责任人:未设置
请求参数
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
status
integer
必需
message
string
必需
data
object
必需
status
integer
必需
etaTime
integer
必需
message
string
必需
task
object
必需
works
array [object {19}]
必需
timestamp
array[integer]
可选
示例
{
"status": 200,
"message": "成功",
"data": {
"status": 99,
"etaTime": 0,
"message": "",
"task": {
"id": 28430450,
"userId": 1326278356,
"type": "m2v_txt2video",
"status": 99,
"taskInfo": {
"type": "m2v_txt2video",
"inputs": [],
"arguments": [
{
"name": "prompt",
"value": "一只可爱的黑白边境牧羊犬,头伸出车窗,毛发被风吹动,微笑着伸出舌头"
},
{
"name": "negative_prompt",
"value": ""
},
{
"name": "duration",
"value": "5"
},
{
"name": "aspect_ratio",
"value": "16:9"
},
{
"name": "cfg",
"value": "0.5"
},
{
"name": "camera_json",
"value": "{\"type\": \"empty\", \"horizontal\": 0.0, \"vertical\": 0.0, \"zoom\": 0.0, \"tilt\": 0.0, \"pan\": 0.0, \"roll\": 0.0}"
},
{
"name": "tail_image_enabled",
"value": "false"
},
{
"name": "biz",
"value": "klingai"
}
]
},
"favored": false,
"deleted": false,
"createTime": 1720776759691,
"updateTime": 1720777047355
},
"works": [
{
"workId": 31199871,
"workItemId": 0,
"taskId": 28430450,
"userId": 1326278356,
"type": "m2v_txt2video",
"status": 99,
"contentType": "video",
"resource": {
"resource": "https://p1.a.kwimgs.com/bs2/upload-ylab-stunt/special-effect/output/HB1_PROD_ai_web_31199871/685408188778288330/output_ffmpeg.mp4",
"height": 720,
"width": 1280,
"duration": 5100
},
"cover": {
"resource": "https://h1.inkwai.com/bs2/upload-ylab-stunt/special-effect/output/17757560-13a4-43ba-81a4-98afe383974a/-6876869097152656476/output.jpg",
"height": 720,
"width": 1280,
"duration": 0
},
"starNum": 0,
"reportNum": 0,
"createTime": 1720776759696,
"taskInfo": {
"type": "m2v_txt2video",
"inputs": [],
"arguments": [
{
"name": "prompt",
"value": "一只可爱的黑白边境牧羊犬,头伸出车窗,毛发被风吹动,微笑着伸出舌头"
},
{
"name": "negative_prompt",
"value": ""
},
{
"name": "duration",
"value": "5"
},
{
"name": "aspect_ratio",
"value": "16:9"
},
{
"name": "cfg",
"value": "0.5"
},
{
"name": "camera_json",
"value": "{\"type\": \"empty\", \"horizontal\": 0.0, \"vertical\": 0.0, \"zoom\": 0.0, \"tilt\": 0.0, \"pan\": 0.0, \"roll\": 0.0}"
},
{
"name": "tail_image_enabled",
"value": "false"
},
{
"name": "biz",
"value": "klingai"
}
]
},
"selfAttitude": "unknown",
"selfComment": {
"tags": [],
"content": ""
},
"favored": false,
"starred": false,
"publishStatus": "unpublished",
"deleted": false
}
]
},
"timestamp": [
2024,
7,
12,
18,
0,
9,
568133000
]
}
修改于 2024-07-16 09:54:43