Op den Inhalt sprangen

Wan 2.5 Text to Image

Integréieren

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

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

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

Wan 2.5 text-to-image mat chineseschen an englesche Prompts a bis zu véier Biller pro Uruff

Op Doitong erstallt

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

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

Реалистичная бытовая сцена в советской одесской квартире зимним вечером. Женщина находится на кух... Video

Реалистичная бытовая сцена в советской одесской квартире зимним вечером. Женщина находится на кухне, мужчина — в комнате и прихожей. Атмосфера обычной советской семьи перед приходом гостей. Голоса: все персонажи говорят по-русски с естественным, выразительным одесским говором. Характерная...

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

Instruktioune fir d'Bild-Generatioun, limitéiert op 2000 Zeechen an op Chinesesch oder Englesch geschriwwen.

image_size Standard square

Dimensioune vum generéierte Bild, mat enger Gesamtpixelzuel vun 768×768 bis 1440×1440 an engem Bildformat vun 1:4 bis 4:1. Gitt d'Dimensiounen direkt un oder wielt e benannte Preset, wéi 'square' oder 'landscape_16_9'.

num_images Standard 1

Zuel vun de generéierte Biller, vun 1 bis 4.

Erweidert negative_prompt · seed · enable_prompt_expansion · enable_safety_checker

Negativen Prompt mat onerwënschtem Inhalt, limitéiert op 500 Zeechen.

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-25-preview/text-to-image?wait=20 Präis → 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"

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 2.5 Text to Image

Generéiert Biller aus engem Text-`prompt` mat bis zu 2000 Zeechen op Chinesesch oder Englesch. `num_images` geet vun 1 bis 4, an `image_size` akzeptéiert Presets oder explizit Dimensiounen, mat insgesamt tëscht 768x768 an 1440x1440 Pixel. D'Prompt-Erweiderung, déi de Prompt mat engem LLM ëmformuléiert, ass standardméisseg aktiv. E `negative_prompt` an e `seed` si ebenfalls verfügbar.

Parameteren

Schéck entweder den kanoneschen Numm oder den natierlechen Numm, net béid. Kanonesch Nimm

NummTyp StandardErlaabt Beschreiwung
promptobligatoresch
Typstring
Instruktioune fir d'Bild-Generatioun, limitéiert op 2000 Zeechen an op Chinesesch oder Englesch geschriwwen.
negative_promptoptional
Typstring | null
Negativen Prompt mat onerwënschtem Inhalt, limitéiert op 500 Zeechen.
num_imagesoptional num_outputs
Typinteger
Standard1
1 – 4
Zuel vun de generéierte Biller, vun 1 bis 4.
image_sizeoptional
Typobject
Standardsquare
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9
Dimensioune vum generéierte Bild, mat enger Gesamtpixelzuel vun 768×768 bis 1440×1440 an engem Bildformat vun 1:4 bis 4:1. Gitt d'Dimensiounen direkt un oder wielt e benannte Preset, wéi 'square' oder 'landscape_16_9'.
enable_prompt_expansionoptional
Typboolean
Standardtrue
LLM-baséiert Prompt-Nei-Schreiwen, dat zousätzlech Veraarbechtungszäit géint besser Resultater bei kuerze Prompts tauscht.
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.
enable_safety_checkeroptional
Typboolean
Standardtrue
Sécherheetskontrollschalter, deem seng ausgeschalt Astellung d'Autorisatioun vum Kont erfuerdert. Ouni dës Autorisatioun gëtt all Ufro onofhängeg vun der Astellung kontrolléiert; true aktivéiert d'Kontroll.
obligatoresch Kanoneschen Numm, och akzeptéiert

Output

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"
  }
}
Ä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
images
array of object {url, content_type, file_name, file_size, width, height}Biller, déi vum Modell erstallt goufen.
seeds
array of integerSeed-Wäerter, déi benotzt gi fir déi eenzel Biller ze generéieren.
actual_prompt
string | nullPrompt, deen tatsächlech benotzt gëtt, wann d'Nei-Schreiwe aktivéiert ass.

Méi Modeller: Text zu Bild

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