YepAPI
AI Models

Nano Banana 3 Pro

Professional-quality AI image generation with advanced reasoning. Higher fidelity output and better prompt understanding.

POST/v1/media/queue
~$0.20 est.

Overview

Professional-quality image generation with advanced reasoning. Higher fidelity output and better prompt understanding than Flash variant.

PropertyValue
Model IDgoogle/nano-banana-3-pro
Upstream Modelgemini-3-pro-image-preview
BillingToken-based (dynamic)
Input Price$4.00 / 1M tokens
Output Price (image)$240.00 / 1M tokens
Typical Cost~$0.20 per image

Usage

All media models use the async job queue. Submit a job, then poll for the result.

Step 1: Submit Job

Text-to-Image

const res = await fetch('https://api.yepapi.com/v1/media/queue', {
  method: 'POST',
  headers: {
    'x-api-key': 'YOUR_API_KEY',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    model: 'google/nano-banana-3-pro',
    prompt: 'A photorealistic portrait of a wise owl wearing a monocle',
    options: { aspectRatio: '1:1' },
  }),
});
const { data } = await res.json();
// data.jobId — use this to poll for results
curl -X POST https://api.yepapi.com/v1/media/queue \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "google/nano-banana-3-pro", "prompt": "A photorealistic portrait of a wise owl", "options": {"aspectRatio": "1:1"}}'

Image-to-Image (Edit / Transform)

Pass a reference image via imageData alongside your prompt to edit or transform an existing image.

const res = await fetch('https://api.yepapi.com/v1/media/queue', {
  method: 'POST',
  headers: {
    'x-api-key': 'YOUR_API_KEY',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    model: 'google/nano-banana-3-pro',
    prompt: 'Convert this photo to a watercolor painting style',
    options: { aspectRatio: '1:1' },
    imageData: {
      mimeType: 'image/jpeg',
      base64: '...', // Base64-encoded image
    },
  }),
});

Step 2: Poll for Result

const status = await fetch(`https://api.yepapi.com/v1/media/status/${data.jobId}`, {
  headers: { 'x-api-key': 'YOUR_API_KEY' },
});
const { data: job } = await status.json();
// job.status — "pending" | "processing" | "completed" | "failed"
// job.result.image — { mimeType, base64 } when completed
curl https://api.yepapi.com/v1/media/status/JOB_ID \
  -H "x-api-key: YOUR_API_KEY"

Request Body

ParameterTypeRequiredDescriptionDefault
modelstringYesgoogle/nano-banana-3-pro
promptstringYesText description of the image to generate or edit
options.aspectRatiostringNoAspect ratio (1:1, 2:3, 3:2, 3:4, 4:3, 9:16, 16:9)1:1
options.resolutionstringNoOutput resolution (1K, 2K, 4K)1K
imageData.mimeTypestringNoMIME type of input image (image/png, image/jpeg, image/webp)
imageData.base64stringNoBase64-encoded input image for image-to-image editing

Features

  • Text-to-image and image-to-image (edit/transform) in one endpoint
  • Advanced reasoning for complex prompts
  • Up to 14 reference images
  • Higher fidelity than Flash variant
  • Resolutions: 1K, 2K, 4K
Under the Hood

Powered by Google's Gemini API directly.

On this page