Providers / Eden AI · All access methods for google/gemini-3.1-pro-preview-customtools
Gemini 3.1 Pro Preview Custom Tools
edenai/gemini-3.1-pro-preview-customtools API key
models.dev2026-11-30providers.dev2026-11-30
Type chat · Released 2026-02-19
Limits
| Limit | Value |
|---|---|
| Context window The most input one request can carry, in tokens | 1,048,576 tokens |
| Maximum output 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
| 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 Without asking for a lifetime, or with the shortest one | Unknown |
| Cache lifetime, long When the request asks for a longer lifetime | Unknown |
Cache evaluations
| 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 cached100 All67 Half or more33 Fewer0 None· Not checked at that ageMethodology
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
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
Provenance
| Provenance | Value |
|---|---|
| Source | models.dev2026-11-30providers.dev2026-11-30 |
| Inherited from | Not inherited |
| Corrections |
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.
|
| Evidence | No evidence |
Data
GET /api/v1/entries/edenai/gemini-3.1-pro-preview-customtools
Show the full entry as published
{
"id": "gemini-3.1-pro-preview-customtools",
"name": "Gemini 3.1 Pro Preview Custom Tools",
"description": "Advanced Gemini model for complex reasoning, coding, and multimodal analysis",
"type": "chat",
"family": "gemini-pro",
"canonical_id": "google/gemini-3.1-pro-preview-customtools",
"release_date": "2026-02-19",
"limit": {
"context": 1048576,
"output": 65536
},
"capabilities": {
"cache": {
"explicit": true
},
"temperature": true,
"top_k": true,
"top_p": true,
"structured_output": true,
"system_updates": false,
"effort_updates": false,
"tools": {
"supported": true
},
"reasoning": {
"supported": true,
"effort": [
"low",
"medium",
"high"
]
}
},
"cost": {
"text": {
"input": {
"price": 2,
"cache": {
"read": 0.2,
"write": 0.375
},
"overrides": [
{
"when": {
"context": {
"gt": 200000
}
},
"price": 4,
"cache": {
"read": 0.4,
"write": 0.375
}
}
]
},
"output": {
"price": 12,
"reasoning": 12,
"overrides": [
{
"when": {
"context": {
"gt": 200000
}
},
"price": 18
}
]
}
},
"audio": {
"input": {
"price": 2
}
}
},
"modalities": {
"input": [
"text",
"image/png",
"image/jpeg",
"image/webp",
"image/heic",
"image/heif",
"video/mp4",
"video/mpeg",
"video/mov",
"video/avi",
"video/x-flv",
"video/mpg",
"video/webm",
"video/wmv",
"video/3gpp",
"audio/wav",
"audio/mp3",
"audio/aiff",
"audio/aac",
"audio/ogg",
"audio/flac",
"audio/mpeg",
"audio/m4a",
"audio/l16",
"audio/opus",
"audio/alaw",
"audio/mulaw",
"audio/webm",
"application/pdf"
],
"output": [
"text"
]
},
"api": {
"chat-completions": {
"base_url": "https://api.edenai.run/v3",
"sdk": {
"aisdk": "@ai-sdk/openai-compatible",
"opencodeai": "@opencode/ai/providers/openai-compatible"
},
"capabilities": {
"tools": {
"updates": []
}
}
}
},
"open_weights": false,
"knowledge": "2025-01",
"last_updated": "2026-02-19",
"recommended_api": "chat-completions",
"providers_dev": {
"origin": "upstream",
"access": "api",
"provenance": [
{
"path": "cost.text.input.overrides",
"op": "set",
"value": [
{
"when": {
"context": {
"gt": 200000
}
},
"price": 4,
"cache": {
"read": 0.4,
"write": 0.375
}
}
],
"had_upstream": true,
"upstream": [
{
"when": {
"context": {
"gt": 200000
}
},
"price": 4,
"cache": {
"read": 0.4
}
}
],
"reason": "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.",
"evidence": [
{
"kind": "listed",
"url": "https://api.edenai.run/v3/models",
"date": "2026-11-30",
"note": "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.\""
},
{
"kind": "documented",
"url": "https://ai.google.dev/gemini-api/docs/pricing#gemini-3.1-pro-preview",
"date": "2026-11-30",
"note": "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."
}
]
}
],
"inherited": null,
"cache": {
"documented": {
"support": "supported",
"modes": {
"implicit": {
"support": "unknown",
"min_tokens": null,
"max_breakpoints": null,
"targets": null
},
"explicit": {
"support": "supported",
"min_tokens": null,
"max_breakpoints": null,
"targets": null
}
}
},
"retention": {
"support": "unknown",
"parameter": null,
"accepted_values": null,
"default": null,
"profiles": [],
"conditions": [],
"evidence": []
},
"lifetime": {
"short": {
"safe_s": null,
"basis": "none",
"source": null,
"date": null,
"documented_s": null,
"measured_s": null,
"documented_status": null,
"clients": 0,
"evaluations": 0,
"checks": 0,
"hits": 0,
"checks_inside": null,
"hits_inside": null,
"tested_from_s": null,
"first_miss_s": null
},
"long": {
"safe_s": null,
"basis": "none",
"source": null,
"date": null,
"documented_s": null,
"measured_s": null,
"documented_status": null,
"clients": 0,
"evaluations": 0,
"checks": 0,
"hits": 0,
"checks_inside": null,
"hits_inside": null,
"tested_from_s": null,
"first_miss_s": null
},
"lifetimes": []
},
"evaluations": [],
"findings": []
},
"pricing": {
"coverage": "partial",
"billing": "per_use",
"reference_ref": null,
"rules": [
{
"id": "cost.text.input.price",
"when": null,
"meter": "text.input",
"operation": "set",
"amount": 2,
"currency": "USD",
"unit": {
"name": "token",
"quantity": 1000000
},
"applies_to": "all_usage",
"source_path": "cost.text.input.price",
"period": null,
"resulting_rates": null
},
{
"id": "cost.text.input.cache.read",
"when": null,
"meter": "text.cache_read",
"operation": "set",
"amount": 0.2,
"currency": "USD",
"unit": {
"name": "token",
"quantity": 1000000
},
"applies_to": "all_usage",
"source_path": "cost.text.input.cache.read",
"period": null,
"resulting_rates": null
},
{
"id": "cost.text.input.cache.write",
"when": null,
"meter": "text.cache_write",
"operation": "set",
"amount": 0.375,
"currency": "USD",
"unit": {
"name": "token",
"quantity": 1000000
},
"applies_to": "all_usage",
"source_path": "cost.text.input.cache.write",
"period": null,
"resulting_rates": null
},
{
"id": "cost.text.output.price",
"when": null,
"meter": "text.output",
"operation": "set",
"amount": 12,
"currency": "USD",
"unit": {
"name": "token",
"quantity": 1000000
},
"applies_to": "all_usage",
"source_path": "cost.text.output.price",
"period": null,
"resulting_rates": null
},
{
"id": "cost.text.output.reasoning",
"when": null,
"meter": "text.reasoning_output",
"operation": "set",
"amount": 12,
"currency": "USD",
"unit": {
"name": "token",
"quantity": 1000000
},
"applies_to": "all_usage",
"source_path": "cost.text.output.reasoning",
"period": null,
"resulting_rates": null
},
{
"id": "cost.audio.input.price",
"when": null,
"meter": "audio.input",
"operation": "set",
"amount": 2,
"currency": "USD",
"unit": {
"name": "token",
"quantity": 1000000
},
"applies_to": "all_usage",
"source_path": "cost.audio.input.price",
"period": null,
"resulting_rates": null
},
{
"id": "cost.text.input.overrides[0].price",
"when": {
"kind": "predicate",
"field": "request.context_tokens",
"op": "gt",
"value": 200000
},
"meter": "text.input",
"operation": "set",
"amount": 4,
"currency": "USD",
"unit": {
"name": "token",
"quantity": 1000000
},
"applies_to": "all_usage",
"source_path": "cost.text.input.overrides[0].price",
"period": null,
"resulting_rates": null
},
{
"id": "cost.text.input.overrides[0].cache.read",
"when": {
"kind": "predicate",
"field": "request.context_tokens",
"op": "gt",
"value": 200000
},
"meter": "text.cache_read",
"operation": "set",
"amount": 0.4,
"currency": "USD",
"unit": {
"name": "token",
"quantity": 1000000
},
"applies_to": "all_usage",
"source_path": "cost.text.input.overrides[0].cache.read",
"period": null,
"resulting_rates": null
},
{
"id": "cost.text.input.overrides[0].cache.write",
"when": {
"kind": "predicate",
"field": "request.context_tokens",
"op": "gt",
"value": 200000
},
"meter": "text.cache_write",
"operation": "set",
"amount": 0.375,
"currency": "USD",
"unit": {
"name": "token",
"quantity": 1000000
},
"applies_to": "all_usage",
"source_path": "cost.text.input.overrides[0].cache.write",
"period": null,
"resulting_rates": null
},
{
"id": "cost.text.output.overrides[0].price",
"when": {
"kind": "predicate",
"field": "request.context_tokens",
"op": "gt",
"value": 200000
},
"meter": "text.output",
"operation": "set",
"amount": 18,
"currency": "USD",
"unit": {
"name": "token",
"quantity": 1000000
},
"applies_to": "all_usage",
"source_path": "cost.text.output.overrides[0].price",
"period": null,
"resulting_rates": null
}
],
"rule_order": "listed",
"unparsed": [],
"evidence": [
{
"kind": "documented",
"url": "https://models.dev",
"date": "2026-11-30",
"note": "The cost models.dev records for this entry. Rules are in the order models.dev applies them: base prices, overrides in their order, then multipliers."
},
{
"kind": "documented",
"url": "https://ai.google.dev/gemini-api/docs/pricing#gemini-3.1-pro-preview",
"date": "2026-11-30",
"note": "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."
}
]
},
"request_controls": {
"coverage": "unknown",
"items": [
{
"id": "cache.retention",
"support": "unknown",
"when": null,
"bindings": null,
"options": null,
"default": null,
"conditions": [],
"evidence": []
},
{
"id": "service_tier",
"support": "unknown",
"when": null,
"bindings": null,
"options": null,
"default": null,
"conditions": [],
"evidence": []
}
]
},
"limits": {
"measured": [],
"from_measurement": [],
"input_window": {
"tokens": 1048576,
"basis": "documented",
"bound": "limit",
"scope": "window",
"source": "models.dev",
"date": "2026-11-30",
"documented_tokens": 1048576,
"documented_field": "limit.context",
"documented_source": "models.dev",
"documented_date": "2026-11-30",
"documented_status": null,
"measured_tokens": null,
"measured_bound": null,
"measured_kind": null,
"measured_refused": null,
"measured_date": null,
"clients": 0,
"evaluations": 0,
"measurements": []
}
},
"safe": {
"input_window": {
"value": 1048576,
"unit": "tokens",
"at_least": false,
"scope": "window",
"window_tokens": null,
"source": "models.dev",
"date": "2026-11-30",
"agreement": "single",
"sources": [
{
"source": "models.dev",
"value": 1048576,
"withheld": false,
"at_least": false,
"below": null,
"scope": "window",
"date": "2026-11-30",
"evidence_url": null,
"client": null,
"client_label": null,
"client_kind": null,
"evaluation_id": null
}
],
"unknown_reason": null
},
"max_output": {
"value": 65536,
"unit": "tokens",
"at_least": false,
"scope": null,
"window_tokens": null,
"source": "models.dev",
"date": "2026-11-30",
"agreement": "single",
"sources": [
{
"source": "models.dev",
"value": 65536,
"withheld": false,
"at_least": false,
"below": null,
"scope": null,
"date": "2026-11-30",
"evidence_url": null,
"client": null,
"client_label": null,
"client_kind": null,
"evaluation_id": null
}
],
"unknown_reason": null
},
"cache_short": {
"value": null,
"unit": "seconds",
"at_least": false,
"scope": null,
"window_tokens": null,
"source": null,
"date": null,
"agreement": "none",
"sources": [],
"unknown_reason": null
},
"cache_long": {
"value": null,
"unit": "seconds",
"at_least": false,
"scope": null,
"window_tokens": null,
"source": null,
"date": null,
"agreement": "none",
"sources": [],
"unknown_reason": null
},
"price": {
"source": "providers.dev",
"date": "2026-11-30",
"agreement": "agree",
"differs": [],
"sources": [
{
"source": "providers.dev",
"withheld": false,
"input": 2,
"output": 12,
"cache_read": 0.2,
"cache_write": 0.375,
"cache_write_lifetimes": [],
"tiers": [
{
"input_tokens_above": 200000,
"input": 4,
"output": 18,
"cache_read": 0.4,
"cache_write": 0.375,
"cache_write_lifetimes": []
}
],
"date": "2026-11-30",
"evidence_url": "https://api.edenai.run/v3/models"
},
{
"source": "models.dev",
"withheld": false,
"input": 2,
"output": 12,
"cache_read": 0.2,
"cache_write": 0.375,
"cache_write_lifetimes": [],
"tiers": [
{
"input_tokens_above": 200000,
"input": 4,
"output": 18,
"cache_read": 0.4,
"cache_write": null,
"cache_write_lifetimes": []
}
],
"date": "2026-11-30",
"evidence_url": null
}
]
},
"differing": []
},
"evidence": [],
"verified": "2026-11-30",
"pi": null
}
}