Skip to main content
POST
/
v1
/
images
/
generations
curl --request POST \ --url https://baze-api.powerbuyin.top/v1/images/generations \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "model": "wan2.7-image-pro", "response_format": "url", "input": { "messages": [ { "role": "user", "content": [ { "text": "A flower shop with refined windows, a beautiful wooden door, and flowers on display" } ] } ] }, "size": "2K", "n": 1, "watermark": false, "thinking_mode": true, "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

Text-to-image 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, such as 1K, 2K, 4K, or explicit width and height pixels. The gateway maps it to upstream parameters.size.

n
integer

Number of output images. The range is 1-4 when sequential mode is disabled, and 1-12 when sequential mode is enabled. The gateway maps it to upstream parameters.n.

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

Whether to add watermark. Explicit false is preserved and mapped to upstream parameters.watermark.

thinking_mode
boolean

Whether to enable thinking mode. The gateway maps it to upstream parameters.thinking_mode.

enable_sequential
boolean

Whether to enable sequential multi-image mode. The gateway maps it to upstream parameters.enable_sequential.

color_palette
object[]

Custom color palette. The gateway maps it to upstream parameters.color_palette.

seed
integer<int64>

Random seed. Explicit 0 is preserved and mapped to upstream parameters.seed.

Response

Success. Returns the generated image result.

created
integer<int64>

Response creation timestamp.

data
object[]

Generated image result list.

metadata
object

Pass-through upstream response metadata.