- 🔥最新公告
- 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
创建任务
开发中
正式环境
正式环境
POST
https://api.chatfire.cn/tasks/{task_type}
最后修改时间:2024-07-16 09:54:43
责任人:未设置
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Path 参数
task_type
string
必需
示例值:
kling
Header 参数
Content-Type
string
必需
示例值:
application/json
Body 参数application/json
aspect_ratio
string
必需
camera
object
必需
horizontal
integer
必需
pan
integer
必需
roll
integer
必需
tilt
integer
必需
type
string
必需
vertical
integer
必需
zoom
integer
必需
cfg
number
必需
duration
integer
必需
negative_prompt
string
必需
prompt
string
必需
tail_image_url
string
必需
url
string
必需
示例
{
"aspect_ratio": "16:9",
"camera": {
"horizontal": 0,
"pan": 0,
"roll": 0,
"tilt": 0,
"type": "empty",
"vertical": 0,
"zoom": 0
},
"cfg": 0.5,
"duration": 5,
"negative_prompt": "",
"prompt": "一只可爱的黑白边境牧羊犬,头伸出车窗,毛发被风吹动,微笑着伸出舌头",
"tail_image_url": "",
"url": ""
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.chatfire.cn/tasks/kling' \
--header 'Content-Type: application/json' \
--data-raw '{
"aspect_ratio": "16:9",
"camera": {
"horizontal": 0,
"pan": 0,
"roll": 0,
"tilt": 0,
"type": "empty",
"vertical": 0,
"zoom": 0
},
"cfg": 0.5,
"duration": 5,
"negative_prompt": "",
"prompt": "一只可爱的黑白边境牧羊犬,头伸出车窗,毛发被风吹动,微笑着伸出舌头",
"tail_image_url": "",
"url": ""
}'
返回响应
🟢200成功
application/json
Body
id
string
必需
status
string
必需
data
null
必需
metadata
null
必需
description
null
必需
created_at
integer
必需
示例
{
"id": "kling-28441052",
"status": "success",
"data": null,
"metadata": null,
"description": null,
"created_at": 1720778873
}
修改于 2024-07-16 09:54:43