Gemini

Technical Reference

Comprehensive technical documentation for developers, including model architecture, parameters, and performance metrics.

View Model Specs

Model Architecture

Overview

Gemini is a 17.5B parameter multimodal foundation model capable of processing text, code, and images across 100+ languages.

Parameters

17.5 billion total

Languages

100+ supported

Training

100TB real-world data

Key Components

Tokenizer: 32768 unique token vocabulary optimized for code, text, and multimodal input.
Fine-tuning: Reinforcement learning with human feedback (RLHF) for conversational quality.
Quantization: 4-bit compression for efficient inference Learn more

Performance Metrics

Throughput

128 tokens/second latency on consumer-grade GPUs

512 tokens/second on A100 cloud GPUs

Optimized for: Batched inference and streaming responses

Code Accuracy

92.3% Pass@1 for Python in code generation tasks
98.7% Code syntax correctness

API Parameters

🧠

temperature

Controls randomness in generation (0=deterministic, 1=creative).

{`// Example usage: curl -X POST https://api.gemini.com/v1/complete \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"prompt":"Debug this Python code","temperature":0.2}'`}
📏

max_tokens

Limits output length. Maximum 32768 tokens (256k per request).

{`{ "prompt": "Explain quantum physics to a 10-year-old", "max_tokens": 100 }`}
⚙️

n

Number of alternative responses per request (1-5).

{`{ "prompt": "How to build a website?", "n": 3 }`}
🧩

top_p

Cumulative probability threshold for nucleus sampling (0-1).

{`{ "prompt": "Write a short story about AI", "top_p": 0.92 }`}

Error Responses

Code Description Solution
400 Bad Request Check JSON syntax
401 Unauthorized Validate API key
429 Rate limit exceeded Retry after timeout header
500 Internal Error Contact support

Need a technical question answered?

Check our GitHub repositories for code samples or search the documentation. Enterprise developers: Contact your account team for technical support.

Contact Support