Leum chun t-susbaint

Wan · v2.2 5b · Text to Image

Amalaich

ID a’ mhodail wan/v2.2-5b/text-to-image
# 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/wan/v2.2-5b/text-to-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"
  }'

# 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"

An t-iarrtas seo: $0.016 16 creideasan API · ≈ ₽1.72 Ruith e air an duilleig seo

Faigh iuchair API

Modail text-to-image 5B dlùth le sia meudan ro-shuidhichte, toradh PNG no JPEG agus ceumannan samplachaidh atharrachail

Air a dhèanamh air Doitong

Obraichean poblach a rinn coimhearsnachd Doitong le Wan v22. Ath-chleachd prompt ann an aon bhriogadh.

Obraichean poblach air an sealltainn: 2
Создай 30-секундный обучающий музыкальный ролик для детей 3–5 лет. Тема: транспорт. Яркая 2D-аним... Bhidio

Создай 30-секундный обучающий музыкальный ролик для детей 3–5 лет. Тема: транспорт. Яркая 2D-анимация, весёлый водитель в кепке, крупные машины, пастельные цвета. 0:00–0:10 приветствие под музыку; 0:10–0:30 песенка: "Машина едет би-би, би-би", "Поезд едет ту-ту, ту-ту". Бодрая детская музыка...

Создай 30-секундный обучающий музыкальный ролик для детей 3–5 лет. Тема: транспорт. Яркая 2D-аним... Bhidio

Создай 30-секундный обучающий музыкальный ролик для детей 3–5 лет. Тема: транспорт. Яркая 2D-анимация, тот же весёлый водитель в кепке, самолёт. 0:00–0:15 песенка: "Самолёт летит вж-ж-ж, вж-ж-ж"; 0:15–0:25 интерактивная пауза: водитель спрашивает "Как гудит машина?", пауза; 0:25–0:30 финальный...

Tog iarrtas

Tha na smachdan air an cruthachadh bho sgeama a’ mhodail. Bidh an còd agus a’ phrìs ag ùrachadh fhad ’s a dh’atharraicheas tu iad.

•riatanach

Stiùiridhean teacsa a stiùireas an ìomhaigh a chaidh a ghineadh.

image_size bun-roghainn square_hd

Meudan na h-ìomhaigh ghineadh.

Adhartach negative_prompt · image_format · num_inference_steps · guidance_scale · shift · seed · enable_safety_checker · enable_output_safety_checker · enable_prompt_expansion
bun-roghainn

Prompt àicheil a thèid a chur an sàs nuair a thathar a’ gineadh bhidio.

image_format bun-roghainn jpeg

Cruth faidhle na h-ìomhaigh a thig às.

bun-roghainn 40

Cunntas cheumannan samplachaidh, ag iomlaid ùine giullachd nas fhaide airson càileachd nas fheàrr mar a bhios an cunntas ag èirigh.

bun-roghainn 3.5

Neart stiùiridh gun chlasadair, ag iomlaid call càileachd a dh’fhaodadh tachairt airson maidseadh nas dlùithe ris a’ phrompt mar a bhios an sgèile ag èirigh.

bun-roghainn 2

Suidheachadh gluasad ìomhaighe, le raon ceadaichte de 1.0–10.0.

Sìol a nì gineadh ath-riochdachail. Le bhith ga shuidheachadh gu None, thèid sìol a thaghadh air thuaiream.

POST /run/wan/v2.2-5b/text-to-image?wait=20 tuairmse → $0.016
# 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/wan/v2.2-5b/text-to-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"
  }'

# 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"

Ruith an t-iarrtas seo

Fuirichidh an iuchair agad sa bhrobhsair seo: thèid a cur chun Doitong API a-mhàin agus a sàbhaladh (localStorage) a-mhàin ma chuireas tu comharra ri Cuimhnich. Faigh iuchair API

Mu Wan · v2.2 5b · Text to Image

