---
title: Gemini API — Variants, pricing & model skill | RunAPI
description: Compare Gemini API variants, pricing, and the Gemini skill for app development. One API key, skills-first workflow.
url: https://runapi.ai/models/gemini.md
canonical: https://runapi.ai/models/gemini
locale: en
site: RunAPI
image: https://runapi.ai/assets/opengraph-bfaaa0f0.png
alternates:
  en: https://runapi.ai/models/gemini
  zh-CN: https://runapi.ai/zh-CN/models/gemini
  es: https://runapi.ai/es/models/gemini
  ja: https://runapi.ai/ja/models/gemini
  de: https://runapi.ai/de/models/gemini
  fr: https://runapi.ai/fr/models/gemini
  pt-BR: https://runapi.ai/pt-BR/models/gemini
  ko: https://runapi.ai/ko/models/gemini
  it: https://runapi.ai/it/models/gemini
  nl: https://runapi.ai/nl/models/gemini
  pl: https://runapi.ai/pl/models/gemini
  tr: https://runapi.ai/tr/models/gemini
  zh-TW: https://runapi.ai/zh-TW/models/gemini
  zh-HK: https://runapi.ai/zh-HK/models/gemini
  ar: https://runapi.ai/ar/models/gemini
  x-default: https://runapi.ai/models/gemini
model: Gemini
provider: Google
modality: text
variant_count: 11
---

> HTML version: https://runapi.ai/models/gemini
> Site index for agents: https://runapi.ai/llms.txt

