---
title: "Add Img Generate"
method: POST
path: "/api/vmodel/v1/img/headshot/task"
---

# Add Img Generate

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

新增自定义图片生成任务

## Query parameters

- `app_id` string, required

## Request body

- RoutersVmodelReplicateToVmodelImgFaceGenerateVmodelV1UploadGenerateItem
  - `input_image` string, required: The URL of the image file
  - `input_image2` string
  - `input_image3` string
  - `input_image4` string
  - `prompt` string, required: The text to convert to generate
  - `num_outputs` integer: The number of outputs to generate
  - `platform` string: Type of feature

## 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)
