Op den Inhalt sprangen

Wan · v2.2 5b · Text to Image

Integréieren

Modell-ID wan/v2.2-5b/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.2-5b/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"

Dës Ufro: 0,016 $ 16 API-Kreditter Op dëser Säit ausféieren

API-Schlëssel kréien
Alibaba Text zu Bild

Kompakte 5B text-to-image-Modell mat sechs virdefinéierte Gréissten, PNG- oder JPEG-Output an upassbare Sampling-Schrëtt

Op Doitong erstallt

Ëffentlech Wierker, déi d'Doitong-Communautéit mat Wan v22 erstallt huet. Benotz e Prompt mat engem Klick nach eng Kéier.

Ëffentlech Wierker ugewisen: 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,...

Eng Ufro erstellen

D'Kontrolle ginn aus dem Modellschema generéiert. De Code an de Präis aktualiséiere sech, wann s du se ännerst.

•obligatoresch

Textinstruktiounen, déi dat generéiert Bild steieren.

image_size Standard square_hd

Dimensioune vum generéierte Bild.

Erweidert negative_prompt · image_format · num_inference_steps · guidance_scale · shift · seed · enable_safety_checker · enable_output_safety_checker · enable_prompt_expansion
Standard

Negative Prompt bei der Generatioun vun engem Video.

image_format Standard jpeg

Dateiformat vum resultéierende Bild.

Standard 40

Unzuel vun de Sampling-Schrëtt; méi Schrëtt bedeite méi laang Veraarbechtung, awer besser Qualitéit.

Standard 3.5

Classifier-free Guidance-Stäerkt; mat steigender Skala gëtt méigleche Qualitéitsverloscht géint eng méi genee Prompt-Entspriechung ofgewiicht.

Standard 2

Bild-Shift-Astellung mat engem erlaabte Beräich vun 1.0–10.0.

Seed, deen d'Generatioun reproduzéierbar mécht. Wann et op None gesat gëtt, gëtt e Seed zoufälleg gewielt.

POST /run/wan/v2.2-5b/text-to-image?wait=20 Präis → 0,016 $
# 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.2-5b/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"

Dës Ufro ausféieren

Äre Schlëssel bleift an dësem Browser: e gëtt nëmmen un d'Doitong API geschéckt an nëmme gespäichert (localStorage), wann s du „Erënneren“ aktivéiers. En API-Schlëssel kréien

Iwwer Wan · v2.2 5b · Text to Image

Generéiert e Standbild aus engem Text-`prompt`. Wielt eng `image_size`-Virstellung wéi square_hd, portrait_16_9 oder landscape_4_3 a wielt png oder jpeg mat `image_format`. D'Sampling kann iwwer `num_inference_steps` (2 bis 50), `guidance_scale` (1 bis 10) an `shift` ugepasst ginn; e `negative_prompt` an optional Prompt-Erweiderung si verfügbar.

Parameteren

NummTyp StandardErlaabt Beschreiwung
promptobligatoresch
Typstring
Textinstruktiounen, déi dat generéiert Bild steieren.
negative_promptoptional
Typstring
Standard
Negative Prompt bei der Generatioun vun engem Video.
seedoptional
Typinteger | null
Seed, deen d'Generatioun reproduzéierbar mécht. Wann et op None gesat gëtt, gëtt e Seed zoufälleg gewielt.
num_inference_stepsoptional
Typinteger
Standard40
2 – 50
Unzuel vun de Sampling-Schrëtt; méi Schrëtt bedeite méi laang Veraarbechtung, awer besser Qualitéit.
enable_safety_checkeroptional
Typboolean
Standardfalse
Input-Sécherheetskontroll virun der Veraarbechtung, déi nëmmen autoriséiert Konten ausschalte kënnen. Ufroen ouni Autorisatioun ginn ëmmer kontrolléiert; soss aktivéiert true d'Kontroll.
enable_output_safety_checkeroptional
Typboolean
Standardfalse
Steiert d'Sécherheetskontroll vum generéierte Video; true aktivéiert eng Kontroll no der Generatioun.
enable_prompt_expansionoptional
Typboolean
Standardfalse
Erlaabt engem Large Language Modell, de Prompt mat Detailer unzereecheren. Dës Erweiderung léisst d'Bedeitung vum Prompt onverännert.
guidance_scaleoptional
Typnumber
Standard3.5
1 – 10
Classifier-free Guidance-Stäerkt; mat steigender Skala gëtt méigleche Qualitéitsverloscht géint eng méi genee Prompt-Entspriechung ofgewiicht.
shiftoptional
Typnumber
Standard2
1 – 10
Bild-Shift-Astellung mat engem erlaabte Beräich vun 1.0–10.0.
image_sizeoptional
Typobject
Standardsquare_hd
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9
Dimensioune vum generéierte Bild.
image_formatoptional
Typenum
Standardjpeg
pngjpeg
Dateiformat vum resultéierende Bild.
obligatoresch

Output

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "wan/v2.2-5b/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": 16,
    "usd": "0.016",
    "charged": 16,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  },
  "output": {
    "image": {
      "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
    },
    "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"
  }
}
Är Fichieren, Är WielAll outputs[].url ass eng Kopie an eiser Späicherung: fir ëmmer gespäichert (bezuelbar pro GB-Mount) oder 7 Deeg gratis, jee no Ärer Kontastellung oder ?storage=.
D'selwecht Struktur bei all Modelltype, url, content_type, width, height an duration, fir Biller, Video an Audio gläichermoossen. output ass dem Modell säin eegent Resultatobjet.
Output-Felder
image
object {url, content_type, file_name, file_size}Bild-Datei, déi duerch d'Generatioun produzéiert gouf.
seed
integerSeed-Wäert, deen während der Generatioun applizéiert gouf.

Méi Modeller: Text zu Bild

Fir AI-Agenten: dës Säit als Markdown ass ënner https://doitong.com/lb/developers/models/wan/v2.2-5b/text-to-image.md. All Modeller a Guiden: https://doitong.com/developers/llms.txt