Developers

Gemini 3.1 Pro API pricing

Gemini 3.1 Pro (Google) is priced at $2 / $12 per 1M input / output tokens. It ranks #11 of 17 models on Somnus by blended price. With Somnus credit (2× to 2.5× on every top-up) the effective price is $1 / $6 or lower.

Gemini 3.1 Pro cost by workload

WorkloadTokens per request (in / out)RequestsList costWith Somnus
Support chatbot1,500 / 50010,000$90.00$45.00
Coding agent step12,000 / 1,5002,000$84.00$42.00
Document summary8,000 / 4001,000$20.80$10.40
Classification / tagging400 / 20100,000$104.00$52.00

Effective cost uses the minimum 2× credit.

How Gemini 3.1 Pro pricing works

You are charged per token: 2 USD per million tokens you send and 12 USD per million tokens Gemini writes back. Output is 6.0× the input rate for Gemini 3.1 Pro, so answer length drives most of the bill.

Somnus bills usage at the list price and credits every top-up at 2× or more, which is how the effective $1 / $6 rate comes about.

At list price

$80.00 /mo

You pay with Somnus (2× credit)

$40.00 /mo

Cheapest models for this workload

  • DeepSeek V4 Flash$6.60 /mo
  • MiMo V2.5 Pro$10.95 /mo
  • DeepSeek V4 Pro$19.80 /mo
  • Gemini 3.8 Flash$30.00 /mo
  • Claude Haiku 4.5$40.00 /mo

Estimate Gemini 3.1 Pro cost from the usage field

python
from openai import OpenAI
import os

client = OpenAI(
    api_key=os.environ["SOMNUS_API_KEY"],
    base_url="https://gateway-production-c837.up.railway.app/v1",
)

resp = client.chat.completions.create(
    model="claude-sonnet-5",
    messages=[
      {"role": "user", "content": "Count my tokens"}
    ],
)
print(resp.choices[0].message.content)

Multiply usage.prompt_tokens by 2/1e6 and usage.completion_tokens by 12/1e6.

Questions

How much does Gemini 3.1 Pro cost per 1M tokens?

$2 / $12 list; $1 / $6 effective with Somnus credit.

Is there a free Gemini 3.1 Pro tier?

New Somnus accounts get $5 free credit usable on Gemini 3.1 Pro.

Run Gemini 3.1 Pro for less

$5 free credit, then 2×+ on every top-up.

Get an API key

Related

Browse more: Alternatives · Compare · Use cases · Developers · Solutions · Tools

WindowsStart with $5 free