- 🔥最新公告
- OpenAI SDK教程
- 聊天(OpenAIChat)
- AnthropicClaude
- 火山引擎API
- 图像(Images)
- 视频生成(Videos)
- 视频生成
- sora
- 数字人系列-对口型(lipsync)
- Runway(官方格式)
- Luma(官方格式)
- 可灵API(官方格式)
- 智谱清影(Cogvideox官方格式)
- 可灵2.0(通用格式)
- 即梦视频 3.0
- 音频(Audio)
- 嵌入(RAG-Embeddings)
- 重排序(RAG-Reranker)
- 对象存储+文件解析(Files)
- 内容审查(Moderations)
- 助手测试版(AssistantsBeta)待开发
- 线程数(Threads)待开发
- 留言(Messages)待开发
- 运行(Runs)待开发
- 批量API(Batch API)待开发
- 微调(Fine-tuning)待开发
- 🔥AI 工具
- 文档智能&图片处理
- AI产品配置教程
- 教程类
- 系统API
- Midjourney
- 未命名接口POST
- 未命名接口POST
获取任务
GET
https://api.chatfire.cn/tasks/{task_id}
最后修改时间:2025-01-30 15:09:37
责任人:未设置
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Path 参数
task_id
string
任务ID
示例值:
kling-28430450
示例代码
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'
返回响应
🟢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": 29460420,
"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": 1721124229764,
"updateTime": 1721124507514
},
"works": [
{
"workId": 34390150,
"workItemId": 0,
"taskId": 29460420,
"userId": 1326278356,
"type": "m2v_txt2video",
"status": 99,
"contentType": "video",
"resource": {
"resource": "https://p2.a.kwimgs.com/bs2/upload-ylab-stunt/special-effect/output/HB1_PROD_ai_web_34390150/-5422171091882741167/output_ffmpeg.mp4",
"height": 720,
"width": 1280,
"duration": 5100
},
"cover": {
"resource": "https://h2.inkwai.com/bs2/upload-ylab-stunt/special-effect/output/da99282b-9824-4bfb-9221-490cb14e002f/7708725896756126260/output.jpg",
"height": 720,
"width": 1280,
"duration": 0
},
"starNum": 0,
"reportNum": 0,
"createTime": 1721124229771,
"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,
16,
18,
11,
57,
922709000
]
}
修改于 2025-01-30 15:09:37