Op den Inhalt sprangen

Ideogram V2

Integréieren

Modell-ID ideogram/v2
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/ideogram/v2?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Dës Ufro: 0,08 $ 80 API-Kreditter Op dëser Säit ausféieren

API-Schlëssel kréien
Ideogram Text zu Bild #realism#typography

Text-zu-Bild-Modell mat staarker Typografie, 11 Bildformater, Stil-Presets an engem Negativ-Prompt

Ideogram · Bild

Äin éischt Resultat kënnt hei hin

Baut hei drënner eng Ufro a féiert se mat Ärem API-Schlëssel aus. Output gëtt an eis Späicherung kopéiert, fir ëmmer oder 7 Deeg gratis gespäichert.

Eng Ufro erstellen

D'Kontrolle ginn aus dem Modellschema generéiert. De Code an de Präis aktualiséiere sech, wann s du se ännerst.

•obligatoresch
aspect_ratio Standard 1:1

Bildverhältnis fir d'Output-Bild.

Erweidert negative_prompt · style · seed · expand_prompt
Standard

Negative Prompt mat Inhalt, deen aus dem Output-Bild ausgeschloss soll ginn.

style Standard auto

Visuelle Stil fir d'Output-Bild.

Seed-Wäert fir d'Generatioun vun Zoufallszuelen.

POST /run/ideogram/v2?wait=20 Präis → 0,08 $
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/ideogram/v2?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Dës Ufro ausféieren

Äre Schlëssel bleift an dësem Browser: e gëtt nëmmen un d'Doitong API geschéckt an nëmme gespäichert (localStorage), wann s du „Erënneren“ aktivéiers. En API-Schlëssel kréien

Iwwer Ideogram V2

Erstellt Biller aus engem Text-Prompt, passend fir Plakater, Logoen an Designs mat Text. Wielt aus 11 Aspektverhältnisser a Stiler: auto, general, realistic, design, render_3D oder anime. `expand_prompt` schalt d'automatesch Prompt-Ausbreedung un oder aus, `negative_prompt` schléisst ongewollten Inhalt aus, an `seed` erméiglecht widderhuelbar Resultater.

Parameteren

NummTyp StandardErlaabt Beschreiwung
promptobligatoresch
Typstring
aspect_ratiooptional
Typenum
Standard1:1
10:1616:109:1616:94:33:41:11:33:13:22:3
Bildverhältnis fir d'Output-Bild.
expand_promptoptional
Typboolean
Standardtrue
Steiert, ob MagicPrompt de Prompt erweidert.
seedoptional
Typinteger | null
Seed-Wäert fir d'Generatioun vun Zoufallszuelen.
styleoptional
Typenum
Standardauto
autogeneralrealisticdesignrender_3Danime
Visuelle Stil fir d'Output-Bild.
negative_promptoptional
Typstring
Standard
Negative Prompt mat Inhalt, deen aus dem Output-Bild ausgeschloss soll ginn.
obligatoresch

Output

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "ideogram/v2",
  "status": "succeeded",
  "created_at": "2026-10-20T12:00:00Z",
  "started_at": "2026-10-20T12:00:02Z",
  "completed_at": "2026-10-20T12:00:09Z",
  "queue_position": null,
  "cost": {
    "credits": 80,
    "usd": "0.08",
    "charged": 80,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  },
  "output": {
    "images": [
      {
        "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
        "content_type": "image/jpeg",
        "file_name": "0-output.jpeg",
        "file_size": 1843200
      }
    ],
    "seed": 42
  },
  "outputs": [
    {
      "type": "image",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_size": 1843200,
      "width": 1024,
      "height": 768,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
Är Fichieren, Är WielAll outputs[].url ass eng Kopie an eiser Späicherung: fir ëmmer gespäichert (bezuelbar pro GB-Mount) oder 7 Deeg gratis, jee no Ärer Kontastellung oder ?storage=.
D'selwecht Struktur bei all Modelltype, url, content_type, width, height an duration, fir Biller, Video an Audio gläichermoossen. output ass dem Modell säin eegent Resultatobjet.
Output-Felder
images
array of object {url, content_type, file_name, file_size}
seed
integerSeed-Wäert fir d'Generatioun vun Zoufallszuelen.

Méi Modeller: Text zu Bild

Fir AI-Agenten: dës Säit als Markdown ass ënner https://doitong.com/lb/developers/models/ideogram/v2.md. All Modeller a Guiden: https://doitong.com/developers/llms.txt