Léim chuig an ábhar

Wan · v2.7 · Text to Image

Comhtháthú

Aitheantas na samhla wan/v2.7/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.com/v1/run/wan/v2.7/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.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

An t-iarratas seo: $0.03 30 gcreidmheas API Rith ar an leathanach seo

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

Wan 2.7 caighdeánach téacs-go-híomhá le suas le cúig íomhá in aghaidh na hiarrata agus formáid aschuir roghnach

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: 5
Create a highly realistic UGC-style smartphone video inside a modern commercial airplane during a... Físeán

Create a highly realistic UGC-style smartphone video inside a modern commercial airplane during a daytime flight. Natural cabin lighting, subtle handheld camera movement, authentic airplane ambience, realistic passengers and natural acting. The video must feel like a real spontaneous phone...

**SORA 2 PROMPT — 20 seconds, vertical 9:16** Create a highly realistic UGC-style smartphone vide... Físeán

**SORA 2 PROMPT — 20 seconds, vertical 9:16** Create a highly realistic UGC-style smartphone video inside a modern commercial airplane during a daytime flight. Natural cabin lighting, subtle handheld camera movement, authentic airplane ambience, realistic passengers and natural acting. The video...

Create a realistic cinematic 20-second video, filmed like a high-budget modern commercial with na... Físeán

Create a realistic cinematic 20-second video, filmed like a high-budget modern commercial with natural acting, realistic lighting and believable facial expressions. All dialogue is spoken naturally in French. **SCENE 1 — EXPENSIVE RESTAURANT, EVENING — 0–5 sec** A young man in his late 20s is...

Create a realistic cinematic UGC-style commercial video, exactly 30 seconds long. The entire scen... Físeán

Create a realistic cinematic UGC-style commercial video, exactly 30 seconds long. The entire scene takes place inside a modern passenger airplane during a daytime flight. Natural smartphone-like cinematography, realistic airplane cabin, authentic passengers, natural lighting, realistic skin...

TITLE: Santa's Secret Christmas Selfie with Dasha 🎄 VIDEO FORMAT: 15–20 seconds, vertical 9:16, c... Físeán

TITLE: Santa's Secret Christmas Selfie with Dasha 🎄 VIDEO FORMAT: 15–20 seconds, vertical 9:16, cinematic Christmas short film, high-quality realistic 3D animation. REFERENCE IMAGE — DASHA_001 Use the uploaded image as the exact character reference for Dasha. Preserve her recognizable face,...

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/text-to-image?wait=20 luachan → $0.03
# 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/wan/v2.7/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.com/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 · Text to Image

Tiontaíonn sé `prompt` téacs suas le 2000 carachtar, i Sínis nó i mBéarla, ina íomhánna. Roghnaigh ceann de shé réamhshocrú `image_size`, gin 1 go 5 íomhá le `num_images`, agus roghnaigh jpeg, png nó webp le `output_format`. Tacaítear le `negative_prompt` suas le 500 carachtar agus le `seed`.

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/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": 30,
    "usd": "0.03",
    "charged": 30,
    "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.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.com/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/text-to-image.md. Gach samhail agus treoir: https://doitong.com/developers/llms.txt