Leum chun t-susbaint

Wan 2.5 Image to Image

Amalaich

ID a’ mhodail 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"

An t-iarrtas seo: $0.05 50 creideasan API Ruith e air an duilleig seo

Faigh iuchair API

Air a dhèanamh air Doitong

Obraichean poblach a rinn coimhearsnachd Doitong le Wan 2.5. Ath-chleachd prompt ann an aon bhriogadh.

Obraichean poblach air an sealltainn: 2
Create a realistic cinematic UGC-style commercial video, exactly 30 seconds long. The entire scen... Bhidio

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...

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

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

Tog iarrtas

Tha na smachdan air an cruthachadh bho sgeama a’ mhodail. Bidh an còd agus a’ phrìs ag ùrachadh fhad ’s a dh’atharraicheas tu iad.

•riatanach

Stiùiridhean teacsa airson an ìomhaigh a dheasachadh, cuibhrichte ri 2000 caractar.

•riatanach image_urls
Leig às faidhle, no

URLan ìomhaighean airson deasachadh, le dìreach a’ chiad 2 air an cleachdadh ma thèid barrachd a solar. Bidh deasachadh aon ìomhaigh a’ gabhail 1 URL; gabhaidh gineadh ioma-iomraidh ri suas ri 2 URL.

image_size bun-roghainn square

Suidhich tomhasan na h-ìomhaigh a chaidh a ghineadh le leud agus àirde, gach fear eadar 384–1440 piogsail.

num_images bun-roghainn 1

Àireamh nan ìomhaighean a thèid a ghineadh, eadar 1 agus 4.

Adhartach negative_prompt · seed · enable_safety_checker

Prompt àicheil a’ sònrachadh susbaint nach eilear ag iarraidh, cuibhrichte gu 500 caractar.

Sìol a nì gineadh ath-riochdachail. Le bhith ga shuidheachadh gu None, thèid sìol a thaghadh air thuaiream.

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

Ruith an t-iarrtas seo

Fuirichidh an iuchair agad sa bhrobhsair seo: thèid a cur chun Doitong API a-mhàin agus a sàbhaladh (localStorage) a-mhàin ma chuireas tu comharra ri Cuimhnich. Faigh iuchair API

Mu Wan 2.5 Image to Image

Deasaichidh e ìomhaigh bho `prompt` teacsa le suas ri 2000 caractar. Gabhaidh `image_urls` aon ìomhaigh airson deasachadh singilte no dhà airson gineadh ioma-iomraidh; thèid nithean a bharrachd air dhà a leigeil seachad. Tha `image_size` a’ tabhann sia ro-shuidheachaidhean, le leud agus àirde eadar 384 agus 1440 piogsail. Faodaidh e 1 gu 4 ìomhaighean a thilleadh gach gairm agus gabhaidh e ri `negative_prompt` agus `seed`.

Paramadairean

Cuir an t-ainm canonical no an t-ainm dùthchasach, chan e an dà chuid. Ainmean canonical

AinmSeòrsa Bun-roghainnCeadaichte Tuairisgeul
promptriatanach
Seòrsastring
Stiùiridhean teacsa airson an ìomhaigh a dheasachadh, cuibhrichte ri 2000 caractar.
image_urlsriatanach images
Seòrsaurl[] · image
URLan ìomhaighean airson deasachadh, le dìreach a’ chiad 2 air an cleachdadh ma thèid barrachd a solar. Bidh deasachadh aon ìomhaigh a’ gabhail 1 URL; gabhaidh gineadh ioma-iomraidh ri suas ri 2 URL.
negative_promptroghainneil
Seòrsastring | null
Prompt àicheil a’ sònrachadh susbaint nach eilear ag iarraidh, cuibhrichte gu 500 caractar.
image_sizeroghainneil
Seòrsaobject
Bun-roghainnsquare
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9
Suidhich tomhasan na h-ìomhaigh a chaidh a ghineadh le leud agus àirde, gach fear eadar 384–1440 piogsail.
num_imagesroghainneil num_outputs
Seòrsainteger
Bun-roghainn1
1 – 4
Àireamh nan ìomhaighean a thèid a ghineadh, eadar 1 agus 4.
seedroghainneil
Seòrsainteger | null
Sìol a nì gineadh ath-riochdachail. Le bhith ga shuidheachadh gu None, thèid sìol a thaghadh air thuaiream.
enable_safety_checkerroghainneil
Seòrsaboolean
Bun-roghainntrue
Tionndadh sgrùdaidh sàbhailteachd agus feumaidh a shuidheachadh dheth ùghdarras cunntais. Gun an ùghdarras sin, thèid gach iarrtas a sgrùdadh ge bith dè an suidheachadh; tha true a’ cur an sgrùdaiche an comas.
riatanach Ainm canonical, gabhar ris cuideachd

Gabhaidh paramadairean faidhle ri URL poblach https://, URI data: suas ri 10 MB, no file_url de luchdachadh suas. Faidhlichean

Toradh

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"
  }
}
Na faidhlichean agad, do roghainnTha gach outputs[].url na lethbhreac air an stòradh againn: air a chumail gu bràth (air a phàigheadh gach GB-mìos) no 7 latha an-asgaidh, a rèir suidheachadh a’ chunntais agad no ?storage=.
An aon chruth air gach modailtype, url, content_type, width, height agus duration, airson dealbhan, bhidio agus fuaim le chèile. ’S e output nì toraidh a’ mhodail fhèin.
Raointean toraidh
images
array of object {url, content_type, file_name, file_size, width, height}Ìomhaighean a thig bho dheasachadh.
seeds
array of integerLuachan sìl a thathar a’ cleachdadh gus na h-ìomhaighean fa leth a ghineadh.
actual_prompt
string | nullTeacsa a’ phrompt thùsail; chan eil deasachadh ìomhaighean a’ toirt taic do leudachadh a’ phrompt.

Barrachd mhodalan: Deasachadh Ìomhaighean

Do riochdairean AI: tha an duilleag seo mar Markdown aig https://doitong.com/gd/developers/models/wan-25-preview/image-to-image.md. Na modailean agus na treòraichean uile: https://doitong.com/developers/llms.txt