Prijeđi na sadržaj

Recraft 20b

Integriraj

ID modela recraft-20b
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/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.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Ovaj zahtjev: 0,022 $ 22 API kredita · ≈ 2,32 ₽ Pokreni na ovoj stranici

Nabavi API ključ
Recraft Tekst u sliku #image-generation#vector-art#typograph#style

Model za generiranje slike iz teksta s mnogim stilovima, uključujući vektorske i digitalne ilustracije, te smjernicama za boje

Recraft · Slika

Vaš prvi rezultat bit će ovdje

Izradite zahtjev u nastavku i pokrenite ga svojim API ključem. Izlazi se kopiraju u našu pohranu i čuvaju zauvijek ili 7 dana besplatno.

Izradi zahtjev

Kontrole se generiraju iz sheme modela. Kôd i cijena ažuriraju se dok ih mijenjate.

•obavezno 88 / 1000
image_size zadano square_hd
zadano realistic_image

Vizualni stil primijenjen na generirane slike.

Napredno style_id · enable_safety_checker · colors

Neobavezni identifikator prilagođene stilske reference.

zadano []

Polje koje sadrži željene boje.

POST /run/recraft-20b?wait=20 cijena → 0,022 $
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/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.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Pokreni ovaj zahtjev

Vaš ključ ostaje u ovom pregledniku: šalje se samo Doitong API-ju i sprema u localStorage samo ako označite Zapamti. Nabavite API ključ

O modelu Recraft 20b

Generira slike iz prompta od najviše 1000 znakova. Parametar `style` nudi dug popis opcija za realistične slike, digitalne ilustracije i vektorske ilustracije, a `style_id` upućuje na prilagođeni stil. Niz `colors` predlaže željene boje, a `image_size` nudi kvadratne, portretne i pejzažne vrijednosti.

Parametri

NazivVrsta ZadanoDopušteno Opis
promptobavezno
Vrstastring
≤ 1.000 znakova
image_sizeneobavezno
Vrstaobject
Zadanosquare_hd
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9
styleneobavezno
Vrstaenum
Zadanorealistic_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 višedigital_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
Vizualni stil primijenjen na generirane slike.
colorsneobavezno
Vrstaobject[]
Zadano[]
Polje koje sadrži željene boje.
colors[].rneobavezno
Vrstainteger
Zadano0
0 – 255
Vrijednost crvene komponente.
colors[].gneobavezno
Vrstainteger
Zadano0
0 – 255
Vrijednost zelene komponente.
colors[].bneobavezno
Vrstainteger
Zadano0
0 – 255
Vrijednost plave komponente.
style_idneobavezno
Vrstastring | null
Neobavezni identifikator prilagođene stilske reference.
enable_safety_checkerneobavezno
Vrstaboolean
Zadanofalse
Prekidač sigurnosne provjere čija isključena postavka zahtijeva autorizaciju računa. Bez te autorizacije provjerava se svaki zahtjev bez obzira na postavku; true omogućuje provjeru.
obavezno

Izlaz

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.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
Vaše datoteke, vaš izborSvaki outputs[].url kopija je u našoj pohrani: čuva se zauvijek (naplaćuje se po GB-mjesecu) ili 7 dana besplatno, prema postavci računa ili ?storage=.
Isti oblik na svakom modelutype, url, content_type, width, height i duration za slike, videozapise i zvuk. output je vlastiti objekt rezultata modela.
Polja izlaza
images
array of object {url, content_type, file_name, file_size}

Za AI agente: ova je stranica u Markdownu dostupna na https://doitong.com/hr/developers/models/recraft-20b.md. Svi modeli i vodiči: https://doitong.com/developers/llms.txt