# Custom Model Training API | Ideogram

Ideogram publishes a public search API over its indexed pages; the guide is at https://ideogram.toolspoint.net/agents/agent-access.

Source: https://ideogram.toolspoint.net/features/custom-models/api/
Source observed: 2026-12-03T22:05:43.853Z
Last checked: 2026-12-03T22:05:43.853+00:00
Indexed: 2026-12-03T22:35:45.55+00:00

---

# Custom Model Training API

We provide the Ideogram Custom Branded Models API for programmatically creating datasets, uploading training images, training custom models, checking training status, and generating images at scale.

## Overview

Custom model training lets you fine-tune an Ideogram model on your own image dataset through the API. When training finishes, generate images by passing the returned `custom_model_uri` to a Generate endpoint. The API workflow trains custom Ideogram 3.0 models; custom model generation endpoints are also available for Ideogram 4.0. To train through our app instead, use [Custom Image Models](https://ideogram.toolspoint.net/features/custom-models/).

The workflow is:

1. Create a dataset.
2. Upload images and optional captions.
3. Train the model.
4. Check the training status.
5. Generate images with the completed model.

## Endpoint reference

Dataset, training, and model endpoints use the [v1 API](https://developer.ideogram.ai/v1/api-reference/custom-model-training/train-model). Generation with a trained model uses the [v2 API](https://developer.ideogram.ai/v2/api-reference/images/generate/ideogram-3-custom-model).

| Endpoint | Method | Description |
|---|---:|---|
| `/datasets` | GET | List all datasets for the authenticated user |
| `/datasets` | POST | Create a new dataset |
| `/datasets/{dataset_id}` | GET | Get a dataset, including its file count and file list |
| `/datasets/{dataset_id}/upload_assets` | POST | Upload images and captions to a dataset |
| `/v1/ideogram-v3/train-model` | POST | Start training a custom Ideogram 3.0 model from a dataset |
| `/models` | GET | List custom models that are owned or shared |
| `/models/{model_id}` | GET | Get details for a specific model |
| `/v2/image/generate/ideogram-3-custom-model` | POST | Generate images with a custom Ideogram 3.0 model |
| `/v2/image/generate/ideogram-4-custom-model` | POST | Generate images with a custom Ideogram 4.0 model |

## Step 1: Create a dataset

Send a `POST` request to `/datasets` with an API key and dataset name. The response contains `dataset_id`.

```python
import requests

response = requests.post(
  "https://ideogram.toolspoint.net/__api__/datasets",
  headers={"Api-Key": "<apiKey>"},
  json={"name": "My Training Dataset"}
)
dataset = response.json()
dataset_id = dataset["dataset_id"]
print(f"Created dataset: {dataset_id}")
```

## Step 2: Upload training images

We accept JPEG, PNG, and WebP images, optional `.txt` caption sidecar files, and ZIP archives containing images and captions. A dataset needs at least **15 images** to start training and supports at most **100 images**. Captions match images by filename stem: for example, `sunset.txt` captions `sunset.jpg`. For larger datasets, upload a ZIP file.

```python
import requests
import glob

files = [("files", open(f, "rb")) for f in glob.glob("training_images/*.jpg")]

response = requests.post(
  f"https://ideogram.toolspoint.net/__api__/datasets/{dataset_id}/upload_assets",
  headers={"Api-Key": "<apiKey>"},
  files=files
)
result = response.json()
print(f"Uploaded {result['success_count']}/{result['total_count']} images")
```

## Step 3: Train the model

After the dataset contains at least 15 images, send its `dataset_id` and a model name to start training. This endpoint trains a custom Ideogram 3.0 model. Model names must be **5–30 characters** and may contain letters, numbers, spaces, and hyphens.

```python
response = requests.post(
  "https://ideogram.toolspoint.net/__api__/v1/ideogram-v3/train-model",
  headers={"Api-Key": "<apiKey>"},
  json={"dataset_id": dataset_id, "model_name": "my-custom-model"}
)
training = response.json()
model_id = training["model_id"]
print(f"Training started: {training['training_status']}")
```

## Step 4: Check training status

Poll `GET /models/{model_id}` until the model is ready. The `status` field can be `CREATING`, `DRAFT`, `TRAINING`, `COMPLETED`, `ERRORED`, or `ARCHIVED`. Training is complete when the status is `COMPLETED`; `ERRORED` means training failed. Generation requires both `COMPLETED` and `is_available_for_generation` set to `true`.

```python
import time

while True:
  response = requests.get(
    f"https://ideogram.toolspoint.net/__api__/models/{model_id}",
    headers={"Api-Key": "<apiKey>"}
  )
  model = response.json()["model"]
  print(f"Status: {model['status']}")

  if model["status"] == "COMPLETED" and model["is_available_for_generation"]:
    custom_model_uri = model.get("custom_model_uri")
    print(f"Model ready! URI: {custom_model_uri}")
    break
  elif model["status"] == "ERRORED":
    print("Training failed.")
    break

  time.sleep(60)
```

Training usually takes a few hours. The example polls once per minute.

## Step 5: Generate with your model

When training is complete and `is_available_for_generation` is `true`, use `custom_model_uri` from the model details. A model trained in step 3 is a custom Ideogram 3.0 model and uses `POST /v2/image/generate/ideogram-3-custom-model` with a multipart form. A custom Ideogram 4.0 model uses `POST /v2/image/generate/ideogram-4-custom-model` with a JSON body.

```python
response = requests.post(
  "https://ideogram.toolspoint.net/__api__/v2/image/generate/ideogram-3-custom-model",
  headers={"Api-Key": "<apiKey>"},
  files={
    "prompt": (None, "A photo in my custom style"),
    "custom_model_uri": (None, custom_model_uri)
  }
)
result = response.json()
if response.status_code == 200:
  print(result["data"][0]["url"])
```

The returned custom model can also be passed to the v2 custom model endpoints for Generate, Remix, and Inpaint.

## Tips for better results

- Use high-quality images that clearly represent the style or subject we should learn.
- Add optional captions describing what each image represents. Captions help separate image content from the style or subject being taught.
- Keep one element consistent across every image—the style, product, or character—and vary the other elements. For a style, vary subjects and scenes. For a product, vary angles, backgrounds, and lighting. For a character, vary poses, outfits, and settings.
- A smaller set of strong images is better than a large mixed set; omit blurry images and near-duplicates.

## Pricing and billing

API training is self-serve. Each training run is charged once to the balance used by the API key. A self-serve training run costs **$40 (4,000 credits)**.

Image generation with custom models costs:

| Model | Turbo | Default | Quality |
|---|---:|---:|---:|
| Custom Ideogram 3.0 | $0.06/image | $0.12/image | $0.18/image |
| Custom Ideogram 4.0 | $0.06/image | $0.12/image | $0.20/image |

All API fees are non-refundable. Enterprise pricing is custom, with API volume discounts and priority support. Contact `partnership@ideogram.ai` for Enterprise pricing or support.

Custom model training in the Ideogram app is separate from API training: it is available on Pro, Team, and Enterprise plans, and is not available on Free or Plus.

## Enterprise options

Enterprise includes private custom models trained on your visual data. We guarantee that your data and custom models will not be used for AI training or shared outside your organization. Enterprise custom model training includes dedicated data curation and requires a minimum of **1 million images per month**. Enterprise pricing is custom, with API volume discounts and priority support.

The default limit is **10 in-flight API requests**. Contact `partnership@ideogram.ai` to request a higher limit.

## Frequently asked questions

### What are Ideogram Custom Models?

Custom Models let us fine-tune an Ideogram 3.0 model on your images, including brand assets, art styles, product photos, or campaigns. The programmatic workflow is to create a dataset, upload 15–100 images with optional captions, train the model, receive a `custom_model_uri`, and pass it to the v2 custom model endpoints.

### What is the complete training process?

1. Send `POST /datasets` to create a dataset.
2. Send `POST /datasets/{dataset_id}/upload_assets` to upload images.
3. Send `POST /v1/ideogram-v3/train-model` with `dataset_id` and `model_name`.
4. Poll `GET /models/{model_id}` until the status is `COMPLETED`.
5. Pass `custom_model_uri` to `POST /v2/image/generate/ideogram-3-custom-model`.

### How can we get started?

Use [Get an API key](https://ideogram.toolspoint.net/platform?intent=api&source=custom-models-api-api-choice) to create a key yourself and pay only for what you generate. For a managed workflow, [Talk to an expert](https://ideogram.toolspoint.net/enterprise/?from=custom-models-api); we can train a model on your data and build the workflow with you.

For account access, use [Sign in](https://ideogram.toolspoint.net/login?intent=app&source=brand-header) or [Sign up](https://ideogram.toolspoint.net/login?intent=app&source=brand-header). For general Enterprise contact, use [Contact sales](https://ideogram.toolspoint.net/enterprise/?from=features-custom-models-api).

---

[Read this page’s summary](https://ideogram.toolspoint.net/agents/api/public/v1/page-tldr?url=https%3A%2F%2Fideogram.ai%2Ffeatures%2Fcustom-models%2Fapi%2F&trace=t_380edc68d53d)

## Ask a follow-up about this page

Need a more specific answer? Ask the exact question you have. It returns a fresh, cited answer from Ideogram’s knowledge base. No account or API key required.

Open this URL with your own question, URL-encoded. Include your question in q. All research inputs are optional; no account or setup.

`GET https://ideogram.toolspoint.net/agents/agent/faq?q={question}&trace=t_380edc68d53d`

[Tool guide and examples](https://ideogram.toolspoint.net/agents/agent-access) · [OpenAPI](https://ideogram.toolspoint.net/agents/api/public/v1/openapi.json) · [Page TLDR form](https://ideogram.toolspoint.net/agents/agent-tools/page-tldr?url=https%3A%2F%2Fideogram.ai%2Ffeatures%2Fcustom-models%2Fapi%2F). Opening a form does not execute a tool.