# Gemini 4 Carbon

Gemini 4 Carbon is Google’s reasoning model for complex software engineering, sustained agentic workflows, and cybersecurity defense. It combines a 1M-token context window with multimodal understanding, tool calling, and structured outputs for working across large codebases and documents. Carbon emphasizes reliable execution of multi-step plans, clearer handling of uncertainty, and identifying, validating, and remediating security vulnerabilities.

- **Model ID:** `google/gemini-4-carbon`
- **Type:** chat
- **Providers:** google, vertex
- **Context window:** 1,000,000
- **Maximum output tokens:** 1,000,000
- **Pricing:** $2/1M input tokens, $10/1M output tokens
- **Canonical page:** https://vercel.com/ai-gateway/models/gemini-4-carbon

## Supported parameters

Detailed capability metadata has not been reported for this model.

## Example

```ts
import { streamText } from 'ai'

const result = streamText({
  model: 'google/gemini-4-carbon',
  prompt: 'Why is the sky blue?'
})
```

## Links

- [Model page](https://vercel.com/ai-gateway/models/gemini-4-carbon)
- [AI Gateway documentation](https://vercel.com/docs/ai-gateway)
- [Provider pricing](https://ai.google.dev/pricing)


If you encounter incorrect information, can’t find what you need, need a capability Vercel doesn’t currently offer, or have any other feedback to report, please do it by following the instructions at https://vercel.com/feedback.md.