[Home](https://runapi.ai/.md) / [Models](https://runapi.ai/models.md) / Gemini


# Gemini API

Gemini API access for Google's multimodal LLM across chat, code generation, reasoning, and long-context tasks.

- [Try in playground](https://runapi.ai/login)
- [API reference →](https://runapi.ai/docs/api/openai/chat-completions)

**Provider:** Google
**Modality:** Text
**Catalog:** 11 variants

## About Gemini

Gemini is Google's multimodal large language model family supporting text, image, audio, and code understanding. Available in Flash and Pro variants, it handles tasks from quick summarization to deep reasoning and complex coding.

**Provider:** Google
**Modality:** Text

## Gemini API endpoints

| Endpoint | Protocol |
|---|---|
| `POST /v1/chat/completions` | OpenAI compatible |
| `POST /v1/responses` | OpenAI Responses |
| `POST /v1/messages` | Anthropic compatible |
| `POST /v1beta/models/{model}:generateContent` | Gemini generateContent |
| `POST /v1beta/models/{model}:streamGenerateContent` | Gemini streamGenerateContent |


## Available Versions

| Version | Variant | Pricing | Billing | URL |
|---|---|---|---|---|
| gemini-2.5-flash | `gemini-2.5-flash` | Input $0.24 / 1M tokens | Output $2.00 / 1M tokens | 1M tokens | [View →](https://runapi.ai/models/gemini/2.5-flash.md) |
| gemini-2.5-flash-lite | `gemini-2.5-flash-lite` | Input $0.10 / 1M tokens | Output $0.40 / 1M tokens | 1M tokens | [View →](https://runapi.ai/models/gemini/2.5-flash-lite.md) |
| gemini-2.5-pro | `gemini-2.5-pro` | Input $1.00-$2.00 / 1M tokens | Output $8.00-$12.00 / 1M tokens | 1M tokens | [View →](https://runapi.ai/models/gemini/2.5-pro.md) |
| gemini-3-flash-preview | `gemini-3-flash-preview` | Input $0.40 / 1M tokens | Output $2.40 / 1M tokens | 1M tokens | [View →](https://runapi.ai/models/gemini/3-flash-preview.md) |
| gemini-3.1-flash-lite | `gemini-3.1-flash-lite` | Input $0.25 / 1M tokens | Output $1.50 / 1M tokens | 1M tokens | [View →](https://runapi.ai/models/gemini/3.1-flash-lite.md) |
| gemini-3.1-pro-preview | `gemini-3.1-pro-preview` | Input $1.60-$3.20 / 1M tokens | Output $9.60-$14.40 / 1M tokens | 1M tokens | [View →](https://runapi.ai/models/gemini/3.1-pro-preview.md) |
| gemini-3.5-flash | `gemini-3.5-flash` | Input $1.20 / 1M tokens | Output $7.20 / 1M tokens | 1M tokens | [View →](https://runapi.ai/models/gemini/3.5-flash.md) |
| gemini-3.5-flash-lite | `gemini-3.5-flash-lite` | Input $0.24 / 1M tokens | Output $2.00 / 1M tokens | 1M tokens | [View →](https://runapi.ai/models/gemini/3.5-flash-lite.md) |
| gemini-3.6-flash | `gemini-3.6-flash` | Input $0.60 / 1M tokens | Output $3.00 / 1M tokens | 1M tokens | [View →](https://runapi.ai/models/gemini/3.6-flash.md) |
| gemini-3.7-flash | `gemini-3.7-flash` | Input $0.60 / 1M tokens | Output $3.00 / 1M tokens | 1M tokens | [View →](https://runapi.ai/models/gemini/3.7-flash.md) |
| gemini-3.8-flash | `gemini-3.8-flash` | Input $0.60 / 1M tokens | Output $3.00 / 1M tokens | 1M tokens | [View →](https://runapi.ai/models/gemini/3.8-flash.md) |


## Gemini Pricing

| Endpoint | Resolution | Duration | Price |  |
|---|---|---|---|---|
| `chat_completion` | — | — | Input $0.24 / 1M tokens | Output $2.00 / 1M tokens |  |

Prices shown for gemini-2.5-flash. Other variants retain their own endpoint pricing.




## Run Gemini From an Agent

- [OpenClaw](https://runapi.ai/openclaw-gemini.md) — Use Gemini with OpenClaw agent — the RunAPI tool exposes callable actions with automatic task polling.
- [Hermes Agent](https://runapi.ai/hermes-gemini.md) — Use Gemini with Hermes agent — describe what you need in natural language and Hermes picks the right settings.


## Get Started with Gemini

1. **Create an API key** — Sign up and generate an API key from the dashboard.
2. **Pick a version** — Choose the version that best matches your quality and cost requirements.
3. **Send a request** — Submit your prompt and parameters to the model's documented endpoint.
4. **Get your result** — Poll the task or set a webhook, then download the completed output.



## About Gemini on RunAPI

Gemini is Google's flagship multimodal LLM, available in Flash (fast) and Pro (frontier reasoning) variants. Through RunAPI, all Gemini models share the same API shape and billing.

**Provider:** [Google](https://runapi.ai/providers/google.md) — See all →
**Modality:** [Text](https://runapi.ai/models#all-models) — Browse models →



## Why Use Gemini Through RunAPI

- **One auth, every provider** — A single RunAPI API key unlocks the whole model catalog across all providers. No separate accounts to create, no API keys to rotate per integration, and no credential management overhead. Add a new model to your app by changing one parameter.
- **Unified pricing & billing** — Per-call pricing in USD, billed monthly into a single invoice. No subscription tiers, no minimum spend, and failed generations are never charged. The pricing page and check_pricing API show exact costs before you commit to a model.
- **Schema-first SDK** — Typed schemas, parameter constraints, and setup notes are packaged in the model skill so your implementation starts from the right contract. The skill loads into Claude Code, Codex, Gemini CLI, Cursor, and VS Code — your agent knows the correct request shape before you write a line of code.


## Gemini Questions

### What is the context window size for Gemini?

Up to 1 million tokens across all variants. This handles entire codebases, long documents, and multi-turn conversations without truncation.

### What input modalities does Gemini accept?

Text, images, audio, and video. You can pass multimodal inputs in a single request for cross-modal reasoning.

### What is Google Search grounding?

Gemini can ground responses in real-time Google Search results, reducing hallucination for factual and time-sensitive queries.

### How do Flash and Pro compare?

Flash is optimized for speed and cost — ideal for high-volume tasks. Pro delivers deeper reasoning and is better for complex multi-step analysis.

### Does Gemini support function calling?

Yes — Gemini supports structured function calling with typed JSON schemas, making it suitable for agentic workflows and tool use.

### Which variant should I start with?

Pick the cheapest variant that meets your quality bar. Most teams start on the fast variant and graduate to pro for production.



## Similar Text Models

- [Claude](https://runapi.ai/models/claude.md) - Anthropic - from $0.08 / 1M tokens
- [DeepSeek](https://runapi.ai/models/deepseek.md) - DeepSeek - from $0.30 / 1M tokens
- [Embedding](https://runapi.ai/models/embedding.md) - OpenAI - from $0.02 / 1M tokens
- [GLM](https://runapi.ai/models/glm.md) - Z.ai - from $0.12 / 1M tokens


## Start generating with Gemini

- [Create free account](https://runapi.ai/login)
- [Read the quickstart →](https://runapi.ai/docs/api/openai/chat-completions)

## Variants

- [Gemini gemini-2.5-flash](https://runapi.ai/models/gemini/2.5-flash.md)
- [Gemini gemini-2.5-flash-lite](https://runapi.ai/models/gemini/2.5-flash-lite.md)
- [Gemini gemini-2.5-pro](https://runapi.ai/models/gemini/2.5-pro.md)
- [Gemini gemini-3-flash-preview](https://runapi.ai/models/gemini/3-flash-preview.md)
- [Gemini gemini-3.1-flash-lite](https://runapi.ai/models/gemini/3.1-flash-lite.md)
- [Gemini gemini-3.1-pro-preview](https://runapi.ai/models/gemini/3.1-pro-preview.md)
- [Gemini gemini-3.5-flash](https://runapi.ai/models/gemini/3.5-flash.md)
- [Gemini gemini-3.5-flash-lite](https://runapi.ai/models/gemini/3.5-flash-lite.md)
- [Gemini gemini-3.6-flash](https://runapi.ai/models/gemini/3.6-flash.md)
- [Gemini gemini-3.7-flash](https://runapi.ai/models/gemini/3.7-flash.md)
- [Gemini gemini-3.8-flash](https://runapi.ai/models/gemini/3.8-flash.md)

## Category

- [Claude](https://runapi.ai/models/claude.md)
- [DeepSeek](https://runapi.ai/models/deepseek.md)
- [Embedding](https://runapi.ai/models/embedding.md)
- [GLM](https://runapi.ai/models/glm.md)

## Provider

- [Gemini Omni](https://runapi.ai/models/gemini-omni.md)
- [Gemini TTS](https://runapi.ai/models/gemini-tts.md)
- [Imagen 4](https://runapi.ai/models/imagen-4.md)
- [Nano Banana](https://runapi.ai/models/nano-banana.md)

## Docs

- [Quickstart](https://runapi.ai/docs/api/openai/chat-completions)
- [API reference](https://runapi.ai/docs/api/openai/chat-completions)
- [SDK README](https://github.com/runapi-ai)


---

## More from RunAPI

- [Home](https://runapi.ai/.md)
### Product
- [Model Catalog](https://runapi.ai/models.md)
- [Pricing](https://runapi.ai/pricing.md)
- [Providers](https://runapi.ai/models#all-models)
### Developers
- [Documentation](https://runapi.ai/docs/guides)
- [SDKs](https://runapi.ai/sdk.md)
- [CLI](https://runapi.ai/cli.md)
- [MCP Server](https://runapi.ai/mcp.md)
- [x402](https://runapi.ai/x402.md)
### Guides
- [Claude Code vs Cursor](https://runapi.ai/claude-code-vs-cursor.md)
- [Cursor API Setup](https://runapi.ai/cursor-api-setup.md)
- [RunAPI vs OpenRouter](https://runapi.ai/openrouter-alternative.md)
### Company
- [Enterprise](https://runapi.ai/contact.md)
- [Contact](https://runapi.ai/contact.md)
### Legal
- [Terms](https://runapi.ai/terms.md)
- [Privacy](https://runapi.ai/privacy.md)
- [Site index for agents](https://runapi.ai/llms.txt)

Contact: contact@runapi.ai

## Structured data

```json
[
  {
    "@context": "https://schema.org",
    "inLanguage": "en",
    "@type": "WebSite",
    "name": "RunAPI",
    "url": "https://runapi.ai/",
    "potentialAction": {
      "@type": "SearchAction",
      "target": {
        "@type": "EntryPoint",
        "urlTemplate": "https://runapi.ai/models?q={search_term_string}"
      },
      "query-input": "required name=search_term_string"
    }
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "en",
    "@type": "Organization",
    "name": "RunAPI",
    "url": "https://runapi.ai/",
    "logo": {
      "@type": "ImageObject",
      "url": "https://runapi.ai/icon.svg"
    },
    "sameAs": [
      "https://github.com/runapi-ai"
    ]
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "en",
    "@type": "SoftwareApplication",
    "name": "Gemini",
    "applicationCategory": "DeveloperApplication",
    "operatingSystem": "Cross-platform",
    "hasVariant": [
      {
        "@type": "SoftwareApplication",
        "name": "Gemini gemini-2.5-flash"
      },
      {
        "@type": "SoftwareApplication",
        "name": "Gemini gemini-2.5-flash-lite"
      },
      {
        "@type": "SoftwareApplication",
        "name": "Gemini gemini-2.5-pro"
      },
      {
        "@type": "SoftwareApplication",
        "name": "Gemini gemini-3-flash-preview"
      },
      {
        "@type": "SoftwareApplication",
        "name": "Gemini gemini-3.1-flash-lite"
      },
      {
        "@type": "SoftwareApplication",
        "name": "Gemini gemini-3.1-pro-preview"
      },
      {
        "@type": "SoftwareApplication",
        "name": "Gemini gemini-3.5-flash"
      },
      {
        "@type": "SoftwareApplication",
        "name": "Gemini gemini-3.5-flash-lite"
      },
      {
        "@type": "SoftwareApplication",
        "name": "Gemini gemini-3.6-flash"
      },
      {
        "@type": "SoftwareApplication",
        "name": "Gemini gemini-3.7-flash"
      },
      {
        "@type": "SoftwareApplication",
        "name": "Gemini gemini-3.8-flash"
      }
    ]
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "en",
    "@type": "BreadcrumbList",
    "itemListElement": [
      {
        "@type": "ListItem",
        "position": 1,
        "name": "Home",
        "item": "https://runapi.ai/"
      },
      {
        "@type": "ListItem",
        "position": 2,
        "name": "Models",
        "item": "https://runapi.ai/models"
      },
      {
        "@type": "ListItem",
        "position": 3,
        "name": "Gemini",
        "item": "https://runapi.ai/models/gemini"
      }
    ]
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "en",
    "@type": "HowTo",
    "name": "From model skill to first result in four steps",
    "description": "Compare Gemini API variants, pricing, and the Gemini skill for app development. One API key, skills-first workflow.",
    "totalTime": "PT5M",
    "step": [
      {
        "@type": "HowToStep",
        "position": 1,
        "name": "Create an API key",
        "text": "Sign up and generate an API key from the dashboard.",
        "url": "https://runapi.ai/models/gemini#how-step-1"
      },
      {
        "@type": "HowToStep",
        "position": 2,
        "name": "Pick a version",
        "text": "Choose the version that best matches your quality and cost requirements.",
        "url": "https://runapi.ai/models/gemini#how-step-2"
      },
      {
        "@type": "HowToStep",
        "position": 3,
        "name": "Send a request",
        "text": "Submit your prompt and parameters to the model's documented endpoint.",
        "url": "https://runapi.ai/models/gemini#how-step-3"
      },
      {
        "@type": "HowToStep",
        "position": 4,
        "name": "Get your result",
        "text": "Poll the task or set a webhook, then download the completed output.",
        "url": "https://runapi.ai/models/gemini#how-step-4"
      }
    ]
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "en",
    "@type": "FAQPage",
    "mainEntity": [
      {
        "@type": "Question",
        "name": "What is the context window size for Gemini?",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "Up to 1 million tokens across all variants. This handles entire codebases, long documents, and multi-turn conversations without truncation."
        }
      },
      {
        "@type": "Question",
        "name": "What input modalities does Gemini accept?",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "Text, images, audio, and video. You can pass multimodal inputs in a single request for cross-modal reasoning."
        }
      },
      {
        "@type": "Question",
        "name": "What is Google Search grounding?",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "Gemini can ground responses in real-time Google Search results, reducing hallucination for factual and time-sensitive queries."
        }
      },
      {
        "@type": "Question",
        "name": "How do Flash and Pro compare?",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "Flash is optimized for speed and cost — ideal for high-volume tasks. Pro delivers deeper reasoning and is better for complex multi-step analysis."
        }
      },
      {
        "@type": "Question",
        "name": "Does Gemini support function calling?",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "Yes — Gemini supports structured function calling with typed JSON schemas, making it suitable for agentic workflows and tool use."
        }
      },
      {
        "@type": "Question",
        "name": "Which variant should I start with?",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "Pick the cheapest variant that meets your quality bar. Most teams start on the fast variant and graduate to pro for production."
        }
      },
      {
        "@type": "Question",
        "name": "Is there a free tier?",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "Creating an account and API key is free. API calls use prepaid, pay-as-you-go billing; add funds before making requests."
        }
      },
      {
        "@type": "Question",
        "name": "Do you stream results?",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "Where streaming is available, RunAPI streams end-to-end."
        }
      },
      {
        "@type": "Question",
        "name": "How are failures billed?",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "Failed generations are not charged."
        }
      },
      {
        "@type": "Question",
        "name": "Are outputs cached?",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "Generated outputs are stored and retrievable by task ID. Inputs are not cached."
        }
      },
      {
        "@type": "Question",
        "name": "Can I use commercially?",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "Yes — commercial use is included for every variant unless a model license explicitly restricts it, which is called out on the variant page."
        }
      },
      {
        "@type": "Question",
        "name": "What about rate limits?",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "Per-key rate limits scale with usage tier. See pricing page for current limits."
        }
      },
      {
        "@type": "Question",
        "name": "Where can I report issues?",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "Open an issue on the public GitHub repo or email support."
        }
      }
    ]
  }
]
```
