> ## Documentation Index
> Fetch the complete documentation index at: https://docs.oxen.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Gemini 4 Carbon

> Deep reasoning for math, science, and code

> [card] [Try Gemini 4 Carbon in the Workbench](https://www.oxen.ai/ai/workbench?model=gemini-4-carbon)
>
> Run this model interactively, tune parameters, and compare outputs.

**Model ID:** `gemini-4-carbon`

**gemini-4-carbon is a Multimodal LLM.** It is Google's Gemini 4 reasoning model for complex software engineering, mathematical and scientific problem solving, factual accuracy, and autonomous multi-step agents. Google highlights gains in formal proofs, experimental data analysis, and vulnerability discovery.

Some other noteworthy features of gemini-4-carbon include configurable thinking levels (low, medium, and high, with medium as the default), structured output, function calling, code execution, search grounding, URL context, file search, and computer use. It accepts text, images, audio, video, and PDFs and outputs text. It suits long, hard problems where accuracy matters more than latency, and its sibling Gemini 4 Argon trades some depth for faster, cheaper turns.

| Metric | Value |
| - | - |
| Context Length | 1M tokens |
| Max Output | 64K tokens |
| Multilingual | Yes |

## Example request

> [!TIP]
>
> Use the [Workbench](https://www.oxen.ai/ai/workbench?model=gemini-4-carbon) as a request builder: configure parameters for this model in the UI, then open the **API** tab to copy the exact cURL or Python call.

```bash cURL theme={null}
curl -X POST https://hub.oxen.ai/api/ai/audio/transcriptions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $OXEN_API_KEY" \
  -d '{
  "model": "gemini-4-carbon",
  "audio_url": "https://example.com/audio.mp3"
}'
```

```python Python theme={null}
import os
import requests

response = requests.post(
    "https://hub.oxen.ai/api/ai/audio/transcriptions",
    headers={
        "Content-Type": "application/json",
        "Authorization": f"Bearer {os.environ['OXEN_API_KEY']}",
    },
    json={
        "model": "gemini-4-carbon",
        "audio_url": "https://example.com/audio.mp3"
    },
)
response.raise_for_status()
print(response.json())
```

## Fetch model details

The [models endpoint](https://docs.oxen.ai/inference-api/reference/models/overview.md) returns the full model object, including its `json_request_schema`.

```bash theme={null}
curl -H "Authorization: Bearer $OXEN_API_KEY" https://hub.oxen.ai/api/ai/models/gemini-4-carbon
```

## Request parameters

This model follows the standard OpenAI chat completions request body. See the [chat completions reference](../inference-api.mdx) for the full parameter list.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.