API Setup
You manage the Ideogram API in Settings in the Ideogram app. Open your avatar and select API, or go to ideogram.ai/platform, which opens the same place. These Settings pages hold everything below:
In Ideogram Legacy, the API button opens a separate API page with its own Dashboard, API Keys, Usage and Billing pages. The steps are the same.
Image and video links created by the Ideogram API expire after 24 hours. Download any result you want to keep and store it yourself.
Get access
- Log in to your Ideogram account at ideogram.ai. If you don’t have one, sign up first; a free account is enough. Signing up accepts the Developer API Agreement and Policy along with the Terms of Service.
- Open your avatar and select API. If you belong to more than one workspace, choose the one whose balance the API should use in the workspace switcher first.
Add a payment method and credits
API usage is prepaid: requests draw down a credit balance according to the API pricing. In Wallet & Billing, select Add payment method (payments are processed by Stripe), then fund your balance:
- Buy credits: a one-time purchase of $10, $25, $50, $100, or a custom amount from $10 to $1,000. A purchase can’t take your balance above $2,000.
- Auto top-up: set Once the credit balance hits and Add this amount in credits. When your balance falls to the first amount, your saved payment method is charged the second and those credits are added. The balance is refilled to the sum of the two, so if usage has already taken it further below, the charge also covers the difference. Auto top-up starts off; select Turn on auto top-up to set it up. The defaults add $20 when your balance hits $10. Each amount can be $10 to $1,000, in whole dollars. If your balance is already below the trigger when you turn it on, it tops up straight away.
Wallet & Billing also lists your invoices and credit history, and lets you update your payment and tax details.
If you have an Ideogram subscription, requests made with your API keys use your subscription’s monthly credits first when they cover the whole request, and your API balance otherwise. A request is never split: if your monthly credits don’t cover all of it, the whole request is charged to your API balance. See which balance a key uses for team and enterprise workspaces.
Create an API key
In Settings → API, select Create key and give it an optional name, up to 64 characters, so you can tell your keys apart.
The full API key is shown only once, when you create it. Copy it and store it securely; afterwards Settings shows only a partial key.
Store the key in an environment variable on your server and pass it in the Api-Key header on every request:
- Access: a key can call every endpoint its workspace can use and spends that workspace’s balance. The account endpoints answer only keys created by someone with billing access. See Authentication and API keys.
- Revoking: you can revoke a key at any time with Revoke key. Revoking can’t be undone.
- Nothing to pay with: keys work as soon as they’re created, but a request is rejected with a
402when your API balance can’t cover it. If you subscribe to an Ideogram plan, a request that your monthly credits cover in full uses those instead. - Balance reaches $0: your keys are paused and requests are rejected until you add credits or auto top-up refills your balance.
Copy a request from an app
Most apps in Ideogram have an API tab next to Assets. It shows a code sample for the request the app makes, which you can copy as a starting point. The same request with your key is billed like any other.
Track usage
Usage in Settings shows spending over time, for the app and the API, where your workspace supports it. To read your API usage from code, call GET /v2/account/usage.
Teams
To share API access with collaborators, select Create an API team in the workspace switcher. A team shares its API keys, credits, and billing across its members:
- Owners and Admins manage keys, billing, and members.
- Members can use the team’s API but can’t see Billing.
Invite people from Members with Add member, by Ideogram username or email.
Enterprise
Need higher rate limits, invoiced billing, or enterprise controls? Contact partnership@ideogram.ai.
Next steps
To run the API in production, see Build a reliable production integration.
Useful links
- API settings in the app: https://ideogram.ai/platform
- API Agreement and Policy (TOS): https://ideogram.ai/legal/api-tos
- API Pricing: https://ideogram.ai/api-pricing
- API Status: https://status.ideogram.ai