# Gemini 2.5 Flash Image

> Gemini 2.5 Flash with native image generation capabilities alongside text and image understanding.

Agent resources: the index of everything machine-readable is https://www.ohmygpt.com/llms.txt; the integration skill (endpoints, auth, SDK and coding-tool setup) is https://www.ohmygpt.com/skill.md.

- Model ID: `google/gemini-2.5-flash-image`
- Status: available; stops working on 2027-03-15, use google/gemini-3.1-flash-lite-image instead
- Released: 2025-10-02
- Context: 128K tokens
- Max output: 8K tokens
- Input: text, image, pdf; output: text, image

## Prices (USD)

| Item | Price | Unit |
| --- | --- | --- |
| Input | $0.27 | per 1M tokens |
| Output | $2.25 | per 1M tokens |
| Cache read | $0.27 | per 1M tokens |
| Reasoning output | $2.25 | per 1M tokens |
| Image output | $27.00 | per 1M tokens |

## Providers

Without a prefix each request goes to the best-priced healthy provider. To pin one, send the model as `<provider>:google/gemini-2.5-flash-image`.

| Provider | Pinned model ID | Location | Input | Output | Trains on your data |
| --- | --- | --- | --- | --- | --- |
| Google (Gemini) | `google:google/gemini-2.5-flash-image` | United States | $0.27 | $2.25 | no |
| Google Vertex AI | `vertex:google/gemini-2.5-flash-image` | Global | $0.27 | $2.25 | no |

## Endpoints

| API | Request | model |
| --- | --- | --- |
| OpenAI Chat | POST https://api.ohmygpt.com/v1/chat/completions | `google/gemini-2.5-flash-image` |
| OpenAI Responses | POST https://api.ohmygpt.com/v1/responses | `google/gemini-2.5-flash-image` |
| Anthropic Messages | POST https://api.ohmygpt.com/v1/messages | `google/gemini-2.5-flash-image` |
| Google Gemini | POST https://api.ohmygpt.com/v1/models/google/gemini-2.5-flash-image:generateContent | `google/gemini-2.5-flash-image` |

## Example

```bash
curl https://api.ohmygpt.com/v1/models/google/gemini-2.5-flash-image:generateContent \
  -H "x-goog-api-key: $OHMYGPT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "contents": [
      {
        "parts": [
          {
            "text": "Hello"
          }
        ]
      }
    ]
  }'
```

Web page: https://www.ohmygpt.com/models/google/gemini-2.5-flash-image
