---
title: "Generate AI images with Google Nano Banana (Gemini)"
method: POST
path: "/api/v1/ai-videos/generate-aiimages"
tags: ["aiVideos"]
---

# Generate AI images with Google Nano Banana (Gemini)

`POST /api/v1/ai-videos/generate-aiimages`

## Request

- Base URL: `https://api.brandbooster.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.brandbooster.ai/api/v1/ai-videos/generate-aiimages`
- Auth: HTTP bearer

Generate or transform images using Google's Nano Banana image models via Gemini.

**Request body (JSON):**
- `prompt` (string, required): Text prompt describing the desired image / transformation.
- `image_urls` (optional, list of strings): One or more image URLs for image-to-image editing.
- `model` (optional, string): `"nano"` (default, gemini-2.5-flash-image) or `"nano_pro"` (gemini-3-pro-image-preview).
- `aspect_ratio` (optional, string): Target aspect ratio like `"16:9"`, `"9:16"`, `"1:1"` etc. (used when available).

**Response:**
```json
{
  "success": true,
  "model": "nano",
  "image_url": "https://.../generated.png"
}
```

## Request body

- GenerateAiImagesRequest
  - `prompt` string, required
  - `image_urls` string[], nullable
  - `model` string, nullable
  - `aspect_ratio` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/brandbooster/apis/fastapi.md) - [All operations](https://skmtc.dev/brandbooster/apis/fastapi/llms.txt) - [OpenAPI document](https://skmtc.dev/brandbooster/apis/fastapi/revisions/8e8c18c2dc35?raw)
