Ana içeriğe geç
wan-video avatarı

Wan 2.7 Image to Video API

wan-video/wan/v2.7/image-to-video

Durağan bir fotoğrafı 720P ya da 1080P’de 2-15 saniyelik bir videoya dönüştürün; isterseniz son kareyi de sabitleyin — arka plan müziği ya da ses efektleri görüntüyle birlikte üretilir.

Çözünürlüğe göre fiyatlandırılır

Model girdisi

Input

The opening frame the video animates from. JPEG, JPG, PNG (alpha channel not supported), BMP or WEBP; width and height each between 240 and 8000 px, aspect ratio between 1:8 and 8:1, up to 20 MB. The finished clip takes its frame shape from this image.

Optional description of the motion and camera movement to animate. The scene is already fixed by the start image, so describe what moves rather than re-describing the picture. Chinese and English are supported.

Optional closing frame. Supply it to generate the transition from the start frame to this one; it cannot be used on its own, without a start frame. Same formats and size limits as the start frame, and it should share the start frame's aspect ratio.

Output video resolution. 720P bills at $0.10 per second of finished video; 1080P (default) bills at $0.15 per second.

Min: 2 - Max: 15

Length of the generated video in seconds (2-15).

Additional Settings

Customize your input with more control.

Describe content to avoid in the generated video.

When enabled, an LLM rewrites and enriches your prompt before generation, which suits short prompts but adds some processing time. Disable to follow your exact wording.

Min: 0 - Max: 2147483647

Random seed for reproducible results. Omit for a random seed each run.

You need to be logged in to run this model and view results.
Log in

Model çıktısı

Output

Loading
Generated in 20.543 seconds
Logs (1 lines)

Örnek istekler

Örnekler

Example output 1Example output 2Example output 3

Model fiyatlandırması

Fiyatlandırma

Fiyat, çıktı videonuzun hedef çözünürlüğüne göre değişir.

720P
$0.1
çıktı videosunun saniyesi başına
yani yaklaşık $1 ile 10 saniye
1080P
$0.15
çıktı videosunun saniyesi başına
yani yaklaşık $1 ile 7 saniye

Wan 2.7 Image to Video API

Wan 2.7 Image to Video is a image-to-video AI model by wan-video. On ModelRunner it runs through a REST API or via MCP from any AI assistant, at $0.15 per second of video.

POST https://queue.modelrunner.run/wan-video/wan/v2.7/image-to-video

cURL

# Submit a request to the queue. Input fields go at the top level of the
# body. The optional reserved "metadata" object holds your own flat string
# tags — stored on the request, never sent to the model; filter later with
# GET https://queue.modelrunner.run/requests?metadata=<url-encoded JSON>.
curl -X POST https://queue.modelrunner.run/wan-video/wan/v2.7/image-to-video \
  -H "Authorization: Key $MRUN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "Time passes from dawn to dusk over the courtyard as the mist lifts, the sky deepens to blue and the paper lanterns fl…",
    "duration": 5,
    "resolution": "720P",
    "end_image_url": "https://media.modelrunner.ai/sAl0sDCjmERNcg6N-courtyard-dusk-lanterns-lit.png",
    "start_image_url": "https://media.modelrunner.ai/XgMknA5SyI0kif6Vu2weA.png",
    "enable_prompt_expansion": true,
    "metadata": {
      "project": "my-project"
    }
  }'
# → { "request_id": "...", "status_url": "...", "response_url": "..." }

# Poll status_url until "COMPLETED", then fetch the result
curl "https://queue.modelrunner.run/wan-video/wan/v2.7/image-to-video/requests/$REQUEST_ID/status" \
  -H "Authorization: Key $MRUN_API_KEY"
curl "https://queue.modelrunner.run/wan-video/wan/v2.7/image-to-video/requests/$REQUEST_ID" \
  -H "Authorization: Key $MRUN_API_KEY"

JavaScript

import { modelrunner } from "@modelrunner/client";

const result = await modelrunner.subscribe("wan-video/wan/v2.7/image-to-video", {
  input: {
    "prompt": "Time passes from dawn to dusk over the courtyard as the mist lifts, the sky deepens to blue and the paper lanterns fl…",
    "duration": 5,
    "resolution": "720P",
    "end_image_url": "https://media.modelrunner.ai/sAl0sDCjmERNcg6N-courtyard-dusk-lanterns-lit.png",
    "start_image_url": "https://media.modelrunner.ai/XgMknA5SyI0kif6Vu2weA.png",
    "enable_prompt_expansion": true
  },
});
console.log(result);

Python

import os
import requests

headers = {"Authorization": f"Key {os.environ['MRUN_API_KEY']}"}

submitted = requests.post(
    "https://queue.modelrunner.run/wan-video/wan/v2.7/image-to-video",
    headers=headers,
    json={
      "prompt": "Time passes from dawn to dusk over the courtyard as the mist lifts, the sky deepens to blue and the paper lanterns fl…",
      "duration": 5,
      "resolution": "720P",
      "end_image_url": "https://media.modelrunner.ai/sAl0sDCjmERNcg6N-courtyard-dusk-lanterns-lit.png",
      "start_image_url": "https://media.modelrunner.ai/XgMknA5SyI0kif6Vu2weA.png",
      "enable_prompt_expansion": true
    },
).json()

# Poll submitted["status_url"] until "COMPLETED", then:
result = requests.get(submitted["response_url"], headers=headers).json()

Input parameters

