Hoppa till innehåll

Wan · v2.7 · Text to Image

Integrera

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

Den här begäran: 0,03 $ 30 API-krediter Kör den på den här sidan

Hämta API-nyckel
Alibaba Text till bild #wan#text-to-image#image-generation

Standardversionen av Wan 2.7 text-till-bild med upp till fem bilder per begäran och valbart utdataformat

Skapat på Doitong

Offentliga verk skapade med Wan 27 av Doitong-communityt. Återanvänd en prompt med ett klick.

Visade offentliga verk: 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,...

Skapa en begäran

Kontrollerna genereras från modellschemat. Koden och priset uppdateras när du ändrar dem.

•obligatoriskt 88 / 2000

Beskrivning av avsedda utdata, skriven på kinesiska eller engelska.

image_size standard square_hd

Utdata-bildens mått.

num_images standard 1

Antal bildgenereringar, från 1 till 5.

Avancerat negative_prompt · output_format · seed · enable_safety_checker
0 / 500

Innehåll som ska uteslutas från den resulterande bilden, begränsat till 500 tecken.

output_format standard jpeg

Filformat för utdata-bilder.

Slumpmässigt seed som möjliggör reproducerbara resultat, från 0 till 2147483647.

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

Kör den här begäran

Din nyckel stannar i den här webbläsaren: den skickas endast till Doitong API och sparas endast i localStorage om du markerar Kom ihåg. Hämta en API-nyckel

Om Wan · v2.7 · Text to Image

Förvandlar en textbaserad `prompt` på upp till 2000 tecken, på kinesiska eller engelska, till bilder. Välj en av sex `image_size`-förinställningar, generera 1 till 5 bilder med `num_images` och välj jpeg, png eller webp med `output_format`. En `negative_prompt` på upp till 500 tecken och ett `seed` stöds.

Parametrar

Skicka antingen det kanoniska namnet eller det inbyggda namnet, inte båda. Kanoniska namn

NamnTyp StandardTillåtna Beskrivning
promptobligatoriskt
Typstring
≤ 2 000 tecken
Beskrivning av avsedda utdata, skriven på kinesiska eller engelska.
negative_promptvalfritt
Typstring | null
Standard
≤ 500 tecken
Innehåll som ska uteslutas från den resulterande bilden, begränsat till 500 tecken.
image_sizevalfritt
Typobject
Standardsquare_hd
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9
Utdata-bildens mått.
num_imagesvalfritt num_outputs
Typinteger
Standard1
1 – 5
Antal bildgenereringar, från 1 till 5.
seedvalfritt
Typinteger | null
Slumpmässigt seed som möjliggör reproducerbara resultat, från 0 till 2147483647.
enable_safety_checkervalfritt
Typboolean
Standardtrue
Moderering av både indata och utdata, tillämpas på varje begäran om inte kontot är behörigt att inaktivera den och alternativet är avstängt.
output_formatvalfritt
Typenum
Standardjpeg
jpegpngwebp
Filformat för utdata-bilder.
obligatoriskt Kanoniskt namn, accepteras också

Resultat

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"
  }
}
Dina filer, ditt valVarje outputs[].url är en kopia i vår lagring: sparad för alltid (debiteras per GB-månad) eller 7 dagar kostnadsfritt, enligt din kontoinställning eller ?storage=.
Samma struktur för varje modelltype, url, content_type, width, height och duration, för bilder, video och ljud. output är modellens eget resultatobjekt.
Resultatets fält
images
array of object {url, content_type, file_name, file_size}Bilder som skapats genom generering.
generated_text
string | nullValfri text som modellen genererar och inkluderar i sitt svar.
seed
integerSeed-värde som tillämpas under genereringen.

Fler modeller: Text till bild

För AI-agenter: den här sidan som Markdown finns på https://doitong.com/sv/developers/models/wan/v2.7/text-to-image.md. Alla modeller och guider: https://doitong.com/developers/llms.txt