---
title: "Add Yiyuan Img Generate"
method: POST
path: "/api/pay/v1/img/generate/yiyuan/task"
---

# Add Yiyuan Img Generate

`POST /api/pay/v1/img/generate/yiyuan/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/pay/v1/img/generate/yiyuan/task`
- Auth: HTTP bearer

新增img生成任务

## Query parameters

- `app_id` string, required

## Request body

- UploadYiyuanGenerateItem
  - `model` string: The text to convert to generate
  - `platform` string: Functional differentiation marker
  - `prompt` string, required: The text to convert to generate
  - `height` integer
  - `width` integer
  - `negative_prompt` 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)
