> ## Documentation Index
> Fetch the complete documentation index at: https://docs.geekai.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Gemini 3 Pro Image

Gemini 3 Pro Image combines Gemini 3 Pro Preview’s reasoning with Nano Banana Pro’s image generation. Optimized for professional asset creation, it uses advanced reasoning to handle complex, multi-step creation and editing tasks.

### Model capabilities

* **High-resolution output:** Native generation at 1K, 2K, and 4K.
* **Advanced text rendering:** Generate clear, stylized text for infographics, menus, diagrams, and marketing materials.
* **Grounding with Google Search:** Verify facts and generate images based on real-time data such as weather maps, stock quotes, and recent events.
* **Thinking mode:** The model analyzes complex prompts and generates intermediate “thinking images” to refine the composition before producing the final image. These intermediate images are visible only in the backend and are not billed.
* **Multiple reference images:** Combine up to 14 reference images into one final image.

### Model parameters

* Model ID: `gemini-3-pro-image`
* Pricing: Check the [model details page](https://geekai.co/models/gemini-3-pro-image) for current prices.
* Endpoint: `https://geekai.co/api/v1/chat/completions`
* Parameters: See the [Chat API reference](https://docs.geekai.co/en/api/chat/completions.md).
* Authentication: [Get an API key](https://geekai.co/user/api_keys).

### Pricing

Gemini 3 Pro Image generates images at 1K, 2K, and 4K. Prices vary by resolution:

| Resolution | Dimensions | Price (CNY/image) |
| - | - | - |
| 1K | 1024x1024 | 1 |
| 2K | 2048x2048 | 1 |
| 4K | 4096x4096 | 1.8 |

1K and 2K cost the same; 4K costs approximately 1.8 times the 1K base price.

When using a GeekAI [discounted proxy channel](https://docs.geekai.co/en/docs/model_price.md), multiply the listed price by the discount factor. For example, the default high-availability channel has a factor of `0.5`. An image with `size` set to `1K` costs `0.3 x 0.5 = 0.15` CNY. Apply the same calculation to other settings.

### Image generation

Generate an image from a descriptive prompt:

```bash curl theme={null}
curl --location --request POST 'https://geekai.co/api/v1/chat/completions' \
--header 'Authorization: Bearer $GEEKAI_API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
    "model": "gemini-3-pro-image",
    "messages": [
      {
        "role": "user",
        "content": [
          {
            "type": "text",
            "text": "Create an image of a Nano Banana dish in an upscale restaurant with a Gemini theme."
          }
        ]
      }
    ]
}'
```

### Image editing

Combine an image with a text prompt to edit it, change the composition, or transform its style:

```bash curl theme={null}
curl --location --request POST 'https://geekai.co/api/v1/chat/completions' \
--header 'Authorization: Bearer $GEEKAI_API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
    "model": "gemini-3-pro-image",
    "messages": [
      {
        "role": "user",
        "content": [
          {
            "type": "text",
            "text": "Using the supplied image of my cat, add a small knitted wizard hat to its head. Make the hat sit comfortably and match the soft lighting of the photo."
          },
          {
            "type": "image_url",
            "image_url": {
              "url": "https://ai.google.dev/static/gemini-api/docs/images/cat.png"
            }
          }
        ]
      }
    ]
}'
```

### Multi-turn image editing

Keep generating and editing images in the same conversation. Multi-turn chat is the best way to refine an image. Start by generating an infographic about photosynthesis:

```bash curl theme={null}
curl --location --request POST 'https://geekai.co/api/v1/chat/completions' \
--header 'Authorization: Bearer $GEEKAI_API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
    "model": "gemini-3-pro-image",
    "messages": [
      {
        "role": "user",
        "content": [
          {
            "type": "text",
            "text": "Create a lively infographic explaining photosynthesis as a plant’s favorite recipe. Show the ‘ingredients’ (sunlight, water, CO₂) and the ‘finished dish’ (sugar/energy). Style it like a page from a colorful children’s cookbook for fourth graders."
          }
        ]
      }
    ]
}'
```

In the same chat, ask the model to change the language in the image to Spanish:

```bash curl theme={null}
curl --location --request POST 'https://geekai.co/api/v1/chat/completions' \
--header 'Authorization: Bearer $GEEKAI_API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
    "model": "gemini-3-pro-image",
    "messages": [
      {
        "role": "user",
        "content": [
          {
            "type": "text",
            "text": "Create a lively infographic explaining photosynthesis as a plant’s favorite recipe. Show the ‘ingredients’ (sunlight, water, CO₂) and the ‘finished dish’ (sugar/energy). Style it like a page from a colorful children’s cookbook for fourth graders."
          },
          {
            "type": "image_url",
            "image_url": {
              "url": "https://static.geekai.co/image/2025/11/21/d1ce7245f72f820e8e5c29afdbd1173b.png"
            }
          }
          {
            "type": "text",
            "text": "Update this infographic to Spanish. Do not change any other element of the image."
          }
        ]
      }
    ]
}'
```

### Combine multiple images

Gemini 3 Pro Image Preview can combine up to 14 reference images, including:

* Up to 6 images of objects to reproduce with high fidelity in the final image.
* Up to 5 images of people to maintain character consistency.

```bash curl theme={null}
curl --location --request POST 'https://geekai.co/api/v1/chat/completions' \
--header 'Authorization: Bearer $GEEKAI_API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
    "model": "gemini-3-pro-image",
    "messages": [
      {
        "role": "user",
        "content": [
          {
            "type": "text",
            "text": "Create an office group photo of these people making funny faces."
          },
          {
            "type": "image_url",
            "image_url": {
              "url": "$IMG1_BASE64"
            }
          },
          {
            "type": "image_url",
            "image_url": {
              "url": "$IMG2_BASE64"
            }
          },
          {
            "type": "image_url",
            "image_url": {
              "url": "$IMG3_BASE64"
            }
          },
          {
            "type": "image_url",
            "image_url": {
              "url": "$IMG4_BASE64"
            }
          },
          {
            "type": "image_url",
            "image_url": {
              "url": "$IMG5_BASE64"
            }
          }
        ]
      }
    ]
}'
```

### Ground images with Google Search

Use the Google Search tool to generate images based on real-time information, such as weather forecasts, stock charts, or recent events.

```bash curl theme={null}
curl --location --request POST 'https://geekai.co/api/v1/chat/completions' \
--header 'Authorization: Bearer $GEEKAI_API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
    "model": "gemini-3-pro-image",
    "messages": [
      {
        "role": "user",
        "content": [
          {
            "type": "text",
            "text": "Visualize the current five-day forecast for San Francisco as a clean, modern weather chart. Include visual suggestions for what to wear each day."
          }
        ]
      }
    ],
    "enable_search": true,
    "image": {
      "aspect_ratio": "5:4"
    }
}'
```

> [!NOTE]
>
> Use `enable_search` to enable the model’s built-in search tool (Google Search for Gemini). Use `image` to configure output resolution (`image_size`) and aspect ratio (`aspect_ratio`). These are currently the only two supported configuration options.

### Generate high-resolution 4K images

Gemini 3 Pro Image Preview generates 1K images by default and also supports 2K and 4K output. To generate higher-resolution assets, specify `image_size` in `image`:

```bash curl theme={null}
curl --location --request POST 'https://geekai.co/api/v1/chat/completions' \
--header 'Authorization: Bearer $GEEKAI_API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
    "model": "gemini-3-pro-image",
    "messages": [
      {
        "role": "user",
        "content": [
          {
            "type": "text",
            "text": "Draw a Leonardo da Vinci-style anatomical study of a monarch butterfly. Render the head, wings, and legs in detail on textured parchment, with annotations in English."
          }
        ]
      }
    ],
    "enable_search": true,
    "image": {
      "aspect_ratio": "1:1",
      "image_size": "4K"
    }
}'
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.