Sign in
Ideogram API

Image generation, built into your product.

The Ideogram API is an image generation and editing API. One API key reaches Ideogram's image and vector models, along with image, upscaling and video models from other providers. Send a prompt or an image, get a result URL back, and route it wherever your product needs it.

A craft beer can label for Ironleaf Brewing Hazy IPA
A white t-shirt with a sleeping cat illustration and "NAP CLUB" text on a pink background
A hand-painted poster reading "Art will save us"
A strawberry matcha lip balm product shot with fruit and matcha splashes
MagnificReplicateScenarioRunwareLovart AIComfyUIGammaLeonardo AIKittlPicsartProdiaWiroWaveSpeedTogether AI

Choose the API for the image task

Each endpoint in this table names its model in the path, in the form POST /v2/{content}/{action}/{model}. Pick the row for your task, then open its reference for the full contract.

Ideogram API endpoints by image task, with inputs, outputs, delivery, controls, and billing unit
Task Endpoint You sendYou get backDeliveryMain controlsBilled per
Generate from a prompt Ideogram 4.5 POST /v2/image/generate/ideogram-4-5 A text or structured JSON prompt, plus up to 5 optional source images Image URLs, with an optional transparent background Returns the result by default; async or webhook on request Quality from very_low to high, size, number of images Image, by quality and size
Remix an image Ideogram 4.0 POST /v2/image/remix/ideogram-4 A source image and a prompt Image URLs Returns the result by default Rendering speed, resolution, image weight Image
Edit one region precisely Ideogram 4.5 Precise Edit POST /v2/image/precise-edit/ideogram-4-5 An image, an edit instruction, an optional mask and up to 4 reference images Edited images at the source image's width and height Returns the result by default Quality; context window for 4K and 8K sources Image, by quality
Generate an SVG Ideogram Vector 1 POST /v2/svg/generate/ideogram-vector-1 A prompt and optional image references SVG files Asynchronous: poll or webhook Quality, aspect ratio SVG, by quality
Convert an image to SVG Vectorizer POST /v2/svg/vectorize/ideogram-vector-1 A JPEG, PNG or WebP up to 50 MB An SVG file Asynchronous Detail mode: simple, detailed or auto Conversion
Remove a background POST /v2/image/remove-background/ideogram-1 A JPEG, PNG or WebP up to 25 MB A transparent PNG of the foreground Returns the result by default None Image
Make text editable Layerize POST /v2/design/layerize/ideogram-3 A flat image and optional font files Positioned text blocks with matched fonts, sizes and colors, plus a text-free base image Returns the result by default Optional prompt, candidate fonts Image
Upscale POST /v2/image/upscale/auto or a named upscaling model An image up to 50 MB The image at 2x, 4x or 8x, up to 8,192 px per side Returns the result by default Upscale factor, model Image, or output megapixel for some models
Train and use a custom model Training POST /v1/ideogram-v3/train-model Generation POST /v2/image/generate/ideogram-3-custom-model or POST /v2/image/generate/ideogram-4-custom-model A dataset of 15 to 100 images with optional captions A model you call by custom_model_uri Training runs in the background; poll the model's status Rendering speed Training run, then image

The same key also reaches video generation and ready-made ad and product tools. The API reference lists every model and tool. The last column names the billing unit, and current amounts are on the pricing page.

Get an API key

  1. Sign in at ideogram.ai and open the API dashboard at ideogram.ai/platform. A free account is enough to create keys.
  2. API usage is prepaid, so add a payment method and credits under Billing before your first request. Until then, requests return a 402 error.
  3. Create a key under API Keys and copy it right away, because the full key is shown only once.
  4. Send the key in the Api-Key header with every request.

Quickstart

Send a prompt to the Ideogram 4.5 generate endpoint and read the image URL from the first item in data. Image URLs expire, so download anything you want to keep.

import requests

response = requests.post(
    "https://api.ideogram.ai/v2/image/generate/ideogram-4-5",
    headers={"Api-Key": "<your-api-key>"},
    json={
        "prompt": "A poster for a summer design conference"
    },
)

image = response.json()["data"][0]
print(image["url"])
curl -X POST https://api.ideogram.ai/v2/image/generate/ideogram-4-5 \
  -H "Api-Key: <your-api-key>" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A poster for a summer design conference"
  }'
const res = await fetch(
  "https://api.ideogram.ai/v2/image/generate/ideogram-4-5",
  {
    method: "POST",
    headers: {
      "Api-Key": "<your-api-key>",
      "Content-Type": "application/json",
    },
    body: JSON.stringify({
      prompt: "A poster for a summer design conference"
    }),
  },
);

