Saltar al cuntegna

Wan 2.5 Text to Image

Integrar

ID dal model 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"

Questa dumonda: $0,05 50 credits API Lantschar sin questa pagina

Obtegna ina clav API

Fatg sin Doitong

Ovras publicas fatgas cun Wan 2.5 da la communitad Doitong. Reutilisescha in prompt cun in clic.

Ovras publicas mussadas: 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

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

Construir ina dumonda

Ils controls vegnan generads dal schema dal model. Il code e ​​il pretsch s'actualiseschan durant che ti als midas.

•obligatori

Instrucziuns per la generaziun da maletgs, limitadas a 2000 caracters e scrittas en chinais u englais.

image_size standard square

Dimensiuns dal maletg generà, cun in dumber total da pixels da 768×768 fin 1440×1440 ed ina proporziun da 1:4 fin 4:1. Inditgar directamain las dimensiuns u tscherner in preset numnà, sco 'square' u 'landscape_16_9'.

num_images standard 1

Dumber da maletgs generads, da 1 fin 4.

Avanzà negative_prompt · seed · enable_prompt_expansion · enable_safety_checker

Prompt negativ che inditgescha il cuntegnair betg giavischà, limità a 500 caracters.

Seed che renda la generaziun reproducibla. Cun definir None vegn tschernì in seed casualmain.

POST /run/wan-25-preview/text-to-image?wait=20 calculaziun → $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"

Executar questa dumonda

Tia clav resta en quest browser: ella vegn tramessa mo al Doitong API e memorisada (localStorage) mo sch'ella scheccas Tiar a memoria. Obtegnair ina clav API

Davart Wan 2.5 Text to Image

Generescha maletgs dad in text `prompt` fin a 2000 caracters en chinais u englais. `num_images` va da 1 fin a 4, e `image_size` accepta preselecziuns u dimensiuns explicitas, cun total da pixels tranter 768x768 e 1440x1440. L'expansiun dal prompt, che riscriva il prompt cun in LLM, è activa per standard. `negative_prompt` ed in `seed` èn era disponibels.

Parameters

Invia u il num canonic u il num nativ, betg omaduas. Nums canonics

NumTip StandardPermess Descripziun
promptobligatori
Tipstring
Instrucziuns per la generaziun da maletgs, limitadas a 2000 caracters e scrittas en chinais u englais.
negative_promptopziunal
Tipstring | null
Prompt negativ che inditgescha il cuntegnair betg giavischà, limità a 500 caracters.
num_imagesopziunal num_outputs
Tipinteger
Standard1
1 – 4
Dumber da maletgs generads, da 1 fin 4.
image_sizeopziunal
Tipobject
Standardsquare
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9
Dimensiuns dal maletg generà, cun in dumber total da pixels da 768×768 fin 1440×1440 ed ina proporziun da 1:4 fin 4:1. Inditgar directamain las dimensiuns u tscherner in preset numnà, sco 'square' u 'landscape_16_9'.
enable_prompt_expansionopziunal
Tipboolean
Standardtrue
Rescrittira dal prompt basada sin LLM, che baratta temp d'elavuraziun supplementar per meglers resultats cun prompts curts.
seedopziunal
Tipinteger | null
Seed che renda la generaziun reproducibla. Cun definir None vegn tschernì in seed casualmain.
enable_safety_checkeropziunal
Tipboolean
Standardtrue
Interrutur da controlla da segirezza, dal qual la configuraziun spustada pretenda l'autorisaziun dal conto. Senza questa autorisaziun vegn mintga dumonda controllada independentamain da la configuraziun; true activa il controllader.
obligatori Num canonic, er acceptà

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"
  }
}
Tias datotecas, tia decisiunMintga outputs[].url è ina copia en nossa memorisaziun: conservada per adina (pajà per GB-mes) u 7 dis gratuitamain, tenor la configuraziun dal conto u ?storage=.
La medema structura per mintga modeltype, url, content_type, width, height e duration, tant per maletgs sco per video e audio. output è l'object da resultat dal model sez.
Champs da l'output
images
array of object {url, content_type, file_name, file_size, width, height}Maletgs producids dal model.
seeds
array of integerValurs da seed utilisadas per generar ils maletgs singuls.
actual_prompt
string | nullPrompt utilisà effectivamain cura che la rescrittira è activada.

Dapli models: Text a maletg

Per agents AI: questa pagina sco Markdown è disponibla sut https://doitong.com/rm/developers/models/wan-25-preview/text-to-image.md. Tut ils models e las guidas: https://doitong.com/developers/llms.txt