---
title: "Gemini 3.8 Flash API: pricing and setup — AI Creator API"
description: "Gemini 3.8 Flash API for Claude Code, Codex, Cline, OpenCode and Aider: $0.096 per 1M input and $0.476 per 1M output tokens, pay as you go."
url: https://llm.aicreator.app/en/models/gemini-3.8-flash/
lang: en
updated: 2026-11-11
---

# Gemini 3.8 Flash API

Gemini 3.8 Flash by Google on one AI Creator API key, in Claude Code, Codex, Cline, OpenCode and Aider. You pay for the actual tokens; the balance is in dollars, topped up by card or crypto.

## Price per 1M tokens

Prices as of November 11, 2026 · 87% below the list price

| Tokens                 | AI Creator API | Official |
| ---------------------- | -------------- | -------- |
| Input                  | $0.096         | $0.75    |
| Cache read             | $0.01          |          |
| Cache write, 5 minutes | $0.091         |          |
| Cache write, 1 hour    | $0.091         |          |
| Output                 | $0.476         | $3.75    |

- An empty cell under Official means our sources do not give that price.
- A dash means the model has no such price. Cache reads and writes are counted apart from input: a token lands in one counter only.
- The official price is from the pricing page of [Google](https://aistudio.google.com/docs/pricing.md), checked on November 9, 2026.
- Every model and its prices are on the [pricing page](https://llm.aicreator.app/en/pricing/).

## Specs

| Property               | Value                                                         |
| ---------------------- | ------------------------------------------------------------- |
| Id for the model field | `gemini-3.8-flash`                                            |
| Vendor                 | Google                                                        |
| Protocols              | OpenAI Chat Completions, OpenAI Responses, Anthropic Messages |
| Context                | 1.05M tokens                                                  |
| Max output             | 65.5K tokens                                                  |

## How to connect

You need an `sk-aic-…` key: the dashboard issues it after you sign in. Then set up your tool.

### Claude Code

The model to work on is set by `ANTHROPIC_MODEL`; the other variables pin the models behind Claude Code’s names, or it may send an id we do not list. In detail: [the Claude Code setup](https://llm.aicreator.app/en/docs/claude-code/).

```bash
unset ANTHROPIC_API_KEY
export ANTHROPIC_BASE_URL=https://api.aicreator.app
export ANTHROPIC_AUTH_TOKEN=sk-aic-…
export ANTHROPIC_DEFAULT_OPUS_MODEL=claude-opus-5-5
export ANTHROPIC_DEFAULT_SONNET_MODEL=claude-sonnet-5-5
export ANTHROPIC_DEFAULT_HAIKU_MODEL=claude-haiku-5-5
export ANTHROPIC_DEFAULT_FABLE_MODEL=claude-fable-5-2
export ANTHROPIC_MODEL=gemini-3.8-flash
claude
```

### Codex CLI

The key goes in the `AIC_API_KEY` variable. In detail: [the Codex setup](https://llm.aicreator.app/en/docs/codex/).

```toml title="~/.codex/config.toml"
model = "gemini-3.8-flash"
model_provider = "aic"

[model_providers.aic]
name = "AI Creator"
base_url = "https://api.aicreator.app/v1"
env_key = "AIC_API_KEY"
wire_api = "responses"
stream_idle_timeout_ms = 300000
```

### Cline, OpenCode, Aider and the OpenAI SDK

The OpenAI Chat Completions protocol, model id `gemini-3.8-flash`. Tool setup: [Cline](https://llm.aicreator.app/en/docs/cline/), [OpenCode](https://llm.aicreator.app/en/docs/opencode/), [Aider](https://llm.aicreator.app/en/docs/aider/). Check the key with a request:

```bash
curl https://api.aicreator.app/v1/chat/completions \
  -H "Authorization: Bearer $AIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "gemini-3.8-flash", "messages": [{"role": "user", "content": "Hello"}]}'
```

## Other Google models

- [Gemini 4 Argon](https://llm.aicreator.app/en/models/gemini-4-argon/) input $0.643 / output $2.546
- [Gemini 3.1 Pro](https://llm.aicreator.app/en/models/gemini-3.1-pro/) input $0.208 / output $1.246
