Skip to content

Ideogram V4.0q LoRA Trainer

Integrate

Model id ideogram/v4/trainer
# 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/trainer?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "images_data_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  }'

# 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: $6.75 6,750 API credits · ≈ ₽719.32 Run it on this page

Get API key
Ideogram · File

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

Training-data ZIP URL containing images and captions, with each caption stored in a .txt file sharing its image's filename stem. The trainer works from the target-only dataset that prepare_dataset_dir prepares.

default auto

Training image dimensions, specified as a preset, auto, or a custom WIDTHxHEIGHT string with each dimension divisible by 16. Center cropping never upscales images; auto selects the largest crop the dataset shares that needs no enlargement. Presets are 1024x1024 (square), 1536x1024 (landscape), 1024x1536 (portrait), 1920x1088 (widescreen), 2048x768 (ultrawide), 1024x1792 (phone_wallpaper), and 1584x400 (social_banner).

default 1000

Step count for LoRA training.

Advanced default_caption · learning_rate

Caption applied to every image when force_default_caption is true, overriding caption files; otherwise, it serves only images lacking a caption file.

default 0.0001
POST /run/ideogram/v4/trainer?wait=20 quote → $6.75
# 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/trainer?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "images_data_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  }'

# 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.0q LoRA Trainer

Fits a LoRA on your own dataset for personalization or a particular style. `images_data_url` points to a zip of images, with captions read from same-name .txt files, and `default_caption` fills in missing ones. `steps` ranges from 100 to 40000 (default 1000), and `learning_rate` and `resolution` are adjustable. Returns the LoRA weights file and a config file.

Parameters

NameType DefaultAllowed Description
images_data_urlrequired
Typestring
Training-data ZIP URL containing images and captions, with each caption stored in a .txt file sharing its image's filename stem. The trainer works from the target-only dataset that prepare_dataset_dir prepares.
stepsoptional
Typeinteger
Default1000
100 – 40,000
Step count for LoRA training.
default_captionoptional
Typestring | null
Caption applied to every image when force_default_caption is true, overriding caption files; otherwise, it serves only images lacking a caption file.
resolutionoptional
Typestring
Defaultauto
Training image dimensions, specified as a preset, auto, or a custom WIDTHxHEIGHT string with each dimension divisible by 16. Center cropping never upscales images; auto selects the largest crop the dataset shares that needs no enlargement. Presets are 1024x1024 (square), 1536x1024 (landscape), 1024x1536 (portrait), 1920x1088 (widescreen), 2048x768 (ultrawide), 1024x1792 (phone_wallpaper), and 1584x400 (social_banner).
learning_rateoptional
Typenumber
Default0.0001
0.000001 – 0.01
required

Output

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "ideogram/v4/trainer",
  "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": 6750,
    "usd": "6.75",
    "charged": 6750,
    "refunded": 0
  },
  "input": {
    "images_data_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  },
  "output": {
    "diffusers_lora_file": {
      "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
    },
    "config_file": {
      "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
    }
  },
  "outputs": [
    {
      "type": "file",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_size": 1843200,
      "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
diffusers_lora_file
object {url, content_type, file_name, file_size}URL for the Ideogram V4 LoRA weights produced by training.
config_file
object {url, content_type, file_name, file_size}URL for the publicly available training configuration.

More models: Training

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