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

Emu 3.5 Image · Edit Image

אינטעגרירן

מאָדעל־id emu-3.5-image/edit-image
# 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/emu-3.5-image/edit-image?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",
    "image": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  }'

# 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.30⁩ 300 API־קרעדיטן לויפֿן עס אויף דער דאָזיקער בלאַט

באַקומען אַן API שליסל
BAAI בילד־עדיטירונג ביז 720p

רעדאַקטירט אַן איינגאַבע־בילד פֿון אַ טעקסט־פּראָמפּט, מיט 480p אָדער 720p אויסגאַנג און אַן auto אַספּעקט־פּראָפּאָרציע

BAAI · בילד

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

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

בויען אַ בעטן

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

•פארלאנגט

פּראָמפּט וואָס באַשרײַבט די בילד־ענדערונגען.

•פארלאנגט image_url
לייגט אַרײַן אַ טעקע, אָדער

בילד צוגעשטעלט פֿאַר עדיטירונג.

resolution סטאַנדאַרט 720p

רעזאָלוציע פֿאַר דעם רעזולטירנדיקן בילד.

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

אַספּעקט־פֿאַרהעלטעניש פֿאַר דעם רעזולטאַט־בילד.

פֿאָרגעשריטן output_format · seed · enable_safety_checker
output_format סטאַנדאַרט png

פֿאָרמאַט פֿון דעם רעזולטירנדיקן בילד.

זוימען גענוצט בעת אינפֿערענץ.

POST /run/emu-3.5-image/edit-image?wait=20 פּרײַז → ⁨$ 0.30⁩
# 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/emu-3.5-image/edit-image?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",
    "image": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  }'

# 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 שליסל

וועגן Emu 3.5 Image · Edit Image

נעמט `image_url` און אַן רעדאַקטיר־`prompt` און גיט צוריק דאָס מאָדיפֿיצירטע בילד. `resolution` איז 480p אָדער 720p, און `aspect_ratio` קען בלײַבן auto אָדער ווערן באַשטימט פֿון 21:9 ביז 9:21. דער אויסגאַנג קען זײַן png, jpeg אָדער webp, און אַ `seed` קען מען שטעלן פֿאַר איבערחזרבאַרע לויפן.

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

שיקט אָדער דעם קאַנאָנישן נאָמען אָדער דעם נאַטיוון נאָמען, נישט ביידע. קאַנאָנישע נעמען

נאָמעןטיפּ סטאַנדאַרטערלויבט באַשרײַבונג
promptפארלאנגט
טיפּstring
פּראָמפּט וואָס באַשרײַבט די בילד־ענדערונגען.
resolutionאָפּציאָנעל
טיפּenum
סטאַנדאַרט720p
480p720p
רעזאָלוציע פֿאַר דעם רעזולטירנדיקן בילד.
aspect_ratioאָפּציאָנעל
טיפּenum
סטאַנדאַרטauto
auto21:916:94:33:21:12:33:49:169:21
אַספּעקט־פֿאַרהעלטעניש פֿאַר דעם רעזולטאַט־בילד.
enable_safety_checkerאָפּציאָנעל
טיפּboolean
סטאַנדאַרטtrue
קאָנטראָלירט צי זיכערהייט־קאָנטראָל זאָל זײַן אַקטיוו.
seedאָפּציאָנעל
טיפּinteger | null
זוימען גענוצט בעת אינפֿערענץ.
output_formatאָפּציאָנעל
טיפּenum
סטאַנדאַרטpng
jpegpngwebp
פֿאָרמאַט פֿון דעם רעזולטירנדיקן בילד.
image_urlפארלאנגט image
טיפּurl · image
בילד צוגעשטעלט פֿאַר עדיטירונג.
פארלאנגט קאַנאָנישער נאָמען, אויך אַקצעפּטירט

טעקע־פּאַראַמעטערס נעמען אַן עפֿנטלעכע https:// URL, אַ data: URI ביז 10 MB, אָדער דעם file_url פֿון אַן אַרויפֿלאָד. טעקעס

אויסגאַבע

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "emu-3.5-image/edit-image",
  "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": 300,
    "usd": "0.30",
    "charged": 300,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  },
  "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,
        "width": 1024,
        "height": 768
      }
    ],
    "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, width, height}בילד וואָס איז דער רעזולטאַט פֿון דער עדיטירונג.
seed
integerזוימען גענוצט בעת אינפֿערענץ.

מער מאָדעלן: בילד־עדיטירונג

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