- GET START
- OpenAI Compatiable Endpoint
- Audio
- Anthropic Compatiable Endpoint
- Music Generation Endpoint
- Image Generation Endpoint
- Midjourney(images)
- Ideogram(images)
- Official documentation (updated in real time)
- Generate 3.0 (text to image)
- Remix 3.0 (hybrid image)
- Reframe 3.0(Reconstruction)
- Replace Background 3.0(Background replacement)
- Edit 3.0(Editing images)
- ideogram Text Raw Image
- ideogram Hybrid image
- ideogram enlargement HD
- ideogram describes the image
- ideogram Edit image((legacy))
- Flux(images)
- Replicate(image)
- Recraft(images)
- Video Generation Ednpoint
- Software Integration Guide
- cometapi Site API Call Testing
- OpenManus
- Chatbox
- CherryStudio
- Cursor
- ChatHub
- COZE
- FastGPT
- 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
response
POST
https://api.cometapi.com/v1/responses
Maintainer:Not configured
Request
Header Params
Authorization
string
required
Example:
Bearer {{api-key}}
Body Params application/json
model
string
required
Default:
o3-pro
input
array [object {2}]
required
role
string
required
content
string
required
Example
{
"model": "o3-pro",
"input": [
{
"role": "user",
"content": "say yes"
}
]
}
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.cometapi.com/v1/responses' \
--header 'Authorization: Bearer {{api-key}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "o3-pro",
"input": [
{
"role": "user",
"content": "say yes"
}
]
}'
Responses
🟢200Successful Response
application/json
Body
id
string
required
object
string
required
created
integer
required
model
string
required
system_fingerprint
string
required
choices
array [object {3}]
required
index
integer
optional
message
object
optional
finish_reason
string
optional
usage
object
required
completion_tokens
integer
required
completion_tokens_details
object
required
prompt_tokens
integer
required
prompt_tokens_details
object
required
total_tokens
integer
required
Example
{
"id": "chatcmpl-AreYSBEwmzB0kY3GxzBEhE1Olct83",
"object": "chat.completion",
"created": 1737350640,
"model": "o3-pro",
"system_fingerprint": "fp_f3927aa00d",
"choices": [
{
"index": 0,
"message": {
"content": "Hello! How can I assist you today?",
"role": "assistant"
},
"finish_reason": "stop"
}
],
"usage": {
"completion_tokens": 9,
"completion_tokens_details": {},
"prompt_tokens": 9,
"prompt_tokens_details": {},
"total_tokens": 18
}
}