const { data } = await res.json();
console.log(data[0].url);
Generate

Text to image API

Turn a prompt into production-ready imagery with Ideogram's family of image models. Generate campaign concepts, product visuals, editorial art, and graphic designs with reliable prompt fidelity and clear text rendering, all from one request.

An underwater keyboard with clownfish, coral, and sea life growing across the keys
Transform

Image to image API

Start with a reference image and guide the output with a prompt. The Remix endpoint keeps the structure you need while changing style, subject, and detail, so you can iterate on existing visuals without rebuilding the composition from scratch.

A portrait before and after image-to-image editing, with the sweater color changing from cream to blue
Enhance

Image upscaling API

Increase resolution while recovering texture and detail. Use the Upscale API to prepare generated or existing images for larger placements, sharper crops, and high-resolution delivery without adding another tool to your stack.

A monarch butterfly before and after image upscaling, with sharper wing detail on the right
Automate

Custom apps API

Bring focused creative workflows into your product without starting from a blank prompt box. Custom apps turn repeatable tasks into clear inputs and outputs, so teams can automate a specific job while Ideogram handles the image work behind it.

A floating white sneaker with flowers and rocks, labeled by a custom app with a bounding box
Customize

Custom model training

Train on a curated set of brand assets, product photos, character illustrations, or artwork, then call the resulting model in your generation workflow. Keep repeated output visually consistent without rebuilding the look in every prompt.

A vivid orange fish floating above a colorful surreal landscape

Plan a production workload

These are the operating rules the API reference documents today. Current rates are on the pricing page.

Ideogram API operating rules for production workloads
Topic What the API does
Concurrency The default limit is 10 in-flight requests. Contact [email protected] if you need more.
Asynchronous jobs Video and tool endpoints always run asynchronously, and image endpoints do when you set async or pass a webhook_url. Each returns a generation_id right away.
Polling Poll GET /v2/generations/{generation_id} until status is completed or failed. Polling is rate limited per organization, and a 429 response carries a Retry-After header.
Webhooks Each delivery is signed with Ed25519. A delivery that does not get a 2xx response is retried a limited number of times, and delivery is not guaranteed, so keep polling as a fallback and treat a repeated generation_id as already processed.
Price quotes Add the dry_run=true query parameter to most generation, editing, upscaling, video and tool requests. The API validates and prices the request without generating, storing or billing anything, and returns a price quote.
Result files Image and video links expire. Download any result you want to keep.
Result metadata Each image comes back with its URL, prompt, resolution, seed and an is_image_safe flag. Completed usage-priced requests also report the amount billed.
Keys Every key has full access to your API account and draws on the same balance. The full key is shown once, and you can revoke a key at any time.
Billing API usage is prepaid from a credit balance. If you have an Ideogram subscription, its monthly credits are used first when they cover the whole request.
Usage reporting Organization admins can read billed usage by product, endpoint and API key, and list invoices and keys, through the account endpoints. Usage can lag live traffic by a few minutes.
Errors The API returns 400 for invalid input, 401 when unauthorized, 402 for insufficient credits, 422 when a prompt fails safety checks, 429 for too many requests, and 500 or 503 for server errors.
Versions The v1 API keeps working. Most v1 endpoints have a v2 equivalent with the model in the path, and some request fields differ. Custom model training and datasets are available only on v1.

REST API or MCP?

Use the REST API when your own server runs the integration. Each request carries an API key in the Api-Key header and draws on your prepaid API balance, or on your subscription's monthly credits when they cover the whole request.

Use the Ideogram MCP server when an AI assistant or agent acts for a person. That person signs in with their Ideogram account through OAuth, and usage draws from the same subscription as the Ideogram web app.

Use the Ideogram CLI when you, a shell script or a coding agent such as Claude Code or Codex work in a terminal. It runs the same endpoints as one command and saves the files to disk.

Frequently asked questions

What can I build with the Ideogram API?
You can build image generation, prompt-based editing, background removal, custom model workflows, text-layer editing, creative testing tools, and internal design automation.
Where do I get an API key?
Create one under API Keys in the API dashboard. The steps, including adding credits first, are in Get an API key.
How much does it cost?
API requests are billed per image, per SVG or per unit of output, depending on the endpoint. See current API rates.
Can I use custom models through the API?
Yes. You can train a custom model, then generate with the trained model by passing its URI.
How should I think about scale?
Prototype within the default in-flight request limit, then plan larger workloads with our team. Plan a production workload lists the limit, how to raise it, and the other operating rules.