All models

gemini-4-carbon API ★

GoogleChatReasoningVision
Get your API key
gemini-4-carbon

A reasoning model for complex engineering and in-depth analysis

Gemini 4 Carbon is suited to complex programming, math and science problems, and work requiring multi-step analysis. Use the full model ID gemini-4-carbon to submit requests through Chat Completions, Responses and Messages. Native Generate Content is currently unavailable. Clearly specify your goals, materials and acceptance criteria, then verify the answers against actual results.

GoogleModel brand
ChatModel type
Reasoning, visual understandingCapabilities
STANDARD APIs · QUICK SETUP

Keep your SDK. Connect in minutes.

Point the Base URL to api.acedata.cloud, configure your platform API key and the model ID below, and use your compatible SDK or client.

API host
api.acedata.cloud
model
gemini-4-carbon
Get your API key
OpenAI Python SDK
import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ["ACEDATACLOUD_API_KEY"],
    base_url="https://api.acedata.cloud/v1",
)
response = client.responses.create(
    model="gemini-4-carbon",
    input="Hello!",
)
print(response.output_text)

Choose an available protocol for this model. OpenAI SDK uses a Base URL ending in /v1; Anthropic SDK uses the root URL. See each guide for protocol-specific parameters, tools and response formats.

Specifications and interfaces

Check the model specifications first, then choose a suitable request format.

Public model ID
gemini-4-carbon
Official context window
1,048,576 tokens shared across input, thinking and output
Standard synchronous output limit
65,536 tokens
Native thinking levels
low, medium, high
Platform chat interfaces
Chat Completions, Responses and Messages
Platform Gemini interface
Currently unavailable; use the contents request format when it is restored

The official capacity does not mean every client request can reach that length. Actual timeouts, input types and parameters depend on the selected platform interface.

Core capabilities

Evaluate performance on complex tasks using verifiable results.

Handle long-running engineering problems

Provide relevant code, interface constraints, failure logs and test results, and ask the model to list dependencies, risks and the order of verification. Generated changes must still be tested and reviewed in the project environment.

Analyze mathematical and scientific materials

Specify the problem, known conditions and required derivation. Ask for key assumptions and calculation steps to be listed separately so they can be checked against the original data.

Work with multimodal input

The official model specifications list text, image, video, audio and PDF inputs, with text output. When using multimodal input, organize the materials according to the documentation for the selected interface. Native Generate Content is currently unavailable.

Use cases

Start with a clear task and acceptance criteria.

Cross-module change review

Provide the relevant modules and existing behavior, and ask the model to identify changes that might affect interfaces or data semantics, with a way to verify each one.

Research across multiple sources

Provide sources, versions, and the question at hand, and have the model compare evidence and points of conflict while flagging conclusions that still require human verification.

Multi-stage tool workflows

Record the inputs, tool results, and completion criteria for each step. The model can propose tool calls, but the application must still execute and authorize them and check the returned results.

How to choose

Compare quality, latency, and cost on the same task.

Compare with Flash models

Carbon is better suited to complex tasks requiring deeper reasoning; for short question-and-answer tasks or high-concurrency processing, you can also try Flash models. Compare final output quality and total Token consumption, rather than looking only at response speed for a single request.

Allow enough output budget

Thinking and visible output share the output budget. Too small a budget for a complex task may leave only an incomplete answer; set the output limit according to task complexity and check the stop reason.

Start with one task

First, validate a piece of work that can be checked.

01

Prepare materials

Provide the current code or materials, objectives, constraints, and output format to check.

02

Choose an entry point

For the OpenAI format, choose Chat Completions or Responses; for the Anthropic format, choose Messages. See the Responses and Messages documentation for specific request fields.

03

Verify the results

Check conclusions against real tests, source materials, or calculation records before deciding whether to incorporate the task into a long-term workflow.

Usage boundaries

Keep model capabilities, platform interfaces, and business commitments aligned.

  • Chat Completions currently supports standard requests and streaming text generation; native Generate Content is not yet available. Background long-form output and server-side session state in the Google Interactions API belong to a separate interface; these capabilities cannot be obtained simply by replacing the model ID.
  • Gemini 4 Carbon supports implicit caching only and does not support creating or referencing explicit cached content. Cache hits and discounts depend on actual usage and the current pricing page.
  • For longer tasks, set a sufficient client timeout and handle stop reasons. Both the thinking process and visible output consume output Tokens.

Frequently Asked Questions

Answers to questions about usage and pricing.

Which model name should I use?

Use gemini-4-carbon. Set model in the request body for Chat Completions, Responses, and Messages.

Can I directly use background tasks from the Google Interactions API?

Long-running background outputs and server-side session state belong to the separate Google Interactions API. The endpoints listed here are all used for generation within the current request.

Why should I pay attention to max_tokens even for short requests?

The thinking process consumes the output budget. If the budget is insufficient, the visible response may be empty or incomplete; increase the limit according to task complexity and check the stop reason.

Can I use explicit caching?

This model supports only implicit caching and does not support explicit cache resources. Applications should not directly reuse cached_content requests from older models.

Will prices change?

The model reference prices published by Google are limited-time prices through November 30, 2026, and will increase afterward. Please refer to the current billing rates shown on the platform's pricing page.