Léim chuig an ábhar

Wan · v2.7 · Pro · Text to Image

Comhtháthú

Aitheantas na samhla wan/v2.7/pro/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.7/pro/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-iarratas seo: $0.075 75 gcreidmheas API · ≈ ₽8.07 Rith ar an leathanach seo

Faigh eochair API
Alibaba Téacs go hÍomhá #wan#text-to-image#pro

Sraith Pro de Wan 2.7 téacs-go híomhá, le suas le cúig íomhá in aghaidh na hiarrata

Déanta ar Doitong

Saothair phoiblí déanta leis an Wan 27 ag pobal Doitong. Athúsáid leid le clic amháin.

Saothair phoiblí ar taispeáint: 2
Создай 30-секундный обучающий музыкальный ролик для детей 3–5 лет. Тема: транспорт. Яркая 2D-аним... Físeán

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

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

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

Tóg iarratas

Gintear na rialtáin ó scéim na samhla. Nuashonraítear an cód agus an praghas de réir mar a athraíonn tú iad.

•riachtanach 88 / 2000

Cur síos ar an aschur beartaithe, scríofa i Sínis nó i mBéarla.

image_size réamhshocrú square_hd

Toisí na híomhá aschuir.

num_images réamhshocrú 1

Líon giniúna íomhánna, ó 1 go 5.

Ardleibhéal negative_prompt · output_format · seed · enable_safety_checker
0 / 500

Ábhar atá le heisiamh ón íomhá deiridh, teoranta do 500 carachtar.

output_format réamhshocrú jpeg

Formáid chomhaid na n-íomhánna aschuir.

Síol randamach a chumasaíonn torthaí in-atáirgthe, idir 0 agus 2147483647.

POST /run/wan/v2.7/pro/text-to-image?wait=20 luachan → $0.075
# 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.7/pro/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"

Rith an t-iarratas seo

Fanann d'eochair sa bhrabhsálaí seo: seoltar chuig Doitong API amháin í agus sábháiltear (localStorage) í ach amháin má chuireann tú tic le Meabhraigh. Faigh eochair API

Maidir le Wan · v2.7 · Pro · Text to Image

Gineann sé íomhánna ó `prompt` téacs suas le 2000 carachtar, i Sínis nó i mBéarla. Tá raon `num_images` ó 1 go 5, tá sé réamhshocraithe ag `image_size` le sé réamhshocrú lena n-áirítear square_hd, agus is féidir `output_format` a bheith jpeg, png nó webp. Tacaítear le `negative_prompt` suas le 500 carachtar agus le `seed`. D’fhéadfadh téacs ginte roghnach a bheith sa fhreagra freisin.

Paraiméadair

Seol an t-ainm canónach nó an t-ainm dúchasach, ní an dá cheann. Ainmneacha canónacha

AinmCineál RéamhshocrúCeadaithe Cur síos
promptriachtanach
Cineálstring
≤ 2,000 gcarachtar
Cur síos ar an aschur beartaithe, scríofa i Sínis nó i mBéarla.
negative_promptroghnach
Cineálstring | null
Réamhshocrú
≤ 500 gcarachtar
Ábhar atá le heisiamh ón íomhá deiridh, teoranta do 500 carachtar.
image_sizeroghnach
Cineálobject
Réamhshocrúsquare_hd
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9
Toisí na híomhá aschuir.
num_imagesroghnach num_outputs
Cineálinteger
Réamhshocrú1
1 – 5
Líon giniúna íomhánna, ó 1 go 5.
seedroghnach
Cineálinteger | null
Síol randamach a chumasaíonn torthaí in-atáirgthe, idir 0 agus 2147483647.
enable_safety_checkerroghnach
Cineálboolean
Réamhshocrútrue
Modhnóireacht an ionchuir agus an aschuir araon, curtha i bhfeidhm ar gach iarratas mura bhfuil údarú ag an gcuntas í a dhíchumasú agus má tá an rogha múchta.
output_formatroghnach
Cineálenum
Réamhshocrújpeg
jpegpngwebp
Formáid chomhaid na n-íomhánna aschuir.
riachtanach Ainm canónach, glactar leis freisin

Aschur

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "wan/v2.7/pro/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": 75,
    "usd": "0.075",
    "charged": 75,
    "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
      }
    ],
    "generated_text": "string",
    "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"
  }
}
Do chuid comhad, do roghaIs cóip ar ár stóráil é gach outputs[].url: coinnithe go deo (íoctha in aghaidh GB-mhí) nó ar feadh 7 lá saor in aisce, de réir shocrú do chuntais nó ?storage=.
An cruth céanna ar gach samhailtype, url, content_type, width, height agus duration, d'íomhánna, d'fhíseáin agus d'fhuaim araon. Is é output réad toraidh na samhla féin.
Réimsí aschuir
images
array of object {url, content_type, file_name, file_size}Íomhánna a tháirgtear leis an nginiúint.
generated_text
string | nullTéacs roghnach a tháirgeann an tsamhail agus a chuimsítear ina freagra.
seed
integerLuach síl a chuirtear i bhfeidhm le linn giniúna.

Tuilleadh samhlacha: Téacs go hÍomhá

Do ghníomhairí AI: tá an leathanach seo mar Markdown ag https://doitong.com/ga/developers/models/wan/v2.7/pro/text-to-image.md. Gach samhail agus treoir: https://doitong.com/developers/llms.txt