Skip to content

Ideogram V4.0 Text to Image

Integrate

Model id ideogram/v4
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/ideogram/v4?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Files like the example: $0.015 15 API credits · ≈ ₽1.58 your files are measured before the run Run it on this page

Get API key
Ideogram Text to Image #realism#typography#stylized

Ideogram V4 text-to-image with selectable prompt expansion, speed and acceleration, up to 4 images

Ideogram · Image

Your first result goes here

Build a request below and run it with your API key. Outputs are copied to our storage, kept forever or 7 days for free.

Build a request

Controls are generated from the model schema. The code and the price update as you change them.

•required

Prompt that guides image generation.

image_size default square_hd

Resolution for the image being generated.

rendering_speed default BALANCED

Rendering speed setting; faster options perform fewer denoising steps.

num_images default 1

Count of images to produce.

Advanced expansion_model · acceleration · output_format · seed · enable_safety_checker
expansion_model default Medium

Choose the prompt-expansion model: 'Large' provides the highest quality through Ideogram's Magic Prompt, while 'Medium' prioritizes speed. Select 'None' to leave the prompt unexpanded.

acceleration default none

Acceleration setting for generating images.

output_format default jpeg

File format for the resulting image.

Seed for generation, selected randomly unless you supply a value.

POST /run/ideogram/v4?wait=20 quote → $0.015
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/ideogram/v4?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Run this request

Your key stays in this browser: it is sent only to the Doitong API and saved (localStorage) only if you tick Remember. Get an API key

About Ideogram V4.0 Text to Image

Generates images from a `prompt`. `expansion_model` can be None, Medium or Large, and `rendering_speed` TURBO, BALANCED or QUALITY, with an extra `acceleration` setting from none to high. Returns 1 to 4 images as JPEG or PNG in size presets. This is the fullest-featured V4 text-to-image option.

Parameters

Send either the canonical name or the native name, not both. Canonical names

NameType DefaultAllowed Description
promptrequired
Typestring
Prompt that guides image generation.
expansion_modeloptional
Typeenum
DefaultMedium
NoneMediumLarge
Choose the prompt-expansion model: 'Large' provides the highest quality through Ideogram's Magic Prompt, while 'Medium' prioritizes speed. Select 'None' to leave the prompt unexpanded.
image_sizeoptional
Typeobject
Defaultsquare_hd
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9
Resolution for the image being generated.
rendering_speedoptional
Typeenum
DefaultBALANCED
TURBOBALANCEDQUALITY
Rendering speed setting; faster options perform fewer denoising steps.
accelerationoptional
Typeenum
Defaultnone
nonelowregularhigh
Acceleration setting for generating images.
num_imagesoptional num_outputs
Typeinteger
Default1
1 – 4
Count of images to produce.
seedoptional
Typeinteger | null
Seed for generation, selected randomly unless you supply a value.
enable_safety_checkeroptional
Typeboolean
Defaulttrue
Safety-checking switch whose off setting requires account authorization. Without that authorization, every request is checked regardless of the setting; true enables the checker.
output_formatoptional
Typeenum
Defaultjpeg
jpegpng
File format for the resulting image.
required Canonical name, also accepted

Output

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "ideogram/v4",
  "status": "succeeded",
  "created_at": "2026-10-20T12:00:00Z",
  "started_at": "2026-10-20T12:00:02Z",
  "completed_at": "2026-10-20T12:00:09Z",
  "queue_position": null,
  "cost": {
    "credits": 15,
    "usd": "0.015",
    "charged": 15,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  },
  "output": {
    "images": [
      {
        "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
        "content_type": "image/jpeg",
        "file_name": "0-output.jpeg",
        "file_size": 1843200,
        "width": 1024,
        "height": 768
      }
    ],
    "timings": {},
    "seed": 42,
    "has_nsfw_concepts": [
      false
    ],
    "prompt": "string"
  },
  "outputs": [
    {
      "type": "image",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_size": 1843200,
      "width": 1024,
      "height": 768,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://api.doitong.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
Your files, your choiceEvery outputs[].url is a copy on our storage: kept forever (paid per GB-month) or 7 days for free, by your account setting or ?storage=.
Same shape on every modeltype, url, content_type, width, height and duration, for images, video and audio alike. output is the model’s own result object.
Fields of output
images
array of object {url, content_type, file_name, file_size, width, height}Images produced by the model.
timings
object
seed
integerImage-generation seed, including the randomly chosen value if the input omitted a seed; otherwise, it repeats the supplied value.
has_nsfw_concepts
array of booleanIndicates whether NSFW concepts appear in the generated images.
prompt
stringPrompt used during image generation.

More models: Text to Image

For AI agents: this page as Markdown is at https://doitong.com/en-US/developers/models/ideogram/v4.md. All models and guides: https://doitong.com/developers/llms.txt