שפּרינגען צו אינהאַלט

Ideogram V2

אינטעגרירן

מאָדעל־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"

דער דאָזיקער ריקוועסט: ⁨$ 0.08⁩ 80 API־קרעדיטן לויפֿן עס אויף דער דאָזיקער בלאַט

באַקומען אַן API שליסל
Ideogram טעקסט צו בילד #realism#typography

Text-to-image מאָדעל מיט שטאַרקע טיפּאָגראַפֿיע, 11 אַספּעקט־פּראָפּאָרציעס, סטיל־פּרעסעץ און אַ נעגאַטיוון פּראָמפּט

Ideogram · בילד

דאָ קומט אײַער ערשטער רעזולטאַט

בויט אונטן אַ בקשה און לויפט זי מיט אײַער API שליסל. רעזולטאַטן ווערן קאַפּירט צו אונדזער סטאָרידזש, געהאַלטן אויף אייביק אָדער 7 טעג אומזיסט.

בויען אַ בעטן

קאָנטראָלן ווערן דזשענערירט פֿון דעם מאָדעל־סכעמע. דער קאָד און דער פּרײַז דערהײַנטיקן זיך ווען איר ענדערט זיי.

•פארלאנגט
aspect_ratio סטאַנדאַרט 1:1

אַספּעקט־פּראָפּאָרציע פֿאַרן רעזולטאַט־בילד.

פֿאָרגעשריטן negative_prompt · style · seed · expand_prompt
סטאַנדאַרט

נעגאַטיווער פּראָמפּט וואָס ספּעציפֿיצירט אינהאַלט צו אויסשליסן פֿונעם רעזולטאַט־בילד.

style סטאַנדאַרט auto

וויזועלער סטיל פֿאַרן רעזולטאַט־בילד.

זוימען־ווערט פֿאַר צופֿעליקער נומער־גענערירונג.

POST /run/ideogram/v2?wait=20 פּרײַז → ⁨$ 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"

לויפֿן דעם ריקוועסט

אײַער key בלײַבט אין דעם בלעטערער: זי ווערט געשיקט נאָר צום Doitong API און אָפּגעהיט (localStorage) נאָר אויב איר טיקט אָן געדענקען. באַקומען אַן API שליסל

וועגן Ideogram V2

שאַפֿט בילדער פֿון אַ טעקסט־פּראָמפּט, פּאַסיק פֿאַר פּאָסטערס, לאָגאָס און דיזיינס מיט טעקסט. קלײַבט פֿון 11 אַספּעקט־פּראָפּאָרציעס און סטילן: auto, general, realistic, design, render_3D אָדער anime. `expand_prompt` קאָנטראָלירט אויטאָמאַטישע פּראָמפּט־פֿאַרברייטערונג, `negative_prompt` שליסט אויס אומגעוווּנטשן אינהאַלט, און `seed` ערלויבט איבערחזרבאַרע רעזולטאַטן.

פּאַראַמעטערס

נאָמעןטיפּ סטאַנדאַרטערלויבט באַשרײַבונג
promptפארלאנגט
טיפּstring
aspect_ratioאָפּציאָנעל
טיפּenum
סטאַנדאַרט1:1
10:1616:109:1616:94:33:41:11:33:13:22:3
אַספּעקט־פּראָפּאָרציע פֿאַרן רעזולטאַט־בילד.
expand_promptאָפּציאָנעל
טיפּboolean
סטאַנדאַרטtrue
קאָנטראָלירט צי MagicPrompt בייט דעם פּראָמפּט אויס.
seedאָפּציאָנעל
טיפּinteger | null
זוימען־ווערט פֿאַר צופֿעליקער נומער־גענערירונג.
styleאָפּציאָנעל
טיפּenum
סטאַנדאַרטauto
autogeneralrealisticdesignrender_3Danime
וויזועלער סטיל פֿאַרן רעזולטאַט־בילד.
negative_promptאָפּציאָנעל
טיפּstring
סטאַנדאַרט
נעגאַטיווער פּראָמפּט וואָס ספּעציפֿיצירט אינהאַלט צו אויסשליסן פֿונעם רעזולטאַט־בילד.
פארלאנגט

אויסגאַבע

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"
  }
}
אייער טעקעס, אייער ברירהיעדער outputs[].url איז אַ קאַפּיע אין אונדזער סטאָרידזש: געהאַלטן אויף אייביק (באַצאָלט פּער GB־חודש) אָדער 7 טעג אומזיסט, לויט אײַער חשבון־באַשטעטיקונג אָדער ?storage=.
דער זעלבער פֿאָרעם בײַ יעדן מאָדעלtype, url, content_type, width, height און duration, סײַ פֿאַר בילדער, ווידעאָ און אַודיאָ. output איז דער אייגענער רעזולטאַט־אָביעקט פֿון מאָדעל.
פֿעלדער פֿון דער אויסגאַבע
images
array of object {url, content_type, file_name, file_size}
seed
integerזוימען־ווערט גענוצט פֿאַר צופֿעליקער נומער־גענערירונג.

מער מאָדעלן: טעקסט צו בילד

פֿאַר AI־אַגענטן: דער בלאַט ווי Markdown געפֿינט זיך בײַ https://doitong.com/yi/developers/models/ideogram/v2.md. אַלע מאָדעלן און גוידעס: https://doitong.com/developers/llms.txt