- GET START
- OpenAI Compatiable Endpoint
- Audio
- Anthropic Compatiable Endpoint
- Music Generation Endpoint
- Image Generation Endpoint
- Video Generation Ednpoint
- 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
Images
POST
https://api.cometapi.com/v1/images/generations
Maintainer:Not configured
Generate Images#
Request Body#
Request
Header Params
Authorization
string
required
Example:
Bearer {{api-key}}
Body Params application/json
model
string
required
prompt
string
required
n
integer
required
size
string
required
Example
{
"model": "dall-e-3",
"prompt": "A cute baby sea otter",
"n": 1,
"size": "1024x1024"
}
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/images/generations' \
--header 'Authorization: Bearer {{api-key}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "dall-e-3",
"prompt": "A cute baby sea otter",
"n": 1,
"size": "1024x1024"
}'
Responses
🟢200Successful Response
text/plain
Body
created
integer
required
data
array [object {2}]
required
revised_prompt
string
optional
url
string
optional
Example
{
"created": 1737352021,
"data": [
{
"revised_prompt": "A small and adorable sea otter pup. It's floating on its back in a tranquil, azure sea, sunlight streaming down on its thick, wet fur. The otter pup is contentedly munching on a bright pink shrimp, holding it between its little paws while remaining completely buoyant, displaying its nimble acrobatic skills that come naturally to its species. The pup's eyes are bright with curiosity and innocence, exploring the vast sea around it while enjoying its meal. The blue-green water around it is dancing with the sunlight, creating a serene environment for the otter pup's mealtime.",
"url": "https://oaidalleapiprodscus.blob.core.windows.net/private/org-nRhUPivdBTlVXzF8KaZBo9vY/user-IuAvdMlDArmYuupuySzt6BqQ/img-AtYEsUJaP70OFEPyqFbSuxSE.png?st=2025-01-20T04%3A47%3A01Z&se=2025-01-20T06%3A47%3A01Z&sp=r&sv=2024-08-04&sr=b&rscd=inline&rsct=image/png&skoid=d505667d-d6c1-4a0a-bac7-5c84a87759f8&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2025-01-20T00%3A45%3A01Z&ske=2025-01-21T00%3A45%3A01Z&sks=b&skv=2024-08-04&sig=Op4s4mFKwrX6i/O43KZ/23EAWY2LnQTfY2ooxaFZNM0%3D"
}
]
}