Google Gemini API
Google Gemini 接口
Access Gemini 2.0 Flash, Pro, and Ultra models with native multimodal and tool-use support.
调用 Gemini 2.0 Flash、Pro 和 Ultra 模型,原生支持多模态和工具调用。
Website
Documentation
Pricing
free tier available, pay-as-you-go
Authentication
- API Key
Rate Limit
1500 req/min (paid tier)
Typical Latency
<600ms (Gemini 2.0 Flash)
Max Context
1M (Gemini 1.5 Pro)
Popularity
85/100
Endpoints
https://generativelanguage.googleapis.com/v1beta/models/gemini-2.0-flash:generateContent
SDKs
PythonNode.jsGoSwiftcurl
Key Features
- ◆Gemini 2.0 Flash, Pro models
- ◆1M+ token context window
- ◆Native multimodal: text, image, audio, video
- ◆Google Search grounding integration
- ◆Free tier available
Code Examples
Generate Contentbash
curl "https://generativelanguage.googleapis.com/v1beta/models/gemini-2.0-flash:generateContent?key=$GEMINI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"contents": [{"parts": [{"text": "Hello!"}]}]
}'Tags
llmmultimodalvision
Last updated: 2026-07-27
Similar APIs
OpenAI API
★100Access GPT-4o, GPT-4, GPT-3.5, embeddings, DALL-E, Whisper, and TTS models via REST API.
LangChain Platform
★91Framework and platform for building LLM applications. LangSmith for observability, LangServe for deployment.
Anthropic Claude API
★87Access Claude 3.5 Sonnet, Haiku, and Opus models for chat, analysis, and code generation.
OpenAI Assistants API
★84Build AI assistants with persistent threads, code interpreter, file search, and function calling.
Something wrong or missing? Open an issue on GitHub →
Pricing Comparison
| API | Pricing | Auth | Popularity |
|---|---|---|---|
| OpenAI API | pay-as-you-go (per token) | API Key (Bearer Token) | 100 |
| Anthropic Claude API | pay-as-you-go (per token) | API Key (x-api-key header) | 87 |
| OpenAI Assistants API | pay-as-you-go (per token + per tool use) | API Key (Bearer Token) | 84 |
| DeepSeek API | pay-as-you-go (per token, very low cost) | API Key | 83 |
Get Started with Google Gemini API
Click below to visit the official website and start using this API.
Visit Google Gemini API →Discussion
Questions, feedback, or suggestions? Start a discussion.
Discuss on GitHub