Peke ki ngā ihirangi

Wan · v2.2 5b · Text to Image

Whakauru

id tauira 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"

Tēnei tono: $ 0.016 16 whiwhinga API · ≈ ₽ 1.72 Whakahaerehia ki tēnei whārangi

Tikina he kī API

I hangaia ki Doitong

Ngā mahi tūmatanui i hangaia ki Wan v22 e te hapori Doitong. Whakamahia anō he tono mā te pāwhiri kotahi.

Ngā mahi tūmatanui kua whakaaturia: 2
Создай 30-секундный обучающий музыкальный ролик для детей 3–5 лет. Тема: транспорт. Яркая 2D-аним... Ataata

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

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

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

Hangaia he tono

Ka hangaia ngā mana whakahaere mai i te aronuinga o te tauira. Ka whakahoungia te waehere me te utu ina whakarerekē koe.

•e hiahiatia ana

Ngā tohutohu kuputuhi hei ārahi i te atahanga kua whakaputaina.

image_size taunoa square_hd

Ngā inenga o te atahanga kua whakaputaina.

Arā atu negative_prompt · image_format · num_inference_steps · guidance_scale · shift · seed · enable_safety_checker · enable_output_safety_checker · enable_prompt_expansion
taunoa

Te tohutohu tōraro e whakamahia ana i te whakaputa ataata.

image_format taunoa jpeg

Hōputu kōnae mō te atahanga ka puta.

taunoa 40

Te tatau kaupae tīpako, ka whakawhiti i te wā tukatuka roa mō te kounga pai ake ina piki te tatau.

taunoa 3.5

Te kaha arataki classifier-free, ka whakawhiti i te ngaronga kounga pea mō te ū tata ake ki te tohutohu ina piki te tauine.

taunoa 2

Te tautuhinga neke atahanga, he awhe whakaaetia 1.0–10.0.

Te kākano e taea ai te tārua o te whakaputanga. Mā te tautuhi ki None e kōwhiri matapōkeretia ai he kākano.

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

Whakahaerehia tēnei tono

Ka noho tō kī ki tēnei pūtirotiro: ka tukuna ki te Doitong API anake, ā, ka tiakina ki te localStorage anake ina tohua e koe te Mahara. Tikina he kī API

Mō Wan · v2.2 5b · Text to Image

Ka whakaputa atahanga tū tonu mai i tētahi `prompt` kuputuhi. Kōwhiria he tatūkē `image_size` pērā i square_hd, portrait_16_9, landscape_4_3 rānei, ā, kōwhiria png, jpeg rānei mā `image_format`. Ka taea te whakatika i te tauira mā `num_inference_steps` (2 ki te 50), `guidance_scale` (1 ki te 10) me `shift`, ā, e wātea ana he `negative_prompt` me te whakawhānui tohutohu kōwhiringa.

Ngā tawhā

IngoaMomo TaunoaE whakaaetia ana Whakamārama
prompte hiahiatia ana
Momostring
Ngā tohutohu kuputuhi hei ārahi i te atahanga kua whakaputaina.
negative_promptkōwhiringa
Momostring
Taunoa
Te tohutohu tōraro e whakamahia ana i te whakaputa ataata.
seedkōwhiringa
Momointeger | null
Te kākano e taea ai te tārua o te whakaputanga. Mā te tautuhi ki None e kōwhiri matapōkeretia ai he kākano.
num_inference_stepskōwhiringa
Momointeger
Taunoa40
2 – 50
Te tatau kaupae tīpako, ka whakawhiti i te wā tukatuka roa mō te kounga pai ake ina piki te tatau.
enable_safety_checkerkōwhiringa
Momoboolean
Taunoafalse
Te tirotiro haumaru tāuru i mua i te tukatuka, ā, ko ngā pūkete whai mana anake ka taea te whakaweto. Ka tirotirohia tonutia ngā tono kāore he mana; ki te whai mana, mā true e whakahohe te tirotiro.
enable_output_safety_checkerkōwhiringa
Momoboolean
Taunoafalse
Ka whakahaere i te tirotiro haumaru o te ataata kua whakaputaina; mā te tautuhi true e whakahohe te tirotiro i muri i te whakaputanga.
enable_prompt_expansionkōwhiringa
Momoboolean
Taunoafalse
Tukua he tauira reo nui kia whakarangatira i te tohutohu ki ngā taipitopito. Mā tēnei whakawhānuitanga e noho pūmau ai te tikanga o te tohutohu.
guidance_scalekōwhiringa
Momonumber
Taunoa3.5
1 – 10
Te kaha arataki classifier-free, ka whakawhiti i te ngaronga kounga pea mō te ū tata ake ki te tohutohu ina piki te tauine.
shiftkōwhiringa
Momonumber
Taunoa2
1 – 10
Te tautuhinga neke atahanga, he awhe whakaaetia 1.0–10.0.
image_sizekōwhiringa
Momoobject
Taunoasquare_hd
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9
Ngā inenga o te atahanga kua whakaputaina.
image_formatkōwhiringa
Momoenum
Taunoajpeg
pngjpeg
Hōputu kōnae mō te atahanga ka puta.
e hiahiatia ana

Putanga

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"
  }
}
Ō kōnae, māu e whiriwhiriKo ia url o outputs[] he tārua kei tō mātou rokiroki: ka puritia mō ake tonu atu (ka utua ia GB-marama) mō rānei 7 rā mō te kore utu, e ai ki ngā tautuhinga o tō pūkete, ki te ?storage= rānei.
He ōrite te hanga ki ia tauiratype, url, content_type, width, height me duration, mō ngā pikitia, ataata me te oro. Ko output te ahanoa hua ake o te tauira.
Ngā āpure o te putanga
image
object {url, content_type, file_name, file_size}Kōnae atahanga i whakaputaina.
seed
integerTe uara kākano i whakamahia i te whakaputanga.

Ētahi atu tauira: Kuputuhi ki te Atahanga

Mō ngā āpiha AI: kei te wātea tēnei whārangi hei Markdown ki https://doitong.com/mi/developers/models/wan/v2.2-5b/text-to-image.md. Ngā tauira me ngā aratohu katoa: https://doitong.com/developers/llms.txt