Мазмұнға өту

Wan 2.5 Image to Image

Интеграциялау

Модель идентификаторы 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"

Осы сұрау: 0,05 $ 50 API кредиті Осы бетте іске қосу

API кілтін алу

Мәтіндік нұсқау және бір немесе екі анықтамалық кескін арқылы Wan 2.5 кескін өңдеуі

Doitong-та жасалған

Doitong қауымдастығы Wan 2.5 арқылы жасаған жария жұмыстары. Промптты бір рет басу арқылы қайта пайдаланыңыз.

Көрсетілген жария жұмыстар: 5
Create a highly realistic UGC-style smartphone video inside a modern commercial airplane during a... Бейне

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... Бейне

**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... Бейне

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... Бейне

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... Бейне

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

Сұрау жасау

Басқару элементтері модель схемасынан жасалады. Оларды өзгерткен сайын код пен баға жаңартылады.

•міндетті

2000 таңбамен шектелген кескінді өңдеуге арналған мәтіндік нұсқаулар.

•міндетті image_urls
Файлды тастаңыз немесе

Өңдеуге арналған кескін URL мекенжайлары; көбірек берілсе, тек алғашқы 2-еуі қолданылады. Бір кескінді өңдеу 1 URL қабылдайды; бірнеше анықтамалық генерация 2 URL-ге дейін қабылдайды.

image_size әдепкі square

Генерацияланған кескіннің өлшемдерін ені мен биіктігін 384–1440 пиксель аралығында көрсету арқылы орнатыңыз.

num_images әдепкі 1

Генерацияланатын кескіндер саны: 1-ден 4-ке дейін.

Қосымша negative_prompt · seed · enable_safety_checker

Қажетсіз мазмұнды көрсететін теріс нұсқау, 500 таңбамен шектелген.

Генерацияны қайта өндіруге мүмкіндік беретін seed. None мәнін орнатсаңыз, seed кездейсоқ таңдалады.

POST /run/wan-25-preview/image-to-image?wait=20 бағасы → 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"

Осы сұрауды іске қосу

Кілтіңіз осы браузерде қалады: ол тек Doitong API-ге жіберіледі және Remember параметрін белгілеcеңіз ғана localStorage ішінде сақталады. API кілтін алу

Wan 2.5 Image to Image туралы

2000 таңбаға дейінгі мәтіндік `prompt` арқылы кескінді өңдейді. `image_urls` бір реттік өңдеу үшін бір кескінді, көп анықтамалы генерация үшін екі кескінді қабылдайды; екеуден артығы еленбейді. `image_size` алты дайын параметрді ұсынады, ені мен биіктігі 384–1440 пиксель аралығында. Бір шақыруда 1–4 кескін қайтара алады және `negative_prompt` пен `seed` қабылдайды.

Параметрлер

Канондық атауды немесе төл атауды жіберіңіз, екеуін қатар жібермеңіз. Канондық атаулар

АтауыТүрі ӘдепкіРұқсат етілген Сипаттама
promptміндетті
Түріstring
2000 таңбамен шектелген кескінді өңдеуге арналған мәтіндік нұсқаулар.
image_urlsміндетті images
Түріurl[] · image
Өңдеуге арналған кескін URL мекенжайлары; көбірек берілсе, тек алғашқы 2-еуі қолданылады. Бір кескінді өңдеу 1 URL қабылдайды; бірнеше анықтамалық генерация 2 URL-ге дейін қабылдайды.
negative_promptміндетті емес
Түріstring | null
Қажетсіз мазмұнды көрсететін теріс нұсқау, 500 таңбамен шектелген.
image_sizeміндетті емес
Түріobject
Әдепкіsquare
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9
Генерацияланған кескіннің өлшемдерін ені мен биіктігін 384–1440 пиксель аралығында көрсету арқылы орнатыңыз.
num_imagesміндетті емес num_outputs
Түріinteger
Әдепкі1
1 – 4
Генерацияланатын кескіндер саны: 1-ден 4-ке дейін.
seedміндетті емес
Түріinteger | null
Генерацияны қайта өндіруге мүмкіндік беретін seed. None мәнін орнатсаңыз, seed кездейсоқ таңдалады.
enable_safety_checkerміндетті емес
Түріboolean
Әдепкіtrue
Өшірулі күйі есептік жазбаны авторизациялауды талап ететін қауіпсіздік тексергіші. Мұндай авторизациясыз, параметрге қарамастан, әр сұрау тексеріледі; true тексергішті қосады.
міндетті Канондық атау, бұл да қабылданады

Файл параметрлері жалпыға қолжетімді https:// URL мекенжайын, 10 MB-қа дейінгі data: URI мекенжайын немесе жүктеп салынған файлдың file_url мәнін қабылдайды. Файлдар

Шығыс

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"
  }
}
Файлдарыңыз — таңдауыңызӘр outputs[].url — сақтау орнымыздағы көшірме: мәңгі (әр GB-ай үшін ақылы) немесе аккаунт параметрі не ?storage= арқылы 7 күн тегін сақталады.
Әр модельдегі пішім бірдейtype, url, content_type, width, height және duration — кескіндерге, бейнеге және аудиоға ортақ. output — модельдің өз нәтижелер нысаны.
Шығыс өрістері
images
array of object {url, content_type, file_name, file_size, width, height}Өңдеу нәтижесінде алынған кескіндер.
seeds
array of integerЖеке кескіндерді генерациялау үшін пайдаланылатын seed мәндері.
actual_prompt
string | nullБастапқы нұсқау мәтіні; кескінді өңдеу нұсқауды кеңейтуді қолдамайды.

Қосымша модельдер: Кескінді өңдеу

AI агенттеріне: бұл беттің Markdown нұсқасы мына жерде: https://doitong.com/kk/developers/models/wan-25-preview/image-to-image.md. Барлық модельдер мен нұсқаулықтар: https://doitong.com/developers/llms.txt