Back to the models list Active on this gateway

Google: gemini-3.1-pro-preview

gemini-3.1-pro-preview Start building free

gemini-3.1-pro-preview is a Google DeepMind model from the Gemini Pro tier, exposed as a preview version for developers through Google’s AI platforms (such as Vertex AI and the Gemini API). As a Pro-class Gemini model, it is designed as a general-purpose, higher-capability system compared with lighter, cheaper variants, while still aiming for reasonable latency and cost versus the top-end Ultra tier. It typically supports strong reasoning, code generation, and multimodal understanding (text plus images, with integration into broader Google tools), making it suitable for application backends, agents, and productivity features during its evaluation and iteration phase as a preview release. Because it is a preview, details like quality, performance optimizations, and pricing may evolve as Google refines the model toward a stable, generally available version.

Modalities
Context 1M tokens
Quota cost Standard (1×)
Added September 23, 2026

Pricing

Current price per 1,000,000 tokens. Every request is billed automatically from its exact usage.

Input $2,40 / 1M tokens ≈ $0,00240 / 1K tokens
Output $14,40 / 1M tokens ≈ $0,01440 / 1K tokens

Included in plans

Titanium Gold Silver

Statistics

Live performance and usage of this model, aggregated across all users.

No usage recorded yet

Detailed statistics appear here as soon as this model starts receiving requests.

API

Call this model from any OpenAI-compatible client using your API token.

curl
curl https://apiex.cloud/api/v1/chat/completions \
  -H "Authorization: Bearer $NEW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "gemini-3.1-pro-preview",
  "messages": [
    {
      "role": "user",
      "content": "Explain quantum entanglement in one paragraph."
    }
  ],
  "temperature": 0.7
}'
Authentication

Every request must include an Authorization: Bearer <TOKEN> header. Generate a token from your account's API Keys page — its access to models is set automatically from your active plans and redeemed codes, and you can set its rate limit and IP restrictions.

Supported parameters
Parameter Type Description
modelstring, requiredThis model's ID, exactly as shown above.
messagesarray, requiredConversation history as role/content objects (system, user, assistant).
temperaturenumber, optionalSampling randomness, typically 0–2.
max_tokensinteger, optionalUpper limit on tokens generated in the reply.
top_pnumber, optionalNucleus-sampling threshold, as an alternative to temperature.
streamboolean, ignoredResponses are always returned in full so the exact cost can be billed; streaming is not available.

Replace YOUR_API_KEY with a token from your account, then see the full API reference for every parameter.

Frequently asked questions

What is gemini-3.1-pro-preview?

gemini-3.1-pro-preview is a Google DeepMind model from the Gemini Pro tier, exposed as a preview version for developers through Google’s AI platforms (such as Vertex AI and the Gemini API). As a Pro-class Gemini model, it is designed as a general-purpose, higher-capability system compared with lighter, cheaper variants, while still aiming for reasonable latency and cost versus the top-end Ultra tier. It typically supports strong reasoning, code generation, and multimodal understanding (text plus images, with integration into broader Google tools), making it suitable for application backends, agents, and productivity features during its evaluation and iteration phase as a preview release. Because it is a preview, details like quality, performance optimizations, and pricing may evolve as Google refines the model toward a stable, generally available version.

How much does gemini-3.1-pro-preview cost?

Input tokens are priced at $2,40 per 1,000,000 tokens and output tokens at $14,40 per 1,000,000 tokens. Pricing is billed automatically per request; no separate plan is required.

What is the context length of gemini-3.1-pro-preview?

gemini-3.1-pro-preview supports a context window of up to 1,048,576 tokens.

Does gemini-3.1-pro-preview support image input?

Yes, gemini-3.1-pro-preview accepts image input in addition to text.

Which provider is gemini-3.1-pro-preview from?

gemini-3.1-pro-preview is developed by Google and made available on this gateway through our routing infrastructure.

When was gemini-3.1-pro-preview added to this gateway?

gemini-3.1-pro-preview has been available on this gateway since September 23, 2026.

Is gemini-3.1-pro-preview currently available?

Yes, gemini-3.1-pro-preview is active and can be used right now through this gateway.

Explore more models