---
title: "Create Img Edit Task"
method: POST
path: "/api/v2/img-edit/create"
tags: ["img edit"]
---

# Create Img Edit Task

`POST /api/v2/img-edit/create`

## Request

- Base URL: `https://api.backgroundremove.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.backgroundremove.io/api/v2/img-edit/create`
- Auth: HTTP bearer

## Query parameters

- `app_id` string, required
- `guest_id` string, required

## Request body

- RoutersV2FeaturesImgEditV1ImgEditItem
  - `origin_url` string, required: 原图 URL
  - `img_id` string, nullable: 图片id
  - `id` integer, nullable: 主键id
  - `prompt` string, nullable: 编辑提示词
  - `platform` string: 功能类型
  - `model` string, nullable: 模型
  - `resolution` string: 分辨率：1k 基础版，2k pro 版
  - `aspect_ratio` string: 输出宽高比
  - `reference_urls` string[]: 额外参考图 URL
  - `google_search` boolean, nullable: 是否启用 Google 搜索
  - `output_format` string, nullable: 输出格式
  - `seed` integer, nullable: 随机种子
  - `format` string: 背景移除输出图片格式
  - `reverse` boolean: 背景移除时是否反向移除
  - `background_type` string: 背景移除背景类型

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

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