Pāriet uz saturu

Wan 2.5 Text to Image

Integrēt

Modeļa id wan-25-preview/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-25-preview/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"

Šis pieprasījums: 0,05 $ 50 API kredītu Izpildīt šajā lapā

Iegūt API atslēgu

Wan 2.5 teksta pārveidošana attēlā ar ķīniešu un angļu promptiem un līdz četriem attēliem vienā izsaukumā

Izveidots vietnē Doitong

Doitong kopienas publiskie darbi, kas izveidoti ar Wan 2.5. Izmantojiet uzvedni atkārtoti ar vienu klikšķi.

Rādīti publiskie darbi: 5
Create a highly realistic UGC-style smartphone video inside a modern commercial airplane during a... Video

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... Video

**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... Video

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... Video

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... Video

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,...

Izveidot pieprasījumu

Vadīklas tiek ģenerētas no modeļa shēmas. Kods un cena tiek atjaunināti, kad tos maināt.

•obligāts

Attēlu ģenerēšanas norādes, ne vairāk kā 2000 rakstzīmes ķīniešu vai angļu valodā.

image_size noklusējums square

Ģenerētā attēla izmēri, kuru kopējais pikseļu skaits ir 768×768–1440×1440 un malu attiecība 1:4–4:1. Norādiet izmērus tieši vai izvēlieties nosauktu sākotni, piemēram, 'square' vai 'landscape_16_9'.

num_images noklusējums 1

Ģenerējamo attēlu skaits: no 1 līdz 4.

Papildu negative_prompt · seed · enable_prompt_expansion · enable_safety_checker

Negatīva uzvedne, kurā norādīts nevēlamais saturs; ne vairāk kā 500 rakstzīmes.

Sēkla, kas padara ģenerēšanu atkārtojamu. Iestatot None, sēkla tiek izvēlēta nejauši.

POST /run/wan-25-preview/text-to-image?wait=20 cena → 0,05 $
# 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-25-preview/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"

Palaist šo pieprasījumu

Jūsu atslēga paliek šajā pārlūkprogrammā: tā tiek nosūtīta tikai uz Doitong API un saglabāta (localStorage) tikai tad, ja atzīmējat Atcerēties. Iegūt API atslēgu

Par Wan 2.5 Text to Image

Ģenerē attēlus no līdz 2000 rakstzīmju gara teksta `prompt` ķīniešu vai angļu valodā. `num_images` ir no 1 līdz 4, bet `image_size` pieņem iestatījumus vai konkrētus izmērus, kuru kopējais pikseļu skaits ir no 768x768 līdz 1440x1440. Prompta paplašināšana, kas pārraksta promptu ar LLM, pēc noklusējuma ir ieslēgta. Pieejami arī `negative_prompt` un `seed`.

Parametri

Nosūti vai nu kanonisko nosaukumu, vai vietējo nosaukumu, bet ne abus. Kan啤niskie nosaukumi

NosaukumsTips NoklusējumsAtļauts Apraksts
promptobligāts
Tipsstring
Attēlu ģenerēšanas norādes, ne vairāk kā 2000 rakstzīmes ķīniešu vai angļu valodā.
negative_promptneobligāts
Tipsstring | null
Negatīva uzvedne, kurā norādīts nevēlamais saturs; ne vairāk kā 500 rakstzīmes.
num_imagesneobligāts num_outputs
Tipsinteger
Noklusējums1
1 – 4
Ģenerējamo attēlu skaits: no 1 līdz 4.
image_sizeneobligāts
Tipsobject
Noklusējumssquare
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9
Ģenerētā attēla izmēri, kuru kopējais pikseļu skaits ir 768×768–1440×1440 un malu attiecība 1:4–4:1. Norādiet izmērus tieši vai izvēlieties nosauktu sākotni, piemēram, 'square' vai 'landscape_16_9'.
enable_prompt_expansionneobligāts
Tipsboolean
Noklusējumstrue
Uz LLM balstīta uzvednes pārrakstīšana, kas papildu apstrādes laiku maina pret labākiem rezultātiem īsām uzvednēm.
seedneobligāts
Tipsinteger | null
Sēkla, kas padara ģenerēšanu atkārtojamu. Iestatot None, sēkla tiek izvēlēta nejauši.
enable_safety_checkerneobligāts
Tipsboolean
Noklusējumstrue
Drošības pārbaudes slēdzis, kura izslēgšanai nepieciešama konta autorizācija. Bez šīs autorizācijas katrs pieprasījums tiek pārbaudīts neatkarīgi no iestatījuma; true iespējo pārbaudītāju.
obligāts Kan啤niskais nosaukums, arī pieņemts

Izvade

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "wan-25-preview/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": 50,
    "usd": "0.05",
    "charged": 50,
    "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,
        "width": 1024,
        "height": 768
      }
    ],
    "seeds": [
      42
    ],
    "actual_prompt": "A lone samurai standing on the edge of a cliff at twilight, overlooking a vast valley shrouded in mist. The sky burns with deep orange and purple hues from the setting sun, casting long, dramatic shadows. The samurai’s silhouette glows against the horizon, with their sword reflecting a glint of fading light. The overall style is hyper-realistic, cinematic, and moody, with dramatic contrast and atmospheric depth."
  },
  "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"
  }
}
Jūsu faili, jūsu izvēleKatrs outputs[].url ir kopija mūsu krātuvē: tiek glabāta mūžīgi (maksa par GB mēnesī) vai 7 dienas bez maksas — atbilstoši konta iestatījumam vai ?storage=.
Vienāda struktūra katram modelimtype, url, content_type, width, height un duration gan attēliem, gan video un audio. output ir paša modeļa rezultāta objekts.
Izvades lauki
images
array of object {url, content_type, file_name, file_size, width, height}Modeļa ģenerētie attēli.
seeds
array of integerSākumvērtības, kas izmantotas atsevišķo attēlu ģenerēšanai.
actual_prompt
string | nullUzvedne, kas faktiski tiek izmantota, kad pārrakstīšana ir iespējota.

Vairāk modeļu: Teksts uz attēlu

AI aģentiem: šī lapa Markdown formātā ir pieejama https://doitong.com/lv/developers/models/wan-25-preview/text-to-image.md. Visi modeļi un ceļveži: https://doitong.com/developers/llms.txt