Image generation API
Ideogram 4.5 API
Ideogram 4.5: best-in-class text rendering, posters, logos and photoreal images, plus natural-language edits and Precise Edit that changes only what you ask.
Pay as you go, no subscription.
- Image to image
- Editing

Quickstart
Three steps from zero to a finished file.
- 1
- 2
Send one request
POST your input to the endpoint. You get a job ID back right away.
- 3
Collect the result
Poll the status URL or pass a webhook. The finished file arrives as a link.
Or let your AI coding tool do it
Copy this prompt into Claude Code, Cursor or Codex. It reads our docs and writes the code.
Add the Pixel Dojo Ideogram 4.5 API to this project. Read https://pixeldojo.ai/llm/ideogram-4-5.txt for the endpoint, inputs and prices, and https://pixeldojo.ai/llm.txt for auth, job status and webhooks. Read the key from the PIXELDOJO_API_KEY environment variable. Write one function that submits a job, waits for it to finish and returns the file URL, with errors handled.
https://pixeldojo.ai/api/v1/models/ideogram-4-5/runcurl -X POST "https://pixeldojo.ai/api/v1/models/ideogram-4-5/run" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"prompt": "Retro travel poster for Lisbon, bold headline \"LISBOA\", tram on a hill at sunset, flat screen-print style",
"resolution": "2560x1440"
}'Want the file in one call? Add ?wait=60 to the URL. The request waits for the job and returns the result.
Pricing
You pay per result. Every setting is in the table.
| Setting | Per image |
|---|---|
| Quality: Draft | $0.063 |
| Quality: Low | $0.063 |
| Quality: Medium | $0.125 |
| Quality: High | $0.375 |
Pay as you go
Top up from $5. No subscription and no minimum.
Failed runs cost nothing
If a run fails, you get the money back on its own.
Know the price first
Add
?dry_run=trueto any request to get its price. Nothing is charged.
Try it
Run a real request and see the exact input and output your code will handle. It is charged like any API call.
Made with this API
Real outputs. Open one to see the request that made it.
A cinematic side-profile portrait of an astronaut standing on a rocky alien beach at sunset, salt spray in the air, twin suns glowing on the horizon, helmet visor catching warm orange light, weathered patches on the spacesuit. Anamorphic lens, soft rim light, sharp focus on the visor.
Photograph of a vintage brick bakery storefront with "BAKER & SONS" hand-painted in gold lettering on a dark green awning, loaves stacked in the window, a chalkboard sign by the door, warm afternoon light.
Editorial product shot of a tan leather tote bag on a stone plinth against a warm beige backdrop, the headline "NEW SEASON" in bold serif across the top, a small line "Autumn Collection" below it, soft studio light.
Business magazine cover with the cover line "FUTURE WORK" in large bold serif across the top, two smaller lines of supporting text on the left, a woman in a charcoal suit standing in a glass office on the right two thirds, clean editorial photography.
Square social media quote card with the words "Make it simple, make it yours." in elegant serif type centered on a soft peach to cream gradient, a thin line and the small text "@studio" below, minimal premium design.
Retro 1970s concert poster for "MIDNIGHT FESTIVAL" with the date "OCT 24" below, chunky groovy display lettering in orange, pink and cream, a sunburst behind a silhouetted guitarist, layered halftone shapes, slightly worn print texture.
Reference
Every input the endpoint takes, and what comes back.
Parameters
| Parameter | Type | Description | Default |
|---|---|---|---|
promptrequiredstringWhat to create, or the edit to make when image_urls is supplied. Put any text you want rendered in quotes. | string | What to create, or the edit to make when image_urls is supplied. Put any text you want rendered in quotes. | - |
image_urlsarrayOptional, up to 5. Omit for text-to-image. With images the prompt is an edit or composition instruction. With precise: true the first image is edited and the rest guide the edit (up to 4).items: urlmin items: 1 | max items: 5 | array | Optional, up to 5. Omit for text-to-image. With images the prompt is an edit or composition instruction. With precise: true the first image is edited and the rest guide the edit (up to 4).items: urlmin items: 1 | max items: 5 | - |
preciseboolean · default falseEdits only: keep everything the prompt does not mention exactly as it is (framing, layout, other text). Uses Ideogram 4.5 Precise Edit. | boolean | Edits only: keep everything the prompt does not mention exactly as it is (framing, layout, other text). Uses Ideogram 4.5 Precise Edit. | false |
mask_urlurlOptional black-and-white mask for edits, matching the first image's size. BLACK pixels are edited, WHITE pixels are preserved (Ideogram's convention). | url | Optional black-and-white mask for edits, matching the first image's size. BLACK pixels are edited, WHITE pixels are preserved (Ideogram's convention). | - |
qualityenum · default mediumvery_low, low, medium, high. Per image.very_low Draftlow Lowmedium Mediumhigh High | enum | very_low, low, medium, high. Per image.very_low Draftlow Lowmedium Mediumhigh High | medium |
resolutionenum · default autoText-to-image output size. "auto" lets Ideogram pick the aspect ratio from the prompt.auto Auto2048x2048 1:11440x28802880x1440 2:11664x2496 2:3+32 more | enum | Text-to-image output size. "auto" lets Ideogram pick the aspect ratio from the prompt.auto Auto2048x2048 1:11440x28802880x1440 2:11664x2496 2:3+32 more | auto |
edit_sizeenum · default sourceEdit output size (non-precise edits without a mask). "source" keeps the first image's proportions.source Same as photo1024x1024 1:11280x896 3:2896x1280 2:31344x768 16:9+3 more | enum | Edit output size (non-precise edits without a mask). "source" keeps the first image's proportions.source Same as photo1024x1024 1:11280x896 3:2896x1280 2:31344x768 16:9+3 more | source |
num_imagesinteger · default 1Images to generate (1-4). Billed per image.min: 1 | max: 4 | integer | Images to generate (1-4). Billed per image.min: 1 | max: 4 | 1 |
seedintegerOptional seed for reproducible results.min: 0 | max: 2147483647 | integer | Optional seed for reproducible results.min: 0 | max: 2147483647 | - |
What comes back
When you submit (202)
{
"jobId": "job_abc123...",
"status": "pending",
"statusUrl": "https://pixeldojo.ai/api/v1/jobs/job_abc123...",
"priceUsd": 0.125,
"creditCost": 2,
"creditsRemaining": 95,
"expiresAt": "2026-12-02T17:40:37Z"
}When it finishes
{
"jobId": "job_abc123...",
"status": "completed",
"output": {
"images": [
"https://temp.pixeldojo.ai/pixeldojotemp/1705930123-456789.png"
]
},
"creditCost": 2,
"expiresAt": "2026-12-02T17:40:37Z"
}priceUsd is what the run cost, in dollars. The credit fields show the same charge and your balance in account credits.
Use saved characters (@Name)
Write @Name in the prompt to use a character, product, outfit, location, prop or style saved in the account's Character Studio, for example "@Mara on a beach at sunset". Its photos are added to image_urls automatically, after any images you send yourself, so your own image numbering is unchanged. List saved names with GET /api/v1/characters and save new ones with POST /api/v1/characters. An @word that names nothing saved stays plain text.
Built for AI agents
Hand these to a coding assistant and it can write the integration for you.
Questions
How much does the Ideogram 4.5 API cost?
From $0.063 an image. The table above has the price for every setting, and each job's response shows what it cost.
Do I need a subscription?
No. Top up from $5 and pay only for what you run.
Can I see the price before I run something?
Yes. Add ?dry_run=true to the request. You get its price back. Nothing is charged and no job starts.
Do I pay for a run that fails?
No. If a run fails, you get the money back on its own.
How long do output links last?
One hour. Download the file in that time, or call the save endpoint to keep it in your library.
Can an AI assistant use this model?
Yes. Connect Claude, ChatGPT or any agent to our MCP server at https://pixeldojo.ai/mcp. Or give it the docs file for this model.
More image APIs
Same key, same request shape. Switch models by changing one word in the URL.
Start building
Get an API key
One key works for every model.
See usage
Requests, spend and logs.
Top up
Add money to your balance, from $5.