Skip to main content
POST
/
v1
/
content
/
generate-image
Generate an image
curl --request POST \
  --url https://brew.new/api/v1/content/generate-image \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "prompt": "<string>",
  "image1": "<string>",
  "image2": "<string>"
}
'
{
  "url": "<string>",
  "prompt": "<string>",
  "description": "<string>",
  "warnings": [
    "<string>"
  ]
}

Authorizations

Authorization
string
header
default:Bearer brew_your_api_key
required

Send your Brew API key as Authorization: Bearer brew_xxx.

Headers

Idempotency-Key
string

Optional idempotency key for safe retries. Reusing the same key with the same request body returns the original response for 24 hours.

Required string length: 1 - 100

Body

application/json

Prompt + optional mode / aspect ratio / model / source images.

prompt
string
required
Required string length: 1 - 4000
mode
enum<string>
Available options:
text-to-image,
image-editing
aspectRatio
enum<string>
Available options:
16:9,
3:2,
4:3,
1:1,
2:3,
3:4,
9:16
model
enum<string>
Available options:
google/gemini-3-pro-image,
google/gemini-2.5-flash-image,
google/gemini-3.1-flash-image-preview,
bfl/flux-2-klein-4b,
bfl/flux-2-pro,
bfl/flux-2-klein-9b,
qwen/qwen-image,
qwen/qwen-image-edit
image1
string<uri>
image2
string<uri>

Response

The operation result.

url
string<uri>
required
prompt
string
required
description
string
warnings
string[]