Input parameters of Wan 2.7 Image to Video
NameTypeRequiredDescription
start_image_urlstring (uri)yesThe opening frame the video animates from. JPEG, JPG, PNG (alpha channel not supported), BMP or WEBP; width and height each between 240 and 8000 px, aspect ratio between 1:8 and 8:1, up to 20 MB. The finished clip takes its frame shape from this image.
promptstringnoOptional description of the motion and camera movement to animate. The scene is already fixed by the start image, so describe what moves rather than re-describing the picture. Chinese and English are supported.
end_image_urlstring (uri)noOptional closing frame. Supply it to generate the transition from the start frame to this one; it cannot be used on its own, without a start frame. Same formats and size limits as the start frame, and it should share the start frame's aspect ratio.
resolutionenumnoOutput video resolution. 720P bills at $0.10 per second of finished video; 1080P (default) bills at $0.15 per second. One of: 720P, 1080P. Default: "1080P".
durationintegernoLength of the generated video in seconds (2-15). Default: 5.
negative_promptstringnoDescribe content to avoid in the generated video.
enable_prompt_expansionbooleannoWhen enabled, an LLM rewrites and enriches your prompt before generation, which suits short prompts but adds some processing time. Disable to follow your exact wording. Default: true.
seedintegernoRandom seed for reproducible results. Omit for a random seed each run.

Machine-readable: OpenAPI schema · llms.txt

Use Wan 2.7 Image to Video from Claude & Cursor (MCP)

Point Claude Code, Claude Desktop, Cursor, or any MCP client at the ModelRunner MCP server and Wan 2.7 Image to Video becomes a tool your assistant can call directly — it authorizes via OAuth (no API key in config) and runs this model with the run_model tool using the endpoint wan-video/wan/v2.7/image-to-video.

MCP client config (Claude Desktop, Cursor)

{
  "mcpServers": {
    "modelrunner": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://mcp.modelrunner.run/mcp"]
    }
  }
}

Claude Code

claude mcp add --transport http modelrunner https://mcp.modelrunner.run/mcp

Then ask your assistant, for example: “Run wan-video/wan/v2.7/image-to-video on ModelRunner to generate video”. MCP setup guide.

Model Detayları

Model Detayları

Wan 2.7 Image to Video, durağan bir fotoğrafı kendi ses bandıyla gelen 2-15 saniyelik bir klibe dönüştürür: ekranda olup bitene uyacak şekilde üretilen arka plan müziği ya da ses efektleri, görüntüyle birlikte tek seferde oluşturulur. İlk kare olarak bir görsel ve isterseniz hareketi anlatan kısa bir prompt verin; son kare olarak ikinci bir görsel eklerseniz model ikisi arasındaki geçişi üretir. Klip kare biçimini kaynak görselden alır — dikey bir fotoğraf dikey bir video verir — bu yüzden en-boy oranı ayarı yoktur. Taslaklar için 720P’yi, teslim için 1080P’yi seçin; klip süresini 2 ile 15 saniye arasında dilediğiniz gibi belirleyin.

## En uygun olduğu işler - Tek bir fotoğrafı, packshot’ı ya da illüstrasyonu, sesi hazır gelen kısa bir klibe dönüştürmek - İlk ve son kare çekimleri: ilk ve son görselleri sabitleyip aradaki hareketi modele bırakmak - Kaynak fotoğrafınızın kadrajını koruyan dikey, kare ya da yatay sosyal medya videoları - Daha kısa klipleri uç uca eklemeden, 15 saniyeye kadar tek parça çekimler

## Şu durumlarda başka bir model seçin - Kaynak görselinizde olmayan bir kare biçimi istiyorsanız — çıktı girdi malzemesini izler; önce görseli kırpın ya da en-boy oranı ayarı olan bir text-to-video modeli kullanın - Başlangıç görseliniz yoksa ve çekimin yalnızca metinden kurulmasını istiyorsanız — bir text-to-video modeli kullanın - Sessiz bir klip gerekiyorsa — bu modelde ses her zaman üretilir ve kapatmanın belgelenmiş bir yolu yoktur - 15 saniyeden uzun klipler ya da kare hassasiyetinde zaman çizelgesi kontrolü gerekiyorsa

## İpuçları - `prompt` isteğe bağlıdır — bir kareyi hiç metin yazmadan da canlandırabilirsiniz — ancak görsel sahneyi belirledikten sonra hareket ve kamera üzerindeki tek kontrolünüz odur - `end_image_url` görselinin en-boy oranı başlangıç karesiyle aynı olsun — klibin biçimi girdi malzemesinden gelir - `resolution` maliyeti etkiler: 720P bitmiş videonun saniyesi başına $0.10, 1080P (varsayılan) $0.15 olarak faturalandırılır; bu yüzden denemeleri 720P’de yapın - `enable_prompt_expansion` varsayılan olarak açıktır ve daha zengin detay için prompt’unuzu yeniden yazar — kısa prompt’lara uygundur ama işlem süresini biraz uzatır; tam olarak yazdığınız ifadeye bağlı kalmak için kapatın

## Sınırlamalar - Çıktının kare biçimi kaynak görselinizi izler, ancak onunla birebir aynı olacağı garanti edilmez - Son kare tek başına kullanılamaz — `end_image_url` yalnızca bir başlangıç karesiyle birlikte etkili olur

ModelRunner JavaScript client ile çalıştırmak için: ```js import { modelrunner } from "@modelrunner/client";

const result = await modelrunner.subscribe("wan-video/wan/v2.7/image-to-video", { input: { start_image_url: "https://media.modelrunner.ai/7HYD7QtzL6Up3PuTVw55V.png", prompt: "The balloon drifts slowly across the valley as the mist thins and sunrise light spreads over the ridges", resolution: "1080P", duration: 5, }, }); ```