Skip to main content
POST
/
v1
/
images
/
edits
curl --request POST \
  --url https://baze-api.powerbuyin.top/v1/images/edits \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "wan2.7-image-pro",
  "response_format": "url",
  "input": {
    "messages": [
      {
        "role": "user",
        "content": [
          {
            "image": "https://example.com/car.webp"
          },
          {
            "image": "https://example.com/paint.webp"
          },
          {
            "text": "Spray the graffiti from image 2 onto the car in image 1"
          }
        ]
      }
    ]
  },
  "size": "2K",
  "n": 1,
  "watermark": false,
  "negative_prompt": "keep the original body color",
  "seed": 0
}
'
{
  "created": 123,
  "data": [
    {
      "url": "<string>",
      "b64_json": "<string>",
      "revised_prompt": "<string>"
    }
  ],
  "metadata": {}
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
model
enum<string>
required

Image editing model name.

Available options:
wan2.7-image-pro
input
object
required
response_format
enum<string>
default:url

Unified response format.

Available options:
url,
b64_json
size
string

Output image resolution. For image editing, the official presets such as 1K and 2K are recommended. The gateway maps it to upstream parameters.size.

n
integer

Number of generated images. The gateway maps it to upstream parameters.n.

Required range: 1 <= x <= 4
watermark
boolean

Whether to add watermark. The gateway maps it to upstream parameters.watermark.

negative_prompt
string

Negative prompt. The gateway maps it to upstream parameters.negative_prompt.

seed
integer

Random seed in the range [0, 2147483647]. The gateway maps it to upstream parameters.seed.

bbox_list
integer[][][]

Interactive edit bounding boxes aligned with the input image order. The gateway maps it to upstream parameters.bbox_list.

Response

Success. Returns the edited image result.

created
integer<int64>

Unix timestamp in seconds when the response was created.

data
object[]

Generated image list.

metadata
object

Additional response metadata. Fields may vary by capability.