- GET START
- OpenAI Compatiable Endpoint
- Audio
- Anthropic Compatiable Endpoint
- Music Generation Endpoint
- Image Generation Endpoint
- Video Generation Ednpoint
- runway(video)
- PIKA(video)
- luma (video)
- kling (video)
- MiniMax Conch(video)
- sora
- Official Format
- Reverse Format
- Software Integration Guide
- cometapi Site API Call Testing
- OpenManus
- Chatbox
- CherryStudio
- Cursor
- ChatHub
- cline
- dify
- gptme
- Immersive Translation
- Lobe-Chat
- Zotero
- LangChain
- AnythingLLM
- Eudic Translation
- OpenAI Translator
- ChatAll Translation
- Pot Translation
- GPT Academic Optimization (gpt_academic)
- NEXT CHAT (ChatGPT Next Web)
- Obsidian's Text Generator Plugin
- Open WebUI
- avante.nvim
- librechat
- Lazy Customer Service
- utools-ChatGPT Friend
- IntelliJ Translation Plugin
- n8n
Create Video
Developing
POST
https://api.comet.com/sora/v1/videos
Maintainer:Not configured
Request
Header Params
Authorization
string
optional
Example:
Bearer {{api-key}}
Body Params application/json
type
string
required
prompt
string
required
n_variants
integer
required
n_frames
integer
required
height
integer
required
width
integer
required
style
string
required
inpaint_items
array [object {1}]
required
url
string
optional
operation
string
required
Example
{
"type": "video_gen",
"prompt": "fly man",
"n_variants": 1,
"n_frames": 150,
"height": 480,
"width": 854,
"style": "natural",
"inpaint_items": [
{
"url": "https://cdn.klingai.com/bs2/upload-kling-api/6714386367/image/CjJC9Wf0yicAAAAAADcwGw-0_raw_image_0.png"
}
],
"operation": "simple_compose"
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.comet.com/sora/v1/videos' \
--header 'Authorization: Bearer {{api-key}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"type": "video_gen",
"prompt": "fly man",
"n_variants": 1,
"n_frames": 150,
"height": 480,
"width": 854,
"style": "natural",
"inpaint_items": [
{
"url": "https://cdn.klingai.com/bs2/upload-kling-api/6714386367/image/CjJC9Wf0yicAAAAAADcwGw-0_raw_image_0.png"
}
],
"operation": "simple_compose"
}'
Responses
🟢200成功
application/json
Body
code
string
required
message
string
required
data
string
required
Example
{
"code": "success",
"message": "",
"data": "task_01jryr7zqnecna1nepv0whpfhg"
}