Open-weights chat model from Google AI Studio. One API key reaches all 6 providers, with automatic failover.
No card required. Start with 1 million free tokens.
About Gemma 3 12B
Gemma 3 12B is an open-weights chat model published by Google AI Studio, with a 131,072-token context window. Through TrustedRouter it runs on 6 providers, with options in the US and EU, from $0.053 per million input tokens. One provider offers zero data retention.
- Model ID
google/gemma-3-12b-it- Publisher
- Google AI Studio
- Modes
- chat
- Billing
- Credits or your own provider key
Set it up with your agent
Paste this into Claude Code, Cursor or any coding agent.
Use Gemma 3 12B through TrustedRouter in this project.
1. Read https://trustedrouter.com/llms.txt
2. Point the OpenAI-compatible client at
https://api.trustedrouter.com/v1 and read the key from
TRUSTEDROUTER_API_KEY.
3. Set the model to google/gemma-3-12b-it.
4. Run the tests, then show me the diff before committing.
import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.trustedrouter.com/v1",
api_key=os.environ["TRUSTEDROUTER_API_KEY"],
)
response = client.chat.completions.create(
model="google/gemma-3-12b-it",
messages=[{"role": "user", "content": "What is the capital of France?"}],
)
print(response.choices[0].message.content)
curl https://api.trustedrouter.com/v1/chat/completions \
-H "Authorization: Bearer $TRUSTEDROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "google/gemma-3-12b-it",
"messages": [{"role": "user", "content": "What is the capital of France?"}]
}'
Providers
Your key goes to the cheapest healthy provider and fails over on its own. Open a row for retention, location and weight format, or see how we check privacy claims and the live speed leaderboard.
| Provider | Input | Cached | Output | Cost per 1M in + out | Details |
|---|---|---|---|---|---|
|
|
$0.0528 | — | $0.106 | $0.16 | |
|
Retention Verification: privacy unknown. No provider-ZDR claim is tracked here. Novita's privacy policy says personal information is not used for model training; customer-content processing is governed by customer agreements. Location Operator country: US Headquarters / registered office: San Francisco, California, United States. Company location source (reviewed 2026-09-27). Inference: Shared inference API; processing countries unconfirmed, no fixed-region commitment. No exhaustive inference-country list verified for the shared model API. Novita publishes worldwide GPU rental regions, but that separate product does not establish shared serverless model placement. Region pinning through TR: Not supported by the current TrustedRouter integration. Reviewed 2026-10-28. Weight format Unknown Price and speed Input $0.05275/1M · Cached input Not published · Output $0.1055/1M TTFT: insufficient data Speed: insufficient data |
|||||
|
|
$0.0528 | — | $0.158 | $0.21 | |
|
Retention Verification: no verified privacy claim. Tracked as no-store, not strict ZDR. DeepInfra documents memory-only handling and no training for ordinary inference, but reserves the right to log a small portion of requests for debugging or security. Google- and Anthropic-backed routes also inherit those vendors' terms. Location Operator country: US Headquarters / registered office: Palo Alto, California, United States. Company location source (reviewed 2026-09-27). Inference: US infrastructure plus announced Canadian capacity; model-specific residency unconfirmed. DeepInfra describes US infrastructure and announced its first international data center in Toronto on July 8, 2026. This is a provider footprint, not an exhaustive or model-specific placement list. DeepSeek V4.1 Flash placement has not been confirmed; do not declare this route US-only. Region pinning through TR: Not supported by the current TrustedRouter integration. Reviewed 2026-09-27. DeepInfra infrastructure statement Weight format Unknown Price and speed Input $0.05275/1M · Cached input Not published · Output $0.15825/1M TTFT: insufficient data Speed: insufficient data Last sample: |
|||||
|
|
$0.0791 | $0.0528 | $0.158 | $0.24 | |
|
Retention Verification: privacy unknown. NextBit's global API can use third-party infrastructure outside the EEA. Its DPA permits exceptional legal retention for up to 30 days, so this route remains Standard. Use NextBit (EU) for Spain-only processing and zero content retention. No confidential-compute or E2EE claim is made. Location Operator country: ES Headquarters / registered office: Not verified. Inference: Global inference; countries unspecified. Not an EU-only route. NextBit's global API may run inference on third-party infrastructure outside the EEA. Region pinning through TR: Use provider.only=[nextbit-eu] for the separate EU route, not nextbit. Reviewed 2026-10-14. Weight format Unknown Price and speed Input $0.079125/1M · Cached input $0.05275/1M · Output $0.15825/1M TTFT: 1.10 s Speed: insufficient data Last sample: |
|||||
|
|
$0.0791 | $0.0528 | $0.158 | $0.24 | |
|
Retention Zero data retention. Verification: provider E2EE not verified. NextBit's EU API processes inference exclusively in Spain. Its public DPA sections 4 and 11 prohibit retaining prompts, outputs, or content logs and using them for training; operational metadata is retained. This route uses eu.api.nextbit256.com, never the global API. Special-category personal data requires a separate agreement under section 13. No confidential-compute or E2EE claim is made. Location Operator country: ES Headquarters / registered office: Not verified. Inference: Spain-only inference; gateway in the EU. Operational metadata retained; no content retention. The EU API's DPA commits to inference exclusively on NextBit infrastructure in Spain. Region pinning through TR: Select provider.only=[nextbit-eu] with allow_fallbacks=false and min_privacy=zdr. Reviewed 2026-10-14. Weight format Unknown Price and speed Input $0.079125/1M · Cached input $0.05275/1M · Output $0.15825/1M TTFT: 1.18 s 121.0 tokens/s Last sample: |
|||||
|
|
$0.0950 | — | $0.306 | $0.40 | |
|
Retention Retention unverified - not strict ZDR: This exact model and upstream ID have not been approved for strict ZDR under the current account controls. Provider-wide ZDR, no-training and successful inference are insufficient. Safety retention or other content storage may apply; the route is excluded until reviewed. This exact model and upstream ID have not been approved for strict ZDR under the current account controls. Provider-wide ZDR, no-training and successful inference are insufficient. Safety retention or other content storage may apply; the route is excluded until reviewed. Location Operator country: US Headquarters / registered office: Not verified. Inference: Inference location not verified; no country-specific residency commitment. No inference-location declaration has been verified for this provider. Region pinning through TR: No verified provider-specific location pin documented here. Weight format Unknown Price and speed Input $0.09495/1M · Cached input Not published · Output $0.30595/1M TTFT: insufficient data Speed: insufficient data |
|||||
|
|
$0.158 | — | $0.528 | $0.69 | |
|
Retention Verification: no verified privacy claim. Databricks Foundation Model APIs are a Designated Service and pay-per-token workloads are HIPAA compliant. Databricks may temporarily process or store inputs and outputs for abuse prevention, and may process data outside the originating cloud or region. This route is therefore standard privacy, not ZDR, confidential compute, or end-to-end encrypted. Location Operator country: US Headquarters / registered office: Not verified. Inference: Inference location not verified; no country-specific residency commitment. No inference-location declaration has been verified for this provider. Region pinning through TR: No verified provider-specific location pin documented here. Weight format Unknown Price and speed Input $0.15825/1M · Cached input Not published · Output $0.5275/1M TTFT: 1.16 s Speed: insufficient data Last sample: |
|||||
Append :nitro to the model ID, or send "provider": {"sort": "throughput"}, to route to the fastest provider instead.
Questions
What model ID should I use for Gemma 3 12B?
Use google/gemma-3-12b-it as the model field with the TrustedRouter OpenAI-compatible API. Credits routing and provider fallback happen behind that model ID.
Do you log my prompts or outputs?
No. Prompt and output content are intentionally excluded from the control plane and metadata systems. Optional content export requires explicit destination-level configuration.
Which providers serve Gemma 3 12B?
TrustedRouter currently lists NextBit (EU), DeepInfra, Novita AI, Databricks, NextBit, and Amazon Bedrock for Gemma 3 12B. Provider availability and routing eligibility can change as catalog and health data update.
How much does Gemma 3 12B cost through TrustedRouter?
The current lowest Credits input price is $0.05275/1M and the lowest Credits output price is $0.1055/1M. Prices are per one million tokens and come from the current route catalog.
How do I require zero data retention for Gemma 3 12B?
Set provider.min_privacy to zdr on the request. TrustedRouter considers only routes with a recorded zero-data-retention posture and fails closed if no eligible route remains.
Gemma 3 12B vs other models
Start building with Gemma 3 12B.
No card required. Start with 1 million free tokens.
