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

# Gemini 4 Neon

> Google's reasoning model for coding and knowledge work where end-to-end speed matters.

Google's reasoning model for coding and knowledge work where end-to-end speed matters.

The MixRoute catalog lists both Gemini-native and OpenAI-compatible routes for this model. Availability depends on your API key's group.

## Model specifications

| Property | Value |
| - | - |
| Model ID | `gemini-4-neon` |
| Input | Text, images, video, audio, and PDF |
| Output | Text |
| Context window | 1,048,576 tokens across input and output |
| Standard synchronous output limit | 65,536 Token |

Google's model limits are shown above; MixRoute route limits may differ. Google's long-decode workflow is separate from these examples.

## Quick examples

Set `MIXROUTE_API_KEY` to your MixRoute API key.

### Gemini native API

```bash theme={null}
curl --fail-with-body --request POST "https://api.mixroute.ai/v1beta/models/gemini-4-neon:generateContent" \
  --header "Authorization: Bearer $MIXROUTE_API_KEY" \
  --header 'Content-Type: application/json' \
  --data '{
    "contents": [{"role": "user", "parts": [{"text": "Reply with OK only."}]}],
    "generationConfig": {"maxOutputTokens": 1024}
  }'
```

### OpenAI-compatible Chat Completions

```bash theme={null}
curl --fail-with-body --request POST "https://api.mixroute.ai/v1/chat/completions" \
  --header "Authorization: Bearer $MIXROUTE_API_KEY" \
  --header 'Content-Type: application/json' \
  --data '{
    "model": "gemini-4-neon",
    "messages": [{"role": "user", "content": "Reply with OK only."}],
    "max_tokens": 1024
  }'
```

## API Reference

* [`POST /v1beta/models/gemini-4-neon:generateContent`](https://mixroute.ai/docs/api-reference/endpoint/gemini-native)
* [`POST /v1/chat/completions`](https://mixroute.ai/docs/api-reference/endpoint/chat-openai)
* [Google model documentation](https://aistudio.google.com/docs/models/gemini-4-neon)


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