Models / Google

Gemini 3.1 Pro

$2/Mtok in

Million-token context at a mid-tier price.

Playground

Try it in the browser

Playground$2 in / $8 out per 1M tokens
≈ $0.0082

Facts

At a glance

Availability

Live

Pricing

$2 / M input · $8 / M output

Endpoint

Chat Completions

/v1/chat/completions

Context window

1,000k tokens

API

Call it from code

import OpenAI from "openai"

const client = new OpenAI({
  baseURL: "https://api.companyfabric.com/v1",
  apiKey: process.env.COMPANYFABRIC_API_KEY,
})

const res = await client.chat.completions.create({
  model: "google/gemini-3-1-pro",
  max_tokens: 1024,
  temperature: 0.7,
  messages: [{ role: "user", content: "Say hello from the fabric." }],
})

console.log(res.choices[0].message.content)

Prompt library

Example runs

Here are 40 support transcripts. Cluster the complaints and rank by frequency.

This exact run cost $0.011

FAQ

Frequently asked questions

How much does Gemini 3.1 Pro cost?

$2 / M input · $8 / M output. The exact cost of each call is shown before you run it and metered to your prepaid balance — no subscription required.

Why use Gemini 3.1 Pro on CompanyFabric instead of going direct?

One key and one balance across every model in the library, at pricing at parity with or below the direct API. Switching models is a one-line change.

Is Gemini 3.1 Pro available through the OpenAI SDK?

Yes — point any OpenAI SDK at api.companyfabric.com/v1 and set model to "google/gemini-3-1-pro".

Variants

Same family

Explore

Related model APIs

One key. Every model. Exact prices.

Run Gemini 3.1 Pro with free starter credits. Free starter credits included — no subscription required.