---
title: "Create Texttovideo Task"
method: POST
path: "/api/text/v1/task"
tags: ["创建文生视频任务"]
---

# Create Texttovideo Task

`POST /api/text/v1/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/text/v1/task`
- Auth: HTTP bearer

## Query parameters

- `app_id` string, required

## Request body

- TextToVideoItem
  - `style` string: 类型：general ,anime
  - `prompt` string, required: 文本内容
  - `duration` integer: 视频时长
  - `platform` string: 生成类型
  - `movement_amplitude` string: 动作幅度
  - `aspect_ratio` string: 视频比例：16:9, 4:3, 1:1
  - `resolution` 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)
