Skip to content

Ideogram · Custom Models · Generate

Integrate

Model id ideogram/custom-models/generate
# 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/custom-models/generate?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model_id": "your-model-id",
    "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"

This request: $0.06 60 API credits · ≈ ₽6.33 Run it on this page

Get API key
Ideogram Text to Image #stylized#transform

Generates images from a trained custom Ideogram model identified by model_id

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

Text description of the desired output image.

rendering_speed default BALANCED

Speed setting for rendering.

•required

Custom-model ID from /train, accepted only after the model reaches training status COMPLETED.

default 1:1

Aspect ratio for the resulting image.

num_images default 1

Count of images to produce.

Advanced negative_prompt · seed · expand_prompt · enable_safety_checker
default

Specify image content to exclude, with these negative-prompt descriptions subordinate to any descriptions in the main prompt.

Seed used by the random-number generator.

POST /run/ideogram/custom-models/generate?wait=20 quote → $0.06
# 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/custom-models/generate?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model_id": "your-model-id",
    "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 · Custom Models · Generate

Text-to-image using a custom model that has finished training, referenced by `model_id`, plus a `prompt`. `aspect_ratio` has 15 options, `rendering_speed` is TURBO, BALANCED or QUALITY, and `num_images` ranges 1-8. Also supports `negative_prompt`, `expand_prompt` and `seed`.

Parameters

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

NameType DefaultAllowed Description
model_idrequired
Typestring
Custom-model ID from /train, accepted only after the model reaches training status COMPLETED.
promptrequired
Typestring
Text description of the desired output image.
aspect_ratiooptional
Typeenum
Default1:1
1:33:11:22:19:1616:910:1616:102:33:23:44:34:55:41:1
Aspect ratio for the resulting image.
rendering_speedoptional
Typeenum
DefaultBALANCED
TURBOBALANCEDQUALITY
Speed setting for rendering.
num_imagesoptional num_outputs
Typeinteger
Default1
1 – 8
Count of images to produce.
negative_promptoptional
Typestring
Default
Specify image content to exclude, with these negative-prompt descriptions subordinate to any descriptions in the main prompt.
expand_promptoptional
Typeboolean
Defaulttrue
Controls whether MagicPrompt expands the prompt.
seedoptional
Typeinteger | null
Seed used by the random-number generator.
enable_safety_checkeroptional
Typeboolean
Defaulttrue
Screening can be relaxed by setting false, provided the caller is authorized.
required Canonical name, also accepted

Output

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "ideogram/custom-models/generate",
  "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": 60,
    "usd": "0.06",
    "charged": 60,
    "refunded": 0
  },
  "input": {
    "model_id": "your-model-id",
    "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
      }
    ],
    "seed": 42
  },
  "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}Images produced by the model.
seed
integerSeed value used for random number generation.

More models: Text to Image

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