Gå til indhold

Wan · v2.7 · Pro · Text to Image

Integrer

Model-id 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.com/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.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Denne anmodning: 0,075 $ 75 API-kreditter Kør den på denne side

Hent API-nøgle
Alibaba Tekst til billede #wan#text-to-image#pro

Pro-niveauet af Wan 2.7 tekst-til-billede med op til fem billeder pr. anmodning

Lavet på Doitong

Offentlige værker skabt med Wan 27 af Doitong-fællesskabet. Genbrug en prompt med ét klik.

Offentlige værker vist: 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,...

Opret en anmodning

Kontrollerne genereres fra modellens skema. Koden og prisen opdateres, når du ændrer dem.

•påkrævet 88 / 2000

Beskrivelse af det tilsigtede output, skrevet på kinesisk eller engelsk.

image_size standard square_hd

Outputbilledets dimensioner.

num_images standard 1

Antal genererede billeder, fra 1 til 5.

Avanceret negative_prompt · output_format · seed · enable_safety_checker
0 / 500

Indhold, der skal udelukkes fra det resulterende billede, begrænset til 500 tegn.

output_format standard jpeg

Filformat for outputbilleder.

Tilfældig seed, der muliggør reproducerbare resultater, fra 0 til 2147483647.

POST /run/wan/v2.7/pro/text-to-image?wait=20 pris → 0,075 $
# 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/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.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Kør denne anmodning

Din nøgle forbliver i denne browser: Den sendes kun til Doitong API og gemmes kun i localStorage, hvis du markerer Husk. Hent en API-nøgle

Om Wan · v2.7 · Pro · Text to Image

Genererer billeder ud fra en tekst-`prompt` på op til 2000 tegn på kinesisk eller engelsk. `num_images` går fra 1 til 5, `image_size` har seks forudindstillinger med square_hd som standard, og `output_format` kan være jpeg, png eller webp. En `negative_prompt` på op til 500 tegn og en `seed` understøttes. Svaret kan også indeholde valgfri genereret tekst.

Parametre

Send enten det kanoniske navn eller det oprindelige navn, ikke begge. Kanoniske navne

NavnType StandardTilladt Beskrivelse
promptpåkrævet
Typestring
≤ 2.000 tegn
Beskrivelse af det tilsigtede output, skrevet på kinesisk eller engelsk.
negative_promptvalgfri
Typestring | null
Standard
≤ 500 tegn
Indhold, der skal udelukkes fra det resulterende billede, begrænset til 500 tegn.
image_sizevalgfri
Typeobject
Standardsquare_hd
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9
Outputbilledets dimensioner.
num_imagesvalgfri num_outputs
Typeinteger
Standard1
1 – 5
Antal genererede billeder, fra 1 til 5.
seedvalgfri
Typeinteger | null
Tilfældig seed, der muliggør reproducerbare resultater, fra 0 til 2147483647.
enable_safety_checkervalgfri
Typeboolean
Standardtrue
Moderering af både input og output, håndhævet ved hver anmodning, medmindre kontoen er autoriseret til at deaktivere den, og indstillingen er slået fra.
output_formatvalgfri
Typeenum
Standardjpeg
jpegpngwebp
Filformat for outputbilleder.
påkrævet Kanonisk navn, også accepteret

Output

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.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
Dine filer, dit valgHver outputs[].url er en kopi på vores lagring: gemt for altid (betales pr. GB-måned) eller 7 dage gratis, afhængigt af din kontoindstilling eller ?storage=.
Samme struktur for alle modellertype, url, content_type, width, height og duration for billeder, video og lyd. output er modellens eget resultatobjekt.
Outputfelter
images
array of object {url, content_type, file_name, file_size}Billeder produceret ved generering.
generated_text
string | nullValgfri tekst, der genereres af modellen og inkluderes i dens svar.
seed
integerSeed-værdi anvendt under generering.

Flere modeller: Tekst til billede

Til AI-agenter: Denne side som Markdown findes på https://doitong.com/da/developers/models/wan/v2.7/pro/text-to-image.md. Alle modeller og vejledninger: https://doitong.com/developers/llms.txt