POST
/
ideogram
/
text-to-image
curl -X POST https://api.example.com/ideogram/text-to-image \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A magical forest"
  }'
Generate images from text using the Ideogram model.

Request Parameters

prompt
string
required
Image description prompt.
aspect_ratio
string
Aspect ratio.
curl -X POST https://api.example.com/ideogram/text-to-image \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A magical forest"
  }'