gemini-4-carbon

AliasGemini 4 Carbon
by GoogleText

Gemini 4 Carbon API by Google on TTAPI supports coding and scientific reasoning through Gemini chat completions and native generateContent. Compare workflows and token billing at 40% off official rates.

Last updated:
InputMessagesGemini chat format
OutputTextJSON or streaming
FlowSync + SSEstream is optional
Price40% offofficial
gemini-4-carbonExample conversation
You

Turn these engineering notes into a release plan with owners, milestones, and rollback checks. Keep the answer practical for a gemini-4-carbon integration.

gemini-4-carbon logo
gemini-4-carbon

Start with the goal and release window, assign an owner for each milestone, define an observable success condition, and include a tested rollback path before launch. This example is tailored to the gemini-4-carbon model page.

Examples

A request and response, in context

01 · Release plangemini-4-carbon
You

Turn these engineering notes into a release plan with owners, milestones, and rollback checks. Keep the answer practical for a gemini-4-carbon integration.

gemini-4-carbon logo
gemini-4-carbon

Start with the goal and release window, assign an owner for each milestone, define an observable success condition, and include a tested rollback path before launch. This example is tailored to the gemini-4-carbon model page.

02 · Data contractgemini-4-carbon
You

Design a JSON data contract for an asynchronous generation job, including validation and status transitions. Keep the answer practical for a gemini-4-carbon integration.

gemini-4-carbon logo
gemini-4-carbon

Use one immutable request ID, validate the input schema at ingestion, model status as a small state machine, and record timestamps plus result URLs for every terminal state. This example is tailored to the gemini-4-carbon model page.

03 · Customer updategemini-4-carbon
You

Rewrite this technical outage note as a calm customer update with clear next steps. Keep the answer practical for a gemini-4-carbon integration.

gemini-4-carbon logo
gemini-4-carbon

Lead with impact and current status, state the mitigation in plain language, avoid speculative causes, and tell customers exactly when the next update will arrive. This example is tailored to the gemini-4-carbon model page.

Capabilities

What you can build with gemini-4-carbon

Model focus

Google's frontier model for demanding software engineering, scientific reasoning, and sustained multi-step work.

Chat completions

Submit messages and the exact model ID through the Gemini-compatible chat endpoint.

Native Gemini requests

Use the documented generateContent endpoint for contents, system instructions, tools, and model-supported generation settings.

Token billing

Input, cached input, and output follow Google's official token rates with the TTAPI 40% discount.

Pricing

Token billing rules

One key and one balance across supported text models.

Gemini 4 Carbon token pricingOfficial pricing

USD per 1 million tokens after TTAPI's 40% channel discount. Output billing includes thinking tokens. Cached input uses implicit caching for these models.

PeriodInput / 1MCached input / 1MOutput / 1M
Through Nov 30, 2026$1.2$0.06$6
From Dec 1, 2026$2.40$0.12$12.00
API request

Requests by operation

Switch between operation-specific endpoints and request fields.

Gemini

Gemini Completions

Chat-compatible format. Send messages and model in the body; stream is an optional boolean.

POSThttps://api.ttapi.io/gemini/chat/completions

Headers

TT-API-KEYstringrequired

Your TTAPI API key.

Content-Typestringrequired

Use application/json.

Body

messagesobject[]required

Conversation messages with role and content, as documented by TTAPI.

messages[].rolestringoptional

Role of this conversation message, for example user.

messages[].contentstringoptional

Text content of this conversation message.

modelstringrequired

Supported Gemini model identifier. Use the model ID shown in the request example.

streambooleanoptional

Enable server-sent events for progressive responses. Defaults to false.

Open this TTAPI channel documentation
Integrate

Integrate the selected channel

Choose a channel and operation, then copy the matching endpoint, request body, and code sample.

Gemini

Gemini Completions integration

POST https://api.ttapi.io/gemini/chat/completions

curl --request POST \
  --url https://api.ttapi.io/gemini/chat/completions \
  --header "TT-API-KEY: $TTAPI_KEY" \
  --header 'Content-Type: application/json' \
  --data '{"model":"gemini-4-carbon","messages":[{"role":"user","content":"Review this migration plan and identify the three highest risks."}],"stream":false}'