Skip to content

Images

BVE Gateway supports image generation and image editing.

POST https://api.bve.me/v1/images/generations

Requires Authorization: Bearer sk-bve-YOUR_KEY.

Generates images from a text prompt. Proxies directly to Fuelix.

{
"model": "imagen-3",
"prompt": "A photorealistic red apple on a white background",
"n": 1
}
FieldTypeRequiredDescription
modelstringYesImage model (see below)
promptstringYesText description of the image
nintegerNoNumber of images (default 1)
sizestringNoImage size (model-dependent)
qualitystringNostandard or hd
response_formatstringNourl or b64_json
stylestringNonatural or vivid (model-dependent)
ModelDescription
imagen-3Google Imagen 3 — high-quality photorealistic images
imagen-3-fastGoogle Imagen 3 Fast — faster generation, similar quality
imagen-4Google Imagen 4 — latest generation
imagen-4-ultraGoogle Imagen 4 Ultra — highest quality
dall-e-3Listed in models API; availability via this endpoint may vary
{
"created": 1716288000,
"data": [
{
"url": "https://..."
}
]
}
Terminal window
curl https://api.bve.me/v1/images/generations \
-H "Authorization: Bearer sk-bve-YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "imagen-3",
"prompt": "A photorealistic red apple on a white background",
"n": 1
}'
import OpenAI from 'openai';
const client = new OpenAI({
apiKey: 'sk-bve-YOUR_KEY',
baseURL: 'https://api.bve.me/v1',
});
const image = await client.images.generate({
model: 'imagen-3',
prompt: 'A photorealistic red apple on a white background',
n: 1,
});
console.log(image.data[0].url);

POST https://api.bve.me/v1/images/edits

Requires Authorization: Bearer sk-bve-YOUR_KEY.

Edits an existing image based on a prompt. Accepts multipart/form-data.

FieldTypeRequiredDescription
imagebinaryYesPNG image to edit (max 4 MB, must be square)
promptstringYesDescription of the desired edit
maskbinaryNoPNG mask (transparent areas indicate where to edit)
modelstringNoImage model to use
nintegerNoNumber of images
sizestringNoImage size
response_formatstringNourl or b64_json
Terminal window
curl https://api.bve.me/v1/images/edits \
-H "Authorization: Bearer sk-bve-YOUR_KEY" \
-F image="@image.png" \
-F prompt="Add a rainbow in the background" \
-F model="imagen-3"
  • Image variations (POST /v1/images/variations) are not supported by Fuelix and return 404.
  • The multipart request is forwarded directly — no re-encoding or buffering.
  • Image and mask files must be PNG format.