All models

Google

Gemini 3.1 Pro

Google Gemini Pro for text conversation and reasoning.

textreasoning
gemini-3.1-pro

Our price

$0.83 / $5.83

input / output per 1M

Official

Not available

USD · Published rate · Updated 2026-10-06

First request

Available
curl https://api.tokely.me/v1/chat/completions \
  -H "Authorization: Bearer $TOKELY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gemini-3.1-pro",
    "messages": [{"role": "user", "content": "Hello!"}],
    "max_tokens": 256
  }'

Set TOKELY_API_KEY to your dashboard key. Requests require a funded Tokely balance. Base URL: https://api.tokely.me/v1.

Capabilities & limits

Context window
128,000 tokens
Model max output
32,768 tokens
Cached input price
$0.833334 per 1M tokens
Provider
Google
API model ID
gemini-3.1-pro
Category
Text
Endpoints
POST /v1/chat/completions
Tokely max output
32,768 tokens / request, including reasoning tokens
Default output
256 tokens. Set an explicit limit for longer responses.
Request limits
256 KB JSON body · 128 messages · 32 function tools
Rate limit
60 requests / minute / account, across its keys
Supported input
Text messages and function tool results
Model modalities
text. Tokely currently accepts text input.

The context includes your instructions, conversation history, tool definitions and generated output. Keep the input and requested output within the model’s context window.

API reference

Authenticate with Authorization: Bearer YOUR_TOKELY_API_KEY. Use an OpenAI SDK with the Tokely base URL.

model
Required string: gemini-3.1-pro
messages
An array of system, developer, user, assistant and tool messages.
max_tokens
Optional integer, 1–32,768. Defaults to 256.
stream
Streaming has not been verified for this model.
reasoning_effort
Optional reasoning effort. Supported values depend on the model; omit to use its default.

The response contains choices with message or tool_calls, finish_reason, and usage (prompt_tokens, completion_tokens, total_tokens). Streaming sends chat completion chunks.

400 / 415
Invalid request, parameter, endpoint for this model, or content type.
401 / 403
Invalid, revoked or restricted API key.
402
Insufficient account balance or API key budget.
429
Request limit reached. Retry after the indicated delay.
502 / 503 / 504
Upstream failure, temporary service unavailability or request timeout.

Compare nearby prices

USD per million tokens. Compare price and context; these are not quality benchmarks.
ModelInputOutputContext
Gemini 3.1 ProGoogle · this model$0.833334$5.833334128,000
Gemini 3 ProGoogle$0.833334$5.833334128,000
Claude Opus 5.5Anthropic$0.97064$4.85321,000,000
Claude Sonnet 5.5Anthropic$0.970585$4.8529251,000,000
GPT-5.6 SolOpenAI$1.263969$4.5502881,050,000

Frequently asked questions

How much does Gemini 3.1 Pro cost?

$0.833334 per million input tokens, $5.833334 per million output tokens and $0.833334 per million cached input tokens. Usage is charged to your Tokely balance.

Do I need a separate Google account?

Use your Tokely API key and balance. A separate provider key is not required.

How do I switch to this model?

Set model to gemini-3.1-pro and use /v1/chat/completions. Keep your Tokely base URL and API key.

What is the context window?

128,000 tokens, including input and output. The Tokely request body and output limits listed above also apply.

Playground

Explore this model in the Tokely Playground.

Open in playground