Images

Generate Nano Banana Image

Generates image content using the Gemini-compatible multimodal format.

POST/v1beta/models/{model}:{GenerateContentType}

Parameters

ParameterType / locationDescription
modelRequiredstringpath

Compatible image model ID.

contentsRequiredarraybody

Prompt and optional multimodal input parts.

generationConfigOptionalobjectbody

Output and generation options.

Request examples

cURL
curl --request POST \
  --url 'https://api.juhenextvip.com/v1beta/models/gemini-3.1-flash-image:generateContent' \
  --header 'x-goog-api-key: <YOUR_API_KEY>' \
  --header 'Content-Type: application/json' \
  --data '{
  "contents": [
    {
      "parts": [
        { "text": "Create a minimal product photo of a glass teapot." }
      ]
    }
  ]
}'

Response examples

JSON
{
  "candidates": [
    {
      "content": {
        "parts": [
          {
            "inlineData": {
              "mimeType": "image/png",
              "data": "<BASE64_IMAGE_DATA>"
            }
          }
        ]
      }
    }
  ]
}

Usage notes

  • The generated image is returned in candidates[].content.parts[].inlineData.