跳转到主要内容
POST
/
v3
/
async
/
wan-2.5-i2v-preview
Wan 2.5 Preview 图生视频
curl --request POST \
  --url https://api.ppio.com/v3/async/wan-2.5-i2v-preview \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: <content-type>' \
  --data '
{
  "input": {
    "prompt": "<string>",
    "negative_prompt": "<string>",
    "img_url": "<string>",
    "audio_url": "<string>"
  },
  "parameters": {
    "resolution": "<string>",
    "duration": 123,
    "prompt_extend": true,
    "watermark": true,
    "audio": true,
    "seed": 123
  }
}
'
import requests

url = "https://api.ppio.com/v3/async/wan-2.5-i2v-preview"

payload = {
    "input": {
        "prompt": "<string>",
        "negative_prompt": "<string>",
        "img_url": "<string>",
        "audio_url": "<string>"
    },
    "parameters": {
        "resolution": "<string>",
        "duration": 123,
        "prompt_extend": True,
        "watermark": True,
        "audio": True,
        "seed": 123
    }
}
headers = {
    "Content-Type": "<content-type>",
    "Authorization": "<authorization>"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
  method: 'POST',
  headers: {'Content-Type': '<content-type>', Authorization: '<authorization>'},
  body: JSON.stringify({
    input: {
      prompt: '<string>',
      negative_prompt: '<string>',
      img_url: '<string>',
      audio_url: '<string>'
    },
    parameters: {
      resolution: '<string>',
      duration: 123,
      prompt_extend: true,
      watermark: true,
      audio: true,
      seed: 123
    }
  })
};

fetch('https://api.ppio.com/v3/async/wan-2.5-i2v-preview', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
  CURLOPT_URL => "https://api.ppio.com/v3/async/wan-2.5-i2v-preview",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'input' => [
        'prompt' => '<string>',
        'negative_prompt' => '<string>',
        'img_url' => '<string>',
        'audio_url' => '<string>'
    ],
    'parameters' => [
        'resolution' => '<string>',
        'duration' => 123,
        'prompt_extend' => true,
        'watermark' => true,
        'audio' => true,
        'seed' => 123
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "Authorization: <authorization>",
    "Content-Type: <content-type>"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.ppio.com/v3/async/wan-2.5-i2v-preview"

	payload := strings.NewReader("{\n  \"input\": {\n    \"prompt\": \"<string>\",\n    \"negative_prompt\": \"<string>\",\n    \"img_url\": \"<string>\",\n    \"audio_url\": \"<string>\"\n  },\n  \"parameters\": {\n    \"resolution\": \"<string>\",\n    \"duration\": 123,\n    \"prompt_extend\": true,\n    \"watermark\": true,\n    \"audio\": true,\n    \"seed\": 123\n  }\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Content-Type", "<content-type>")
	req.Header.Add("Authorization", "<authorization>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.post("https://api.ppio.com/v3/async/wan-2.5-i2v-preview")
  .header("Content-Type", "<content-type>")
  .header("Authorization", "<authorization>")
  .body("{\n  \"input\": {\n    \"prompt\": \"<string>\",\n    \"negative_prompt\": \"<string>\",\n    \"img_url\": \"<string>\",\n    \"audio_url\": \"<string>\"\n  },\n  \"parameters\": {\n    \"resolution\": \"<string>\",\n    \"duration\": 123,\n    \"prompt_extend\": true,\n    \"watermark\": true,\n    \"audio\": true,\n    \"seed\": 123\n  }\n}")
  .asString();
require 'uri'
require 'net/http'

url = URI("https://api.ppio.com/v3/async/wan-2.5-i2v-preview")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Content-Type"] = '<content-type>'
request["Authorization"] = '<authorization>'
request.body = "{\n  \"input\": {\n    \"prompt\": \"<string>\",\n    \"negative_prompt\": \"<string>\",\n    \"img_url\": \"<string>\",\n    \"audio_url\": \"<string>\"\n  },\n  \"parameters\": {\n    \"resolution\": \"<string>\",\n    \"duration\": 123,\n    \"prompt_extend\": true,\n    \"watermark\": true,\n    \"audio\": true,\n    \"seed\": 123\n  }\n}"

response = http.request(request)
puts response.read_body
{
  "task_id": "<string>"
}
Wan 2.5 Preview 图生视频模型支持根据首帧图片和文本生成 5 秒或 10 秒的视频。新增音频能力:支持自动配音,也可自定义音频文件。
本接口支持个人认证及企业认证用户调用。请参见 实名认证,完成个人用户认证或企业用户认证,以确保可以正常使用本功能。
这是一个异步API,只会返回异步任务的 task_id。您应该使用该 task_id 请求 查询任务结果 API 来检索视频生成结果。

请求头

Content-Type
string
必填
枚举值: application/json
Authorization
string
必填
Bearer 身份验证格式,例如:Bearer {{API 密钥}}。

请求体

input
object
必填
基础输入信息,如提示词等。
parameters
object
视频处理参数,例如指定输出视频分辨率、时长等。

返回结果

task_id
string
必填
异步任务的 task_id。您应该使用该 task_id 请求 查询任务结果 API 以获取生成结果
最后修改于 2026年1月14日