- GET START
- OpenAI Compatiable Endpoint
- Audio
- Anthropic Compatiable Endpoint
- Music Generation Endpoint
- Image Generation Endpoint
- Midjourney(images)
- Ideogram(images)
- Flux(images)
- Replicate(image)
- Recraft(images)
- 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
ideogram Text Raw Image
Testing
POST
https://api.cometapi.com/ideogram/generate
Maintainer:Not configured
Generates images synchronously based on a given prompt and optional parameters.
The returned image URLs are valid for 24 hours, after which the images cannot be accessed.
The image URLs are the original official links, so please note that they are accessible in your network environment.
Request
Header Params
Authorization
string
optional
Example:
{{api-key}}
Body Params application/json
image_request
object
required
prompt
string
required
aspect_ratio
string
optional
Default:
ASPECT_1_1
model
enum<string>
optional
Allowed values:
V_1V_1_TURBOV_2V_2_TURBO
Default:
V_2
magic_prompt_option
enum<string>
optional
Allowed values:
AUTOONOFF
Default:
AUTO
seed
integer
optional
style_type
enum<string>
optional
Allowed values:
GENERALREALISTICDESIGNRENDER_3DANIME
num_images
string
optional
negative_prompt
string
optional
resolution
string
optional
Example:
RESOLUTION_832_1152
Example
{
"image_request": {
"model": "V_2_TURBO",
"magic_prompt_option": "AUTO",
"seed": 111,
"prompt": "cat",
"num_images": 1
}
}
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/ideogram/generate' \
--header 'Authorization: {{api-key}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"image_request": {
"model": "V_2_TURBO",
"magic_prompt_option": "AUTO",
"seed": 111,
"prompt": "cat",
"num_images": 1
}
}'
Responses
🟢200OK
application/json
Body
data
array [object {5}]
required
seed
integer
required
prompt
string
required
resolution
string
required
url
string
required
is_image_safe
boolean
required
created
string
required
Example
{
"data": [
{
"seed": 12345,
"prompt": "A serene tropical beach scene. Dominating the foreground are tall palm trees with lush green leaves, standing tall against a backdrop of a sandy beach. The beach leads to the azure waters of the sea, which gently kisses the shoreline. In the distance, there's an island or landmass with a silhouette of what appears to be a lighthouse or tower. The sky above is painted with fluffy white clouds, some of which are tinged with hues of pink and orange, suggesting either a sunrise or sunset.",
"resolution": "1024x1024",
"url": "https://ideogram.ai/api/images/direct/8YEpFzHuS-S6xXEGmCsf7g",
"is_image_safe": true
},
{
"seed": 12345,
"prompt": "A serene tropical beach scene. Dominating the foreground are tall palm trees with lush green leaves, standing tall against a backdrop of a sandy beach. The beach leads to the azure waters of the sea, which gently kisses the shoreline. In the distance, there's an island or landmass with a silhouette of what appears to be a lighthouse or tower. The sky above is painted with fluffy white clouds, some of which are tinged with hues of pink and orange, suggesting either a sunrise or sunset.",
"resolution": "1024x1024",
"url": "https://ideogram.ai/api/images/direct/8YEpFzHuS-S6xXEGmCsf7g",
"is_image_safe": true
}
],
"created": "2000-01-23T04:56:07.000Z"
}