Gemini 4 Carbon
gemini-4-carbonUse the Gemini 4 Carbon API to analyze complex technical material, review code, and develop reasoned plans for multi-step work. Provide your question, relevant documents or code excerpts, and the constraints that should guide the response. The model can help trace a difficult defect, compare proposed system designs, or organize findings from a long research brief into a reviewable explanation. Add images when the selected provider route supports the required input format, and request the level of detail your task needs. The detail page includes request examples, supported parameters, provider selection, and token-based usage pricing.
Auto route pricing
Route source: neolink
This route has conditional pricing. Review its tiers and requirements before calling.
- Published rate
- Conditional pricing
- Billing unit
- / 1M tokens
- Context / Max output
- — / —
- Live routes
- 1
On this page
Overview
Overview for neolink
Meet Gemini 4 Carbon
Gemini 4 Carbon: artwork published with Google's model announcement
This image is published model artwork, not a generated OpenAny output. View Google's announcement.
Try a focused task
Trace a difficult defect
Start with the source material and a specific question. State the required answer structure and ask the model to identify missing information instead of filling gaps with assumptions. The template below supplies a small task you can inspect before adapting it to larger documents or a codebase.
Review this Python function for empty input and generator input. Explain the failure cases, propose a correction, and list test cases.
def average(values):
return sum(values) / len(values)Review the answer against the input. Check that every claim follows from the supplied material and that proposed actions address the stated constraints. For a coding task, run relevant checks in your own development environment before accepting a change.
Quickstart on OpenAny
Set OPENANY_API_KEY and submit a Chat Completions request. The public ID is gemini-4-carbon; the configured upstream mapping uses ge-4-ca. The sample pins the neolink provider.
curl 'https://api.openany.si/v1/chat/completions' \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '{
"model": "gemini-4-carbon",
"route": {
"provider": "neolink"
},
"messages": [
{
"role": "user",
"content": "Review this Python function for empty input and generator input. Explain the failure cases, propose a correction, and list test cases.\n\ndef average(values):\n return sum(values) / len(values)"
}
],
"max_tokens": 2048,
"stream": false
}'Use the API host for your environment. The example uses the production host; for Dev, replace it with https://api-dev.openany.si. This request template has not been executed as part of package preparation.
Read the response
A non-streaming Chat Completions response contains assistant content under choices[0].message.content and reports token usage in usage. The response below illustrates the structure only: its ID, timestamp, text, and usage values are placeholders.
{
"id": "chatcmpl-EXAMPLE",
"object": "chat.completion",
"created": 0,
"model": "gemini-4-carbon",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "[Generated analysis appears here. This is a response-schema placeholder, not a captured model result.]"
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 0,
"completion_tokens": 0,
"total_tokens": 0
}
}The API and Playground example stores this same placeholder response with an explicit schema-example marker. It does not demonstrate successful generation, cache hits, entitlement, or billing for this route.
Context, output limits, and input formats
Setting | Evidence and practical use |
|---|---|
Context window | 1,048,576 unified tokens in Google's model documentation; the supplied Neo capture rounds this to 1.1M. |
Neo advertised maximum output | 1.1M in the supplied capture. This is an advertised maximum, not the output budget of the example. |
Synchronous example output | 2,048 tokens requested; the example schema caps the synchronous budget at 65,536. |
Long output | Google documents output beyond the synchronous default through long decode. Support for that mode has not been verified on this provider route. |
Provider-listed features | Tool calling, reasoning, content caching, multimodal input. |
Input and output | Text request template and text output. Google's model documentation also lists image, audio, video, and PDF inputs; accepted payloads depend on the selected provider interface. |
Google's Gemini 4 Carbon model documentation describes the manufacturer limits. Context is shared by input and output, so a large prompt leaves less room for generation. Before sending media, verify that the selected interface accepts its encoding and size. This package does not introduce unverified audio, video, PDF, or long-decode request fields.
Choose request parameters
Parameter | How to use it |
|---|---|
model | Use gemini-4-carbon in client requests. |
messages | Provide your question and source material. The example starts with one user message. |
max_tokens | Choose an output budget suitable for the task; the template uses 2,048. |
stream | The template requests a complete JSON response with false. |
route.provider | The example selects neolink rather than leaving provider choice automatic. |
Pricing and caching
All amounts below are USD per 1,000,000 tokens. OpenAny retail prices are 95% of the selected Google Standard list prices, a 5% discount.
Usage | Official list price | OpenAny retail price (95%) |
|---|---|---|
Input | $4 | $3.80 |
Output (including thinking tokens) | $20 | $19.00 |
Cache read | $0.20 | $0.1900 |
For this model the selected list-price basis takes effect on December 1, 2026. Google lists introductory input / output / cache-read prices of $2 / $10 / $0.10 through November 30, 2026. This package retains the adjusted basis requested for the model; it does not schedule an automatic change. View Google's official pricing and effective dates.
Cache-read pricing applies to input usage reported as cached. No cache-creation quote was supplied, so a cache-write amount remains unconfigured. Google's documentation describes implicit caching; this guide does not add an explicit cache-management endpoint. Tool services such as search grounding have separate manufacturer charges and are not included in this token-price comparison.
Common questions
Does the 1.1M figure guarantee a 1.1M-token answer?
No. The source interface rounds the figure, and the manufacturer distinguishes the synchronous default from long decode. The total context limit also constrains input plus output.
Can I use the request with a different provider?
Select a compatible provider route and check that its model mapping, accepted inputs, and pricing match your needs. The upstream identifier in this package is specific to the configured provider.
Why does the preview show placeholder text?
No captured result was supplied for these four models. The configured response is a labeled structural example so readers can see the shape of the JSON. Replace it in the model's response-example editor when a real response is available.
Where are translations and model specifications applied?
The main configuration import creates the model, route, English description, Overview, and public examples. The current importer archives translated descriptions and detailed specifications as documents; the accompanying editor files identify the fields to apply separately.
Playground
Complex technical analysis and code review. Request template with an explicitly labeled placeholder response.
Other parameters (1)
Result preview
neolink · 4744ms
Response example. Run to see the actual response.
{
"id": "chatcmpl-EXAMPLE",
"model": "gemini-4-carbon",
"usage": {
"total_tokens": 0,
"prompt_tokens": 0,
"completion_tokens": 0
},
"object": "chat.completion",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "[Generated analysis appears here. This is a response-schema placeholder, not a captured model result.]"
},
"finish_reason": "stop"
}
],
"created": 0
}Agent handoff preview
Providers
| Provider | Pricing | Latency | Uptime | Supply | Route |
|---|---|---|---|---|---|
Live | Input $3.800 / 1M tokensSave 5% vs official Output $19.000Save 5% vs official Cache read $0.190 Cache write — | 4744ms | — | Verified |
- Input
- $3.800Save 5% vs official
- Output
- $19.000Save 5% vs official
- Cache read
- $0.190
Source: the selected provider route in OpenAny's public model catalog. A price update timestamp is not supplied.
API
- Base URL
https://api.openany.si/v1- POST
/v1/chat/completions- Authentication
Authorization: Bearer $OPENANY_API_KEY
Request parameters
| Parameter | Type / range | Default value | Required | Description |
|---|---|---|---|---|
prompt | string | Review this Python function for empty input and generator input. Explain the failure cases, propose a correction, and list test cases.
def average(values):
return sum(values) / len(values) | Yes | Prompt |
max_tokens | integer · 1 ~ 65536 | 2048 | No | Maximum output tokens |
Request example
curl 'https://api.openany.si/v1/chat/completions' \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"max_tokens": 2048,
"messages": [
{
"content": "Review this Python function for empty input and generator input. Explain the failure cases, propose a correction, and list test cases.\n\ndef average(values):\n return sum(values) / len(values)",
"role": "user"
}
],
"model": "gemini-4-carbon",
"stream": false
}'Response example
Official schema example with placeholders, not a live response
{
"id": "chatcmpl-EXAMPLE",
"model": "gemini-4-carbon",
"usage": {
"total_tokens": 0,
"prompt_tokens": 0,
"completion_tokens": 0
},
"object": "chat.completion",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "[Generated analysis appears here. This is a response-schema placeholder, not a captured model result.]"
},
"finish_reason": "stop"
}
],
"created": 0
}Error handling
400Check the model ID and request fields.429Retry with exponential backoff.5xxRetry only temporary provider failures.JSON Schema
{
"type": "object",
"required": [
"model",
"messages"
],
"properties": {
"model": {
"type": "string",
"default": "gemini-4-carbon"
},
"stream": {
"type": "boolean",
"default": false
},
"messages": {
"type": "array",
"items": {
"type": "object",
"required": [
"role",
"content"
],
"properties": {
"role": {
"enum": [
"system",
"user",
"assistant",
"tool"
],
"type": "string"
},
"content": {
"oneOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "object"
}
}
]
}
},
"additionalProperties": true
},
"minItems": 1
},
"max_tokens": {
"type": "integer",
"default": 2048,
"maximum": 65536,
"minimum": 1,
"description": "Synchronous example output budget. Larger advertised output requires long-decode support not established for this route."
}
},
"additionalProperties": true
}Examples
Request example
POST /v1/chat/completionscurl 'https://api.openany.si/v1/chat/completions' \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"max_tokens": 2048,
"messages": [
{
"content": "Review this Python function for empty input and generator input. Explain the failure cases, propose a correction, and list test cases.\n\ndef average(values):\n return sum(values) / len(values)",
"role": "user"
}
],
"model": "gemini-4-carbon",
"stream": false
}'