Text and code

Google

Gemini 4 Carbon

Gemini 4 Carbon is Google's balanced Gemini 4 model for everyday coding, structured data extraction and long-text workflows at a lower rate. This page includes a practical prompt, pricing and comparison with Neon.

gemini-4-carbon Updated

In the public catalog. A catalog listing is not a live availability guarantee. Check /v1/models for access with your API key.

On this page

01

Use cases

What this model is useful for

Data extraction and ETL pipelines

Transform unstructured listings, forms and notes into clean JSON at production volume.

Daily coding and documentation

Draft explanations, READMEs, helper functions and focused refactors with fast responses.

Summarizing long documents

Extract action items, key points and contradictions from meeting transcripts and briefs.

02

Examples

Prompts you can try

A sample brief — add your own inputs. This page does not generate content or charge your balance.

Prompt for your own evaluation — no saved result yet.

Zero-hallucination product spec extraction

Test with real catalog descriptions and validate missing_fields against your ingestion pipeline.

Extract product specifications from the text into a flat JSON object {brand, model, weight_grams, battery_mah, missing_fields}. If an attribute is not stated explicitly, set it to null and list its key in missing_fields. Do not guess.

Make the prompt your own

  • Include one gold-standard JSON example in the system instruction to stabilize formatting.
  • Set temperature=0 when extracting factual fields from documents.

How to check the result

  • Missing attributes are honestly marked null and listed in missing_fields.
  • Returned JSON is valid without stray comments or broken formatting.
  • Units are converted to grams and mAh without order-of-magnitude errors.
  • No specs were hallucinated from brand memory.

03

Pricing / USD

CLODEx public pricing

Total tokens$0.28per 1M total tokens
Cached input$0.14per 1M tokens

The card shows CLODEx public pricing for gemini-4-carbon. A Google subscription does not transfer to CLODEx or change billing.

Full pricing details

04

Get started

How to get started

  1. Create a dedicated CLODEx key

    Open API Keys, create a key scoped to your app, and confirm the exact ID gemini-4-carbon appears in /v1/models.

  2. Configure an OpenAI-compatible client

    Point base_url to https://clodex.xyz/v1, send Authorization: Bearer $CLODEX_API_KEY, and set model="gemini-4-carbon".

  3. Verify output structure and token logs

    Check finish_reason, streaming completion handling, and input/output/cached token accounting in /usage-logs/common.

One API for your application.

cURL · Gemini 4 Carbon
curl --fail-with-body --no-buffer 'https://clodex.xyz/v1/chat/completions' \
  -H "Authorization: Bearer $CLODEX_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-binary @- <<'CLODEX_JSON'
{"messages":[{"content":"Extract product specifications from the text into a flat JSON object {brand, model, weight_grams, battery_mah, missing_fields}. If an attribute is not stated explicitly, set it to null and list its key in missing_fields. Do not guess.","role":"user"}],"model":"gemini-4-carbon","stream":true}
CLODEX_JSON

Keep your key on the server, never in the browser. A generation example uses your balance only when you run it yourself. Check model access and parameters before submitting.

How to get an API key

05

Specifications

Capabilities and limitations

Model ID
gemini-4-carbon
API protocols
OpenAI-compatible API

Only parameters declared by the integration catalog are shown. An omitted parameter is not a promise of support.

Model and integration

Balanced tier of Gemini 4

Gemini 4 Carbon costs less than Neon while offering stronger code, reasoning and extraction accuracy than ultra-light Flash models.

Unified API integration

Connects at https://clodex.xyz/v1 using any OpenAI SDK and draws from your shared CLODEx balance.

What to consider

Use Neon for deepest audits

For the hardest multi-step reasoning and subtle bugs, evaluate gemini-4-neon.

Canonical model ID

Use gemini-4-carbon consistently to keep usage tracking clean.

Deterministic number validation

Always validate numeric ranges and null fields in application code before database writes.

Before you submit

Validate normalized units (grams vs kilograms, Wh vs mAh) with deterministic code after JSON parsing.

06

Related models

Models to compare

Gemini 4 Neon

gemini-4-neon

Gemini 4 flagship for complex engineering and analytical workloads.

Gemini 3.8 Flash

gemini-3.8-flash

Lowest-cost Gemini model for simple classification and routing.

07

FAQ

Model FAQ

Do I need a separate Google subscription for Gemini 4 Carbon?

No. A Google subscription and CLODEx API access are different products. Calling gemini-4-carbon only requires a CLODEx account, key and balance.

Does Gemini 4 Carbon work with Cursor, Codex and Python SDK?

Yes, when gemini-4-carbon is enabled for your key group and the client supports a custom OpenAI-compatible base_url https://clodex.xyz/v1.

When should I pick Gemini 4 Carbon over Gemini 3.8 Flash?

Choose Carbon when Flash makes errors on complex schemas, long texts or code edits, yet you do not need Neon's full flagship cost.

Is there a difference between gemini-4-carbon and google/gemini-4-carbon?

Both refer to the same model family; prefer the short canonical ID gemini-4-carbon and confirm availability via /v1/models.

How do I verify gemini-4-carbon access for my key?

Call GET https://clodex.xyz/v1/models with your key to confirm gemini-4-carbon is listed, and review group conditions on /pricing.

08

Sources and documentation

Sources and review date

Content reviewed:

Open workspace