Preskoči na vsebino

Wan · v2.7 · Text to Image

Integracija

ID modela 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"

Ta zahteva: 0,03 $ 30 API kreditov Zaženi na tej strani

Pridobi ključ API
Alibaba Besedilo v sliko #wan#text-to-image#image-generation

Standardni Wan 2.7 za pretvorbo besedila v sliko z do petimi slikami na zahtevo in izbirnim izhodnim formatom

Ustvarjeno v Doitong

Javna dela, ki jih je skupnost Doitong ustvarila z Wan 27. Poziv znova uporabite z enim klikom.

Prikazana javna dela: 5
Create a highly realistic UGC-style smartphone video inside a modern commercial airplane during a... Videoposnetek

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

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

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

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

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

Ustvari zahtevo

Kontrolniki se ustvarijo iz sheme modela. Koda in cena se posodobita, ko ju spreminjate.

•obvezno 88 / 2000

Opis predvidenega izhoda, napisan v kitajščini ali angleščini.

image_size privzeto square_hd

Mere izhodne slike.

num_images privzeto 1

Število generiranih slik, od 1 do 5.

Napredno negative_prompt · output_format · seed · enable_safety_checker
0 / 500

Vsebina, ki jo želite izključiti iz končne slike, omejena na 500 znakov.

output_format privzeto jpeg

Oblika datoteke izhodnih slik.

Naključno seme za ponovljive rezultate, od 0 do 2147483647.

POST /run/wan/v2.7/text-to-image?wait=20 cena → 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"

Zaženi to zahtevo

Vaš ključ ostane v tem brskalniku: pošlje se samo v Doitong API in shrani v localStorage samo, če označite možnost Zapomni si. Pridobi ključ API

O modelu Wan · v2.7 · Text to Image

Pretvori besedilni `prompt` z največ 2000 znaki v kitajščini ali angleščini v slike. Izberite eno od šestih prednastavitev `image_size`, ustvarite 1-5 slik z `num_images` in z `output_format` izberite jpeg, png ali webp. Podprta sta `negative_prompt` z največ 500 znaki in `seed`.

Parametri

Pošlji kanonično ali izvorno ime, ne obeh. Kanonična imena

ImeVrsta PrivzetoDovoljeno Opis
promptobvezno
Vrstastring
≤ 2000 znakov
Opis predvidenega izhoda, napisan v kitajščini ali angleščini.
negative_promptneobvezno
Vrstastring | null
Privzeto
≤ 500 znakov
Vsebina, ki jo želite izključiti iz končne slike, omejena na 500 znakov.
image_sizeneobvezno
Vrstaobject
Privzetosquare_hd
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9
Mere izhodne slike.
num_imagesneobvezno num_outputs
Vrstainteger
Privzeto1
1 – 5
Število generiranih slik, od 1 do 5.
seedneobvezno
Vrstainteger | null
Naključno seme za ponovljive rezultate, od 0 do 2147483647.
enable_safety_checkerneobvezno
Vrstaboolean
Privzetotrue
Moderiranje vhoda in izhoda, uveljavljeno pri vsaki zahtevi, razen če je račun pooblaščen za onemogočanje in je možnost izklopljena.
output_formatneobvezno
Vrstaenum
Privzetojpeg
jpegpngwebp
Oblika datoteke izhodnih slik.
obvezno Kanonično ime, prav tako sprejeto

Izhod

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"
  }
}
Vaše datoteke, vaša izbiraVsak outputs[].url je kopija v naši shrambi: hrani se za vedno (plačilo na GB-mesec) ali 7 dni brezplačno, glede na nastavitev računa ali ?storage=.
Enaka struktura pri vsakem modelutype, url, content_type, width, height in duration za slike, videoposnetke in zvok. output je lasten objekt rezultata modela.
Polja izhoda
images
array of object {url, content_type, file_name, file_size}Slike, ustvarjene z generiranjem.
generated_text
string | nullIzbirno besedilo, ki ga ustvari model in vključi v svoj odgovor.
seed
integerVrednost semena, uporabljena pri generiranju.

Več modelov: Besedilo v sliko

Za agente AI: ta stran je v obliki Markdown na voljo na https://doitong.com/sl/developers/models/wan/v2.7/text-to-image.md. Vsi modeli in vodniki: https://doitong.com/developers/llms.txt