POST
/
ideogram
/
generate
curl -X POST https://api.example.com/ideogram/generate \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A futuristic city at sunset",
    "aspect_ratio": "16:9"
  }'
{
  "created": 1699000000,
  "data": [
    {
      "url": "https://example.com/generated-image.png",
      "seed": 1234567890
    }
  ]
}
Generate images from text using the Ideogram Generate 3.0 model.

Request Parameters

prompt
string
required
Image description prompt.
aspect_ratio
string
Aspect ratio. Options: 1:1, 16:9, 9:16, 4:3, 3:4, etc.
model
string
Model version.
style_type
string
Style type.
negative_prompt
string
Negative prompt.
curl -X POST https://api.example.com/ideogram/generate \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A futuristic city at sunset",
    "aspect_ratio": "16:9"
  }'
{
  "created": 1699000000,
  "data": [
    {
      "url": "https://example.com/generated-image.png",
      "seed": 1234567890
    }
  ]
}