Dža ko lil

Wan v2.6 Image to Image

Integriruj

Modelosko id wan/v2.6/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/v2.6/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"

Kava mangipen: $0.03 30 API krediti Phir les kate

Lel API klidin
Alibaba Editime e kipesko #image-to-image

Ačhavel vaj restilirisar la 1-3 referencakere kiponca haj jekh promptosa, dži 4 rezultatura per mangipen

Alibaba · Kip

Tiro prvo rezultato si kate

Ker tele jekh mangipen thaj phir les tire API klidinosa. E rezultatur si kopirime amare arakhipneste, vično vaj 7 dives bilačhes.

Ker jekh mangipen

O kontrolura kerde si katar e schemaske. O kodo thaj e cena menjinen sar tu len menjines.

•trubul

Kipesko keripeske instrukcije čhinanes vaj anglickones, dži 2000 karakterura. Sar primer: 'Generate an image using the style of image 1 and background of image 2'.

•trubul image_urls
Čhiv jekh fajl, vaj

De 1–3 editipeske referenčne kipa andro JPEG, JPG, PNG (bi alpha), BMP vaj WEBP formato. Sako fajlo trubul te avel na bareder 10MB, e širin thaj učipen sako 384–5000px. Referencin len andro prompto sar 'image 1', 'image 2', thaj 'image 3', palal lengro bičhardo redosled.

image_size standardno square_hd

Thov e rezultatske dimenzije andro totalno gendo pikselura 768*768 dži 1280*1280. Thov standardno sar 'square_hd', 'landscape_16_9', vaj 'portrait_9_16', vaj de eksakto dimenzije le ImageSize(width=1280, height=720) sahenca.

num_images standardno 1

Kipesko gendo vaś keripe, 1 dži 4.

Lučhe negative_prompt · seed · enable_prompt_expansion · enable_safety_checker
standardno

Sadržai savo te na avel ande rezultato kipo, limitime pe 500 karaktero.

Randomno semeno savo lačharel konsistenca kana labardo palem, thaj podpora reproducibilitake le gendenca 0 dži 2147483647.

POST /run/wan/v2.6/image-to-image?wait=20 hesab → $0.03
# 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.6/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"

Phandel kava mangipen

Tiro kluč ačhel kadale browsereste: bičhalel pes numa ko Doitong API thaj šuvav pes (localStorage) numa te tiknes Remember. Le jekh API ključ

Palal Wan v2.6 Image to Image

Image-to-image modelo savo lel jekh `prompt` dži ko 2000 karakterura, činesko vaj angluno, thaj 1 dži ko 3 referencijake kipa ande `image_urls`. Phen len sar image 1, image 2 thaj image 3 ande prompto, te šaj jekh stilo te jekhuvarinen aver backgroundesa. Šov `image_size` presetura si dostupne, thaj `num_images` si 1-4. Optionalo `negative_prompt` thaj prompto širdaripen.

Parametra

Bičhalav vaj e kanonikano nav vaj e native nav, na duj. Kanonikane nava

NavTip standardnoMuklo Vakeripe
prompttrubul
Tipstring
Kipesko keripeske instrukcije čhinanes vaj anglickones, dži 2000 karakterura. Sar primer: 'Generate an image using the style of image 1 and background of image 2'.
image_urlstrubul images
Tipurl[] · image
De 1–3 editipeske referenčne kipa andro JPEG, JPG, PNG (bi alpha), BMP vaj WEBP formato. Sako fajlo trubul te avel na bareder 10MB, e širin thaj učipen sako 384–5000px. Referencin len andro prompto sar 'image 1', 'image 2', thaj 'image 3', palal lengro bičhardo redosled.
negative_promptopcionalno
Tipstring | null
standardno
Sadržai savo te na avel ande rezultato kipo, limitime pe 500 karaktero.
image_sizeopcionalno
Tipobject
standardnosquare_hd
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9
Thov e rezultatske dimenzije andro totalno gendo pikselura 768*768 dži 1280*1280. Thov standardno sar 'square_hd', 'landscape_16_9', vaj 'portrait_9_16', vaj de eksakto dimenzije le ImageSize(width=1280, height=720) sahenca.
num_imagesopcionalno num_outputs
Tipinteger
standardno1
1 – 4
Kipesko gendo vaś keripe, 1 dži 4.
enable_prompt_expansionopcionalno
Tipboolean
standardnotrue
Lačar LLM-osko promptoske optimalizacija vaš dodatuno 3–4 sekundura procesingoske vaxtosko. Cikne promptura len buteder feder rezultatura.
seedopcionalno
Tipinteger | null
Randomno semeno savo lačharel konsistenca kana labardo palem, thaj podpora reproducibilitake le gendenca 0 dži 2147483647.
enable_safety_checkeropcionalno
Tipboolean
standardnotrue
Moderacia e inputo thaj rezultatoqi, zorutno sako mangipen, te na avel autorizirime o konto te la deaktivuil thaj o opcija te avel čhuty tele.
trubul Kanonikano nav, vi akceptime

Fajloske parametra lel jekh publikano https:// URL, jekh data: URI dži 10 MB, vaj e file_url uploadoski. Fajlura

Rezultato

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "wan/v2.6/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": 30,
    "usd": "0.03",
    "charged": 30,
    "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
      }
    ],
    "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"
  }
}
Tire fajlura, tiro alosaripenSako outputs[].url si kopija amare arakhipneste: vično (čargeime per GB-mase) vaj 7 dives bilačhes, tiro kontoskere regulaciatar vaj ?storage=.
Sa jekh forma sako modeloθartype, url, content_type, width, height thaj duration, varesave imajinake, video thaj audio-ke. output si o modelosko korkoro resultosko objekto.
Outputoske fieldura
images
array of object {url, content_type, file_name, file_size}Rezultatske kipa andro PNG formato.
seed
integerSeed vrednost përdžardi andre keripe.

Bute modeli: Editime e kipesko

AI agentenge: kadija rig sar Markdown si kate https://doitong.com/rom/developers/models/wan/v2.6/image-to-image.md. Sa e modelura thaj e gidura: https://doitong.com/developers/llms.txt