Gineadh ìomhaigh stad à `prompt` teacsa. Tagh ro-shuidheachadh `image_size` mar square_hd, portrait_16_9 no landscape_4_3, agus tagh png no jpeg le `image_format`. Faodar samplachadh a ghleusadh le `num_inference_steps` (2 gu 50), `guidance_scale` (1 gu 10) agus `shift`, agus tha `negative_prompt` agus leudachadh prompt roghainneil rim faighinn.

Paramadairean

AinmSeòrsa Bun-roghainnCeadaichte Tuairisgeul
promptriatanach
Seòrsastring
Stiùiridhean teacsa a stiùireas an ìomhaigh a chaidh a ghineadh.
negative_promptroghainneil
Seòrsastring
Bun-roghainn
Prompt àicheil a thèid a chur an sàs nuair a thathar a’ gineadh bhidio.
seedroghainneil
Seòrsainteger | null
Sìol a nì gineadh ath-riochdachail. Le bhith ga shuidheachadh gu None, thèid sìol a thaghadh air thuaiream.
num_inference_stepsroghainneil
Seòrsainteger
Bun-roghainn40
2 – 50
Cunntas cheumannan samplachaidh, ag iomlaid ùine giullachd nas fhaide airson càileachd nas fheàrr mar a bhios an cunntas ag èirigh.
enable_safety_checkerroghainneil
Seòrsaboolean
Bun-roghainnfalse
Sgrìonadh sàbhailteachd an in-chuir mus tèid a ghiullachd, nach fhaod ach cunntasan ùghdarraichte a chur dheth. Bidh iarrtasan gun ùghdarras an-còmhnaidh air an sgrìonadh; air neo, bidh true a’ cur an sgrìonaidh an comas.
enable_output_safety_checkerroghainneil
Seòrsaboolean
Bun-roghainnfalse
A’ cumail smachd air sgrìonadh sàbhailteachd a’ bhidio a chaidh a ghineadh; bidh suidheachadh true a’ cur sgrùdadh an comas às dèidh gineadh.
enable_prompt_expansionroghainneil
Seòrsaboolean
Bun-roghainnfalse
Leig le modail cànain mòr am prompt a neartachadh le mion-fhiosrachadh. Cha bhith an leudachadh seo ag atharrachadh brìgh a’ phrompt.
guidance_scaleroghainneil
Seòrsanumber
Bun-roghainn3.5
1 – 10
Neart stiùiridh gun chlasadair, ag iomlaid call càileachd a dh’fhaodadh tachairt airson maidseadh nas dlùithe ris a’ phrompt mar a bhios an sgèile ag èirigh.
shiftroghainneil
Seòrsanumber
Bun-roghainn2
1 – 10
Suidheachadh gluasad ìomhaighe, le raon ceadaichte de 1.0–10.0.
image_sizeroghainneil
Seòrsaobject
Bun-roghainnsquare_hd
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9
Meudan na h-ìomhaigh ghineadh.
image_formatroghainneil
Seòrsaenum
Bun-roghainnjpeg
pngjpeg
Cruth faidhle na h-ìomhaigh a thig às.
riatanach

Toradh

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "wan/v2.2-5b/text-to-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": 16,
    "usd": "0.016",
    "charged": 16,
    "refunded": 0
  },
  "input": {
    "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
    },
    "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.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
Na faidhlichean agad, do roghainnTha gach outputs[].url na lethbhreac air an stòradh againn: air a chumail gu bràth (air a phàigheadh gach GB-mìos) no 7 latha an-asgaidh, a rèir suidheachadh a’ chunntais agad no ?storage=.
An aon chruth air gach modailtype, url, content_type, width, height agus duration, airson dealbhan, bhidio agus fuaim le chèile. ’S e output nì toraidh a’ mhodail fhèin.
Raointean toraidh
image
object {url, content_type, file_name, file_size}Faidhle ìomhaigh a chaidh a chruthachadh le gineadh.
seed
integerLuach sìl a chaidh a chur an sàs rè gineadh.

Barrachd mhodalan: Teacsa gu Ìomhaigh

Do riochdairean AI: tha an duilleag seo mar Markdown aig https://doitong.com/gd/developers/models/wan/v2.2-5b/text-to-image.md. Na modailean agus na treòraichean uile: https://doitong.com/developers/llms.txt