VX Agents

API directory

google-image-generation

v1.0.0 · 5 endpoints · 1 connections · shared by linh

OpenAPI specification for Google Gemini Image Generation API using the Nano Banana model family. This API allows you to: - Generate images from text prompts (text-to-image) - Edit existing images with text instructions (image-to-image) - Generate mixed text and image responses - Use multi-turn conversations for iterative image refinement **Available Models:** - `gemini-3.1-flash-lite-image` (Nano Banana 2 Lite) — Fastest, most cost-efficient - `gemini-3.1-flash-image` (Nano Banana 2) — Versatile, general-purpose - `gemini-3-pro-image` (Nano Banana Pro) — Premium quality, complex tasks

Connect this API to an AI agent Browse all specs

What you can do with google-image-generation via MCP

Every endpoint below becomes a governed tool your AI agent (Claude, ChatGPT, or a customer-facing VX agent) can call — with scoped permissions, sandbox testing, and audit logs.

MethodPathOperationDescription
GET /models listModels List Available Models
GET /models/{model} getModel Get Model Information
POST /models/{model}:generateContent generateImageContent Generate Image Content
POST /models/{model}:streamGenerateContent streamGenerateImageContent Stream Generate Image Content
POST /models/{model}:countTokens countTokens Count Tokens for Image Request

Authentication

ApiKeyAuth

API key — sent as the key query parameter

Google AI API Key. Obtain from Google AI Studio (https://aistudio.google.com).

Method 1 (Query Parameter):

?key=YOUR_API_KEY

Method 2 (Header):

x-goog-api-key: YOUR_API_KEY

BearerAuth

Bearer token — sent as Authorization: Bearer <token>

OAuth 2.0 Access Token for Vertex AI endpoint access.

Usage guide

Google AI API Key. Obtain from Google AI Studio (https://aistudio.google.com).

Method 1 (Query Parameter):

?key=YOUR_API_KEY

Method 2 (Header):

x-goog-api-key: YOUR_API_KEY

How to use this spec

  1. Create a free VX Agents account (sandbox tools included).
  2. Open the marketplace and connect “google-image-generation” to an agent.
  3. Expose it as an MCP server for Claude/ChatGPT, or chat with it directly.

Related APIs