Gemini 4 Carbon API
gemini-4-carbon
- Input
- $4.40/M
- Cached
- $0.22/M
- Output
- $22.00/M
- Context
- 1M
Price Google’s official price plus 10%, per call. No fee when you buy credit.
Know first Thinking can’t be turned off.
API
curl
curl https://api.tokens.pay/v1/chat/completions \
-H "Authorization: Bearer $TOKENS_PAY_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gemini-4-carbon",
"messages": [{"role": "user", "content": "Say hello in five words."}]
}'
Python
from openai import OpenAI
import os
client = OpenAI(base_url="https://api.tokens.pay/v1", api_key=os.environ["TOKENS_PAY_KEY"])
reply = client.chat.completions.create(
model="gemini-4-carbon",
messages=[{"role": "user", "content": "Say hello in five words."}],
)
print(reply.choices[0].message.content)
Node
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.tokens.pay/v1", apiKey: process.env.TOKENS_PAY_KEY });
const reply = await client.chat.completions.create({
model: "gemini-4-carbon",
messages: [{ role: "user", content: "Say hello in five words." }],
});
console.log(reply.choices[0].message.content);
Where it runs
| Step | Where | Stores the prompt |
|---|---|---|
| Tokens.Pay | United States | No |
| Google (Gemini API) | Not stated | Its own terms |