Siirry sisältöön

Wan 2.5 Image to Image

Integroi

Mallin tunniste wan-25-preview/image-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/image-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",
    "images": [
      "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
    ]
  }'

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

Tämä pyyntö: 0,05 $ 50 API-krediittiä Suorita tällä sivulla

Hanki API-avain

Tehty Doitongilla

Doitong-yhteisön Wan 2.5-mallilla tekemät julkiset työt. Käytä kehotetta uudelleen yhdellä napsautuksella.

Näytetyt julkiset työt: 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,...

Muodosta pyyntö

Säätimet luodaan mallin skeemasta. Koodi ja hinta päivittyvät, kun muutat arvoja.

•pakollinen

Kuvan muokkauksen tekstiohjeet, enintään 2000 merkkiä.

•pakollinen image_urls
Pudota tiedosto tai

Muokkaukseen tarkoitetut kuva-URL:t; jos niitä toimitetaan enemmän, käytetään vain kahta ensimmäistä. Yhden kuvan muokkaus käyttää yhtä URL:ia; usean viitteen generointi hyväksyy enintään 2 URL:ia.

image_size oletus square

Aseta luodun kuvan mitat määrittämällä leveys ja korkeus, joiden kumpikin on välillä 384–1440 pikseliä.

num_images oletus 1

Luotavien kuvien määrä, 1–4.

Lisäasetukset negative_prompt · seed · enable_safety_checker

Ei-toivotun sisällön määrittävä negatiivinen kehote, enintään 500 merkkiä.

Generoinnin toistettavaksi tekevä siemen. Arvon None asettaminen valitsee siemenen satunnaisesti.

POST /run/wan-25-preview/image-to-image?wait=20 hinta → 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/image-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",
    "images": [
      "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
    ]
  }'

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

Suorita tämä pyyntö

Avaimesi säilyy tässä selaimessa: se lähetetään vain Doitong APIlle ja tallennetaan localStorageen vain, jos valitset Muista. Hanki API-avain

Tietoja: Wan 2.5 Image to Image

Muokkaa kuvaa enintään 2000 merkin tekstimuotoisen `prompt`-kehotteen perusteella. `image_urls` ottaa yhden kuvan yksittäiseen muokkaukseen tai kaksi moniviitteiseen luontiin; ylimääräiset kuvat ohitetaan. `image_size` tarjoaa kuusi esiasetusta, joiden leveys ja korkeus ovat välillä 384–1440 pikseliä. Kutsu voi palauttaa 1–4 kuvaa ja hyväksyy `negative_prompt`-kehotteen sekä `seed`-arvon.

Parametrit

Lähetä joko kanoninen nimi tai natiivi nimi, älä molempia. Kanoniset nimet

NimiTyyppi OletusSallitut Kuvaus
promptpakollinen
Tyyppistring
Kuvan muokkauksen tekstiohjeet, enintään 2000 merkkiä.
image_urlspakollinen images
Tyyppiurl[] · image
Muokkaukseen tarkoitetut kuva-URL:t; jos niitä toimitetaan enemmän, käytetään vain kahta ensimmäistä. Yhden kuvan muokkaus käyttää yhtä URL:ia; usean viitteen generointi hyväksyy enintään 2 URL:ia.
negative_promptvalinnainen
Tyyppistring | null
Ei-toivotun sisällön määrittävä negatiivinen kehote, enintään 500 merkkiä.
image_sizevalinnainen
Tyyppiobject
Oletussquare
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9
Aseta luodun kuvan mitat määrittämällä leveys ja korkeus, joiden kumpikin on välillä 384–1440 pikseliä.
num_imagesvalinnainen num_outputs
Tyyppiinteger
Oletus1
1 – 4
Luotavien kuvien määrä, 1–4.
seedvalinnainen
Tyyppiinteger | null
Generoinnin toistettavaksi tekevä siemen. Arvon None asettaminen valitsee siemenen satunnaisesti.
enable_safety_checkervalinnainen
Tyyppiboolean
Oletustrue
Turvatarkistuksen kytkin, jonka poiskytketty asetus edellyttää tilin valtuutusta. Ilman tätä valtuutusta jokainen pyyntö tarkistetaan asetuksesta riippumatta; true ottaa tarkistuksen käyttöön.
pakollinen Kanoninen nimi, myös hyväksytty

Tiedostoparametrit hyväksyvät julkisen https://-URL:n, enintään 10 MB:n data:-URI:n tai lähetyksen file_url-arvon. Tiedostot

Tulos

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "wan-25-preview/image-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",
    "image_urls": [
      "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
    ]
  },
  "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": "Reimagine the scene under a raging thunderstorm at night: lightning forks across the sky, illuminating the samurai in stark flashes of white light."
  },
  "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"
  }
}
Tiedostosi, valintasiJokainen outputs[].url on kopio tallennustilassamme: säilytetään ikuisesti (maksetaan gigatavu-kuukauden mukaan) tai 7 päivää ilmaiseksi tiliasetuksesi tai ?storage= perusteella.
Sama rakenne kaikissa malleissatype, url, content_type, width, height ja duration kuville, videolle ja äänelle. output on mallin oma tulosobjekti.
Tuloksen kentät
images
array of object {url, content_type, file_name, file_size, width, height}Muokkauksesta syntyvät kuvat.
seeds
array of integerYksittäisten kuvien luomiseen käytettävät siemenarvot.
actual_prompt
string | nullAlkuperäinen kehote; kuvan muokkaus ei tue kehotteen laajennusta.

Lisää malleja: Kuvan muokkaus

Tekoälyagenteille: tämän sivun Markdown-muoto on osoitteessa https://doitong.com/fi/developers/models/wan-25-preview/image-to-image.md. Kaikki mallit ja oppaat: https://doitong.com/developers/llms.txt