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

Recraft 20b

אינטעגרירן

מאָדעל־id recraft-20b
# 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/recraft-20b?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.022⁩ 22 API־קרעדיטן לויפֿן עס אויף דער דאָזיקער בלאַט

באַקומען אַן API שליסל
Recraft טעקסט צו בילד #image-generation#vector-art#typograph#style

טעקסט־צו־בילד־מאָדעל מיט אַ סך אויסקלייבאַרע סטילן, אַרײַנגערעכנט וועקטאָר־ און דיגיטאַלע אילוסטראַציע, און קאָליר־הינטן

Recraft · בילד

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

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

בויען אַ בעטן

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

•פארלאנגט 88 / 1000
image_size סטאַנדאַרט square_hd
סטאַנדאַרט realistic_image

וויזועלער סטיל געווענדט אויף גענערירטע בילדער.

פֿאָרגעשריטן style_id · enable_safety_checker · colors

אָפּציאָנעלע אידענטיפֿיקאַטאָר פֿאַר אַ קאַסטאַמייזטער סטיל־רעפֿערענץ.

סטאַנדאַרט []

עריי מיט בילכערטע פֿאַרבן.

POST /run/recraft-20b?wait=20 פּרײַז → ⁨$ 0.022⁩
# 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/recraft-20b?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 שליסל

וועגן Recraft 20b

שאַפֿט בילדער פֿון אַ פּראָמפּט מיט ביז 1000 אותיות. דער `style` פּאַראַמעטער אָפפערט אַ לאַנגע רשימה פֿון אָפּציעס פֿאַר רעאַליסטישע בילדער, דיגיטאַלע אילוסטראַציע און וועקטאָר־אילוסטראַציע, און `style_id` רעפֿערירט צו אַ מנהג־סטיל. אַ `colors` אַרריי פֿאָרשלאָגט בילכערטע קאָלירן, און `image_size` אָפפערט קוואַדראַט, פּאָרטרעט און לאַנדשאַפֿט־פּרעסעטן.

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

נאָמעןטיפּ סטאַנדאַרטערלויבט באַשרײַבונג
promptפארלאנגט
טיפּstring
≤ 1,000 כאַראַקטערן
image_sizeאָפּציאָנעל
טיפּobject
סטאַנדאַרטsquare_hd
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9
styleאָפּציאָנעל
טיפּenum
סטאַנדאַרטrealistic_image
anyrealistic_imagedigital_illustrationvector_illustrationrealistic_image/b_and_wrealistic_image/enterpriserealistic_image/hard_flashrealistic_image/hdrrealistic_image/motion_blurrealistic_image/natural_lightrealistic_image/studio_portraitdigital_illustration/2d_art_posterdigital_illustration/2d_art_poster_2digital_illustration/3ddigital_illustration/80sdigital_illustration/engraving_color
+21 נאָךdigital_illustration/glowdigital_illustration/graindigital_illustration/hand_drawndigital_illustration/hand_drawn_outlinedigital_illustration/handmade_3ddigital_illustration/infantile_sketchdigital_illustration/kawaiidigital_illustration/pixel_artdigital_illustration/psychedelicdigital_illustration/seamlessdigital_illustration/voxeldigital_illustration/watercolorvector_illustration/cartoonvector_illustration/doodle_line_artvector_illustration/engravingvector_illustration/flat_2vector_illustration/kawaiivector_illustration/line_artvector_illustration/line_circuitvector_illustration/linocutvector_illustration/seamless
וויזועלער סטיל געווענדט אויף גענערירטע בילדער.
colorsאָפּציאָנעל
טיפּobject[]
סטאַנדאַרט[]
עריי מיט בילכערטע פֿאַרבן.
colors[].rאָפּציאָנעל
טיפּinteger
סטאַנדאַרט0
0 – 255
ווערט פֿונעם רויטן קאָמפּאָנענט.
colors[].gאָפּציאָנעל
טיפּinteger
סטאַנדאַרט0
0 – 255
ווערט פֿונעם גרינעם קאָמפּאָנענט.
colors[].bאָפּציאָנעל
טיפּinteger
סטאַנדאַרט0
0 – 255
ווערט פֿונעם בלויען קאָמפּאָנענט.
style_idאָפּציאָנעל
טיפּstring | null
אָפּציאָנעלע אידענטיפֿיקאַטאָר פֿאַר אַ קאַסטאַמייזטער סטיל־רעפֿערענץ.
enable_safety_checkerאָפּציאָנעל
טיפּboolean
סטאַנדאַרטfalse
זיכערקייט־קאָנטראָל־שאַלטער, וועמענס אויסגעלאָשענע באַשטעטיקונג דאַרף חשבון־אויטאָריזאַציע. אָן דער אויטאָריזאַציע ווערט יעדער בקשה אָפּגעקוקט אומאָפּהענגיק פֿון דער באַשטעטיקונג; true אַקטיוויזירט דעם קאָנטראָלער.
פארלאנגט

אויסגאַבע

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "recraft-20b",
  "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": 22,
    "usd": "0.022",
    "charged": 22,
    "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
      }
    ]
  },
  "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}

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