Google: Gemini 4 Carbon

Chat-50%
google/gemini-4-carbon

Gemini 4 Carbon is Google’s reasoning model for complex coding, research and agent workflows. It supports text, image, audio, video and PDF input, tool calling and structured output. Input, thinking and output share a 1,048,576-token window. Foreground output is limited to 32,768 tokens without streaming or 65,536 with streaming. Thinking levels are low, medium (default) and high. Only implicit context caching is supported; extended output requires continuation support.

Context Window
1M
Max Output Tokens
66K
Released
2026-11-10
Capabilities
VisionFunction CallingReasoningPrompt CachingWeb SearchAudio InputVideo InputPDF Input
Available Providers
Gemini
Supported Protocols
openaigemini

Providers

Geminiprovider.type: "gemini"
-50%
Input Tokens
$2/M
$4/M
Output Tokens
$10/M
$20/M
Cache Read
$0.1/M
$0.2/M
Audio Input
$2/M
$4/M
Cached Image
$0.1/M
$0.2/M
Cached Audio
$0.1/M
$0.2/M
Cached Video
$0.1/M
$0.2/M
Web Search
$0.014/R
Protocols
openai/v1/chat/completions
gemini

Documentation

How to call Gemini 4 Carbon on OfoxAI: model IDs, request parameters and the errors you are most likely to hit.

Code Examples

from google import genai
client = genai.Client(
api_key="YOUR_OFOX_API_KEY",
http_options={"api_version": "v1beta", "base_url": "https://api.ofox.io/gemini"},
)
response = client.models.generate_content(
model="google/gemini-4-carbon",
contents="Hello!",
)
print(response.text)

Frequently Asked Questions

Google: Gemini 4 Carbon on Ofox.ai costs $4 per million input tokens and $20 per million output tokens. Pay-as-you-go, no monthly fees.