- 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/v1/chat/completions
Maintainer:Not configured
Request
Header Params
Authorization
string
optional
Example:
{{api-key}}
Body Params application/json
model
string
required
stream
boolean
required
messages
array [object {2}]
required
role
string
optional
content
string
optional
Example
{
"model": "sora-1:1-480p-5s",
"stream": true,
"messages": [
{
"role": "user",
"content": "a cat"
}
]
}
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/v1/chat/completions' \
--header 'Authorization: {{api-key}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "sora-1:1-480p-5s",
"stream": true,
"messages": [
{
"role": "user",
"content": "a cat"
}
]
}'
Responses
🟢200成功
application/json
Body
code
integer
required
msg
string
required
Example
{
"code": 0,
"msg": "string"
}