Ideogram 3.0 Serverless API

Ideogram 3.0 revolutionizes content creation with photorealistic text-to-image generation and diverse aesthetic styles.

~10.29s
POST /v2/ideogram-3 · submit + poll
 1# pip install "segmind>=1.1.0"
 2# export SEGMIND_API_KEY="YOUR_API_KEY"
 3import segmind
 4
 5# Async (v2): submit to the queue and block until COMPLETED.
 6# run() returns the final result dict (600s deadline, 1.0s poll by default).
 7result = segmind.run(
 8    "ideogram-3",
 9    prompt="A cinematic photograph of a dark forest scene viewed from a distance. In the center, a small patch of glowing plants and flowers is illuminated by a faint, focused glow, casting a soft reflection in a still stream below. The delicate neon-style white text 'Segmind' is softly lit, creating a striking contrast against the deep shadows and mist. The surrounding dense foliage and mist create a mysterious and moody atmosphere, with strong contrast between light and shadow, enhancing the emotional and atmospheric tone.",
10    resolution="1024x1024",
11    rendering_speed="DEFAULT",
12    magic_prompt="AUTO",
13    negative_prompt="No people, no animals.",
14    style_codes=[],
15    style_type="GENERAL",
16)
17print(result["status"])                      # COMPLETED
18print(result.get("output"))                  # model output (e.g. media URL)
19print(result["metrics"]["inference_time"])   # server compute seconds
20
21# --- Or submit + poll manually (track request_id, control the cadence) ---
22from segmind import SegmindClient, InferenceFailed, InferenceTimeout
23
24client = SegmindClient()                      # reads SEGMIND_API_KEY
25payload = {
26    "prompt": "A cinematic photograph of a dark forest scene viewed from a distance. In the center, a small patch of glowing plants and flowers is illuminated by a faint, focused glow, casting a soft reflection in a still stream below. The delicate neon-style white text 'Segmind' is softly lit, creating a striking contrast against the deep shadows and mist. The surrounding dense foliage and mist create a mysterious and moody atmosphere, with strong contrast between light and shadow, enhancing the emotional and atmospheric tone.",
27    "resolution": "1024x1024",
28    "rendering_speed": "DEFAULT",
29    "magic_prompt": "AUTO",
30    "negative_prompt": "No people, no animals.",
31    "style_codes": [],
32    "style_type": "GENERAL",
33}
34job = client.submit_async("ideogram-3", **payload)
35print(job.request_id)                         # available immediately
36try:
37    result = job.wait(timeout=600, interval=1.0)
38except InferenceTimeout as e:
39    print("still running:", e.request_id)
40except InferenceFailed as e:
41    print("failed:", e.detail)

API Endpoint

POSThttps://api.segmind.com/v1/ideogram-3

Parameters

promptrequired
string

The prompt guides image creation; use detailed descriptions for specific results. Example: 'A futuristic cityscape at sunset.'

Default: "A cinematic photograph of a dark forest scene viewed from a distance. In the center, a small patch of glowing plants and flowers is illuminated by a faint, focused glow, casting a soft reflection in a still stream below. The delicate neon-style white text 'Segmind' is softly lit, creating a striking contrast against the deep shadows and mist. The surrounding dense foliage and mist create a mysterious and moody atmosphere, with strong contrast between light and shadow, enhancing the emotional and atmospheric tone."
aspect_ratiooptional
string

Aspect ratio formats your image; select '1x1' for square, '16x9' for widescreen.

Default: null
Allowed values (15 total):
"1x3""3x1""1x2""2x1""9x16""16x9""10x16""16x10""2x3""3x2"+5 more
color_paletteoptional
any | any

A color palette for generation

One of:
Preset Color Paletteoptional
any
namerequired
string
Custom Color Paletteoptional
any
membersrequired
object[]
magic_promptoptional
string

Magic Prompt helps enhance descriptions; use 'ON' for complex scenes, 'OFF' for simplicity.

Default: "AUTO"
Allowed values :
"AUTO""ON""OFF"
negative_promptoptional
string

Exclude elements by specifying negatives; e.g., 'No people, cars'.

Default: "No people, no animals."
rendering_speedoptional
string

Rendering speed affects time taken; 'TURBO' for faster, 'QUALITY' for detailed results.

Default: "DEFAULT"
Allowed values :
"TURBO""DEFAULT""QUALITY"
resolutionoptional
string

Resolution affects image detail; higher values for precise detail, lower for speed.

Default: "1024x1024"
Allowed values (69 total):
"512x1536""576x1408""576x1472""576x1536""640x1344""640x1408""640x1472""640x1536""704x1152""704x1216"+59 more
seedoptional
integer

The seed ensures reproducibility; set it for consistent output, omit for variation.

Default: nullRange: 100 - 999999
style_codesoptional
string[]

Style codes customize look; use predefined codes for specific styles.

style_typeoptional
string

Style type influences art style; choose 'REALISTIC' for lifelike, 'DESIGN' for artistic.

Default: "GENERAL"
Allowed values :
"AUTO""GENERAL""REALISTIC""DESIGN"

Response Type

Returns: Text/JSON

Asynchronous requests (v2)

Use Async for video, long-running (>~60s), or high-concurrency workloads; Sync is simplest for fast image & LLM calls. Async submits a request and you poll it to completion.

  1. 1
    POST /v2/ideogram-3

    Submitreturns request_id, status_url, response_url

  2. 2
    GET /v2/requests/{id}/status

    Polluntil COMPLETED or FAILED

  3. 3
    GET /v2/requests/{id}

    Resultfinal response body

Status states

QUEUEDAccepted, waiting for a worker
PROCESSINGRunning on a worker
COMPLETEDDone — result body is ready
FAILEDErrored (incl. content/RAI blocks)
  • A FAILED request is served as HTTP 422 — the body still carries the error detail.
  • An unknown or expired request_id returns HTTP 404.
  • Results are retained for 1 hour, then expire.
  • Content / RAI blocks surface as FAILED, not a separate state.
  • Track completion by polling the status endpoint.

Common Error Codes

The API returns standard HTTP status codes. Detailed error messages are provided in the response body.

400

Bad Request

Invalid parameters or request format

401

Unauthorized

Missing or invalid API key

403

Forbidden

Insufficient permissions

404

Not Found

Model or endpoint not found

406

Insufficient Credits

Not enough credits to process request

429

Rate Limited

Too many requests

500

Server Error

Internal server error

502

Bad Gateway

Service temporarily unavailable

504

Timeout

Request timed out