---
title: "Gemini 3.1 Pro Preview at Eden AI · providers.dev"
description: "Gemini 3.1 Pro Preview at Eden AI (edenai/gemini-3.1-pro-preview), API key: context window 1,048,576 tokens, maximum output 65,536 tokens, price $2 / $12 per 1M input / output tokens, with conditional rates, prompt cache lifetime unknown."
canonical: https://providers.dev/entries/edenai/gemini-3.1-pro-preview
---

[Providers](https://providers.dev/providers/) / [Eden AI](https://providers.dev/providers/edenai/) · [All access methods for google/gemini-3.1-pro-preview](https://providers.dev/models/google/gemini-3.1-pro-preview/)

# Gemini 3.1 Pro Preview

`edenai/gemini-3.1-pro-preview` API key models.dev 2026-11-30 providers.dev 2026-11-30

Type chat · Released 2026-02-19

- Context window
  1,048,576 tokens
- Maximum output
  65,536 tokens
- Price
  $2 / $12
  Input / output, per 1M tokens
  Conditional rates below
- Cache lifetime, short
  Unknown
- Cache lifetime, long
  Unknown

## Limits

| Limit | Value |
| --- | --- |
| Context window<br>The most input one request can carry, in tokens | 1,048,576 tokens |
| Maximum output<br>The most one response can hold. A maximum, not a default | 65,536 tokens |

### Limit evaluations tokens

| Date | Route and client | Context | Input accepted | Input refused | Output limit | Requested output accepted | Evidence |
| --- | --- | --- | --- | --- | --- | --- | --- |
| No limit evaluation on this entry. |  |  |  |  |  |  |  |

## Price

$2 input · $12 output per 1M tokens

| Charge | Rate |
| --- | --- |
| Input | $2 / 1M tokens |
| Output | $12 / 1M tokens |
| Reasoning output | $12 / 1M tokens |
| Cache read | $0.20 / 1M tokens |
| Cache write | $0.375 / 1M tokens |
| Audio input | $2 / 1M tokens |

### Conditional rates

| Condition | Rates | Applies to |
| --- | --- | --- |
| Context above 200,000 tokens | Input $4, Output $18, Cache read $0.40, Cache write $0.375 / 1M tokens | Whole request |

**Other prices in the source, not shown above (0)**

No other prices

### Request controls

| Control | Support | Request field | Accepted values | Default | Conditions |
| --- | --- | --- | --- | --- | --- |
| Service tier | Unknown | Unknown | Unknown | Unknown | Unknown |

Source: Unknown

## Prompt caching

| Lifetime | Value |
| --- | --- |
| Cache lifetime, short<br>Without asking for a lifetime, or with the shortest one | Unknown |
| Cache lifetime, long<br>When the request asks for a longer lifetime | Unknown |

### Cache evaluations

The cache evaluations of this entry, by retention

| Lifetime | Client | Time since the prompt was cached · served from the cache, in percent, with hits/checks At once | 2.5 min | 5 min | 7.5 min | 10 min | 15 min | 20 min | 25 min | 30 min | 40 min | 50 min | 1 h | 1 h 15 | 1 h 30 | 2 h | 4 h | 8 h | 12 h | 24 h |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| Short retention | No evaluation |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
| Long retention | No evaluation |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |

Checks served from the cache, in percent and as hits/checks, by time since the prompt was cached 100 All 67 Half or more 33 Fewer 0 None · Not checked at that age [Methodology](https://providers.dev/docs/methodology/#evaluations)

### Cache modes

| Mode | Supported | Min. tokens | Breakpoints | Targets |
| --- | --- | --- | --- | --- |
| Automatic implicit | Unknown | Unknown | Unknown | Unknown |
| Manual explicit | Supported | Unknown | Unknown | Unknown |

Source: models.dev · [Cache modes](https://providers.dev/docs/methodology/#caching)

### Retention

| Control | Support | Request field | Accepted values | Default | Conditions |
| --- | --- | --- | --- | --- | --- |
| Cache retention | Unknown | Unknown | Unknown | Unknown | Unknown |

Source: Unknown

## How Pi calls the model

Pi's model catalog does not list this entry.

Fetched 2026-11-30 from [pi.dev/api/models](https://pi.dev/api/models)

## Provenance

| Provenance | Value |
| --- | --- |
| Source | models.dev 2026-11-30 providers.dev 2026-11-30 |
| Inherited from | Not inherited |
| Corrections | `cost.text.input.overrides` is **`[{"when":{"context":{"gt":200000}},"price":4,"cache":{"read":0.4,"write":0.375}}]`**. models.dev says: `[{"when":{"context":{"gt":200000}},"price":4,"cache":{"read":0.4}}]`.<br>Eden AI's catalog states one cache-creation price for Gemini 3.1 Pro Preview, which its prices above 200,000 tokens do not change, and Google bills cache storage at one rate at every prompt size. models.dev gives the tier above 200,000 tokens no cache-write price.<br>• listed [api.edenai.run/v3/models](https://api.edenai.run/v3/models) 2026-11-30<br>google/gemini-3.1-pro-preview and google/gemini-3.1-pro-preview-customtools: "cache_creation_input_token_cost": 3.75e-7, with "input_cost_per_token_above_200k_tokens": 0.000004, "output_cost_per_token_above_200k_tokens": 0.000018 and "cache_read_input_token_cost_above_200k_tokens": 4e-7, and no cache-creation price above 200k tokens. Eden AI's prompt caching guide: "Treat the catalog as the source of truth."<br>• documented [ai.google.dev/gemini-api/docs/pricing#gemini-3.1-pro-preview](https://ai.google.dev/gemini-api/docs/pricing#gemini-3.1-pro-preview) 2026-11-30<br>Gemini 3.1 Pro Preview, Standard, Paid Tier: "Context caching price: $0.20, prompts \<= 200k tokens; $0.40, prompts > 200k; $4.50 / 1,000,000 tokens per hour (storage price)": one storage price at both sizes. |
| Evidence | No evidence |

## Data

[`GET /api/v1/entries/edenai/gemini-3.1-pro-preview`](https://providers.dev/api/v1/entries/edenai/gemini-3.1-pro-preview)

---

providers.dev

Model metadata per provider and access method. The baseline is imported from [models.dev](https://models.dev/) (MIT, © 2025 models.dev); the model catalog of [Pi](https://pi.dev/models) (MIT) is shown beside it. providers.dev is independent and is not affiliated with or endorsed by models.dev, Pi or any listed provider.

## Dataset

- models.dev imported 2026-11-30
- Pi's catalog fetched 2026-11-30
- [Version and publication](https://providers.dev/#dataset)

## Reference

- [API documentation](https://providers.dev/docs/api/)
- [OpenAPI document](https://providers.dev/api/v1/openapi.json)
- [Methodology](https://providers.dev/docs/methodology/)
- [Licensing and attribution](https://providers.dev/docs/licensing/)
- [Contributing](https://providers.dev/docs/contributing/)
- [Provimux](https://provimux.providers.dev/)
- [Provimux support](https://provimux.providers.dev/support/)
- [pi-cache-keeper](https://pi-cache-keeper.providers.dev/)
- [Gabriel Voicu](https://ngvoicu.dev/)
- [LLM cost audit](https://ngvoicu.dev/consulting/#llm-cost-audit)
- [Contact](mailto:office@providers.dev)
