---
title: "Create Img To Video Task"
method: POST
path: "/api/replicate/v1/img2video/task"
tags: ["创建图生视频任务"]
---

# Create Img To Video Task

`POST /api/replicate/v1/img2video/task`

## Request

- Base URL: `https://api.videofaceswap.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.videofaceswap.io/api/replicate/v1/img2video/task`
- Auth: HTTP bearer

## Query parameters

- `app_id` string, required

## Request body

- RoutersReplicateImgToVideoReplicateV1ImgToVideoItem
  - `model` string: 模型类型
  - `image` string: 图片url
  - `prompt` string, required: 提示词
  - `duration` integer: 输出视频时长
  - `resolution` string: 输出视频分辨率
  - `aspect_ratio` string: 输出视频宽高比
  - `generate_audio` boolean: 输出视频是否有声
  - `last_frame` string: 插值结束图像url
  - `reference_images` string[]: 参考主题图像列表
  - `negative_prompt` string: 负面提示词
  - `platform` string: 功能类型

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/videofaceswap/apis/videofaceswap-api.md) - [All operations](https://skmtc.dev/videofaceswap/apis/videofaceswap-api/llms.txt) - [OpenAPI document](https://skmtc.dev/videofaceswap/apis/videofaceswap-api/revisions/1b3dd1817626?raw)
