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

Flow-Edit

אינטעגרירן

מאָדעל־id flowedit
# 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/flowedit?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "image": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg",
    "source_prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "target_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.04⁩ 40 API־קרעדיטן לויפֿן עס אויף דער דאָזיקער בלאַט

באַקומען אַן API שליסל
Open model בילד־עדיטירונג #editing

עדיטירט אַ בילד דורך פֿאַרגלײַכן אַ מקור־פּראָמפּט מיט אַ ציל־פּראָמפּט, מיט פּינקטלעכער קאָנטראָל איבער דער עדיט־שטאַרקייט

Open model · בילד

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

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

בויען אַ בעטן

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

•פארלאנגט

פּראָמפּט וואָס באַשרײַבט דעם מקור־בילד.

•פארלאנגט

פּראָמפּט וואָס באַשרײַבט דאָס בילד צו שאַפֿן.

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

URL וואָס ווײַזט צו דעם בילד וואָס וועט באַקומען נײַע ליכט.

פֿאָרגעשריטן num_inference_steps · src_guidance_scale · tar_guidance_scale · n_avg · n_max · n_min · seed · enable_safety_checker
סטאַנדאַרט 28

צאָל סטעפּס וואָס דער מאָדעל לויפֿט.

סטאַנדאַרט 1.5

מקור־guidance־סקייל.

סטאַנדאַרט 5.5

ציל־guidance־סקייל.

סטאַנדאַרט 1

דורכשניטלעכע צאָל סטעפּס.

סטאַנדאַרט 23

שטאַרקייט געווענדט צו דער רעדאַקטירונג.

סטאַנדאַרט 0

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

גענערירונג־Seed: none קלײַבט איינעם צופֿעליק, בשעת אַ צוגעשטעלטער ווערט דערמעגלעכט רעפּראָדוצירבאַרע גענערירונג.

POST /run/flowedit?wait=20 פּרײַז → ⁨$ 0.04⁩
# 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/flowedit?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "image": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg",
    "source_prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "target_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 שליסל

וועגן Flow-Edit

ענדערט אַ בילד פֿון `image_url` דורך באַשרײַבן דאָס איצטיקע בילד אין `source_prompt` און דעם געוואָלטן רעזולטאַט אין `target_prompt`. אָפּציעס אַרײַננעמען `src_guidance_scale` און `tar_guidance_scale` (0 ביז 30), `num_inference_steps` (1 ביז 50), און `n_max`, וואָס שטעלט ווי שטאַרק דער עדיט איז. `n_min` און `n_avg` פֿאַרפֿײַנערן סטיל־עדיטן און טריט־דורכשניט.

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

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

נאָמעןטיפּ סטאַנדאַרטערלויבט באַשרײַבונג
image_urlפארלאנגט image
טיפּurl · image
URL וואָס ווײַזט צו דעם בילד וואָס וועט באַקומען נײַע ליכט.
source_promptפארלאנגט
טיפּstring
פּראָמפּט וואָס באַשרײַבט דעם מקור־בילד.
target_promptפארלאנגט
טיפּstring
פּראָמפּט וואָס באַשרײַבט דאָס בילד צו שאַפֿן.
seedאָפּציאָנעל
טיפּinteger | null
גענערירונג־Seed: none קלײַבט איינעם צופֿעליק, בשעת אַ צוגעשטעלטער ווערט דערמעגלעכט רעפּראָדוצירבאַרע גענערירונג.
num_inference_stepsאָפּציאָנעל
טיפּinteger | null
סטאַנדאַרט28
1 – 50
צאָל סטעפּס וואָס דער מאָדעל לויפֿט.
src_guidance_scaleאָפּציאָנעל
טיפּnumber | null
סטאַנדאַרט1.5
0 – 30
מקור־guidance־סקייל.
tar_guidance_scaleאָפּציאָנעל
טיפּnumber | null
סטאַנדאַרט5.5
0 – 30
ציל־guidance־סקייל.
n_avgאָפּציאָנעל
טיפּinteger | null
סטאַנדאַרט1
דורכשניטלעכע צאָל סטעפּס.
n_maxאָפּציאָנעל
טיפּinteger | null
סטאַנדאַרט23
שטאַרקייט געווענדט צו דער רעדאַקטירונג.
n_minאָפּציאָנעל
טיפּinteger | null
סטאַנדאַרט0
מינימום־סטעפּ גענוצט צו פֿאַרבעסערן סטיל־רעדאַקטירונג.
enable_safety_checkerאָפּציאָנעל
טיפּboolean
סטאַנדאַרטtrue
סקרינינג קען ווערן פאַרלייכטערט דורך שטעלן false, אויב דער רופער איז אָטעריזירט.
פארלאנגט קאַנאָנישער נאָמען, אויך אַקצעפּטירט

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

אויסגאַבע

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "flowedit",
  "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": 40,
    "usd": "0.04",
    "charged": 40,
    "refunded": 0
  },
  "input": {
    "image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg",
    "source_prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "target_prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  },
  "output": {
    "image": {
      "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 איז דער אייגענער רעזולטאַט־אָביעקט פֿון מאָדעל.
פֿעלדער פֿון דער אויסגאַבע
image
object {url, content_type, file_name, file_size, width, height}פֿײַל־אינפֿאָרמאַציע פֿאַר דעם גענערירטן בילד.
seed
integerבילד־גענערירונג־סיד, אַרײַנגערעכנט דעם ראַנדאָם אויסגעקליבענעם ווערט אויב די אַרײַנגעבונג האט נישט אַרײַנגעגעבן קיין סיד; אַנדערש איבערחזרט עס דעם צוגעשטעלטן ווערט.

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