About of Gemini 3.1 FlashLite USE Claude Code. 2026-03-29
テーマ:ブログ
Claude Code can work with Gemini models like Gemini 3.1 Flash-Lite. This is achieved through external tools or "Claude Bridge". These tools allow Claude Code's functions, such as code reading, file editing, and command execution, to be powered by Gemini.
As of March 2026, Gemini 3.1 Flash-Lite is fast and cost-effective. It is expected to be a strong lightweight model, with an input cost of $0.25 per million tokens.
Uravation
Here's how to use Gemini 3.1 Flash-Lite with Claude Code:
Steps to Use Gemini 3.1 Flash-Lite with Claude Code
Get an API key from Google AI Studio
Sign in to Google AI Studio and create an API key compatible with Gemini 3.1 Flash-Lite.
Set up Claude Bridge
Use an OSS tool, such as claude-bridge, to connect Claude Code with external models like Gemini.
Configure claude-bridge in the terminal and set the GEMINI_API_KEY environment variable with the key from step 1.
Specify gemini/3-1-flash-lite in the model selection.
Start Claude Code
Run the claude command through the bridge tool. This will use Gemini 3.1 Flash-Lite as the inference engine for coding tasks.
Features of Gemini 3.1 Flash-Lite
Low cost and speed: It costs about one-eighth of Gemini 3 Pro and is suitable for AI coding tasks that need fast responses.
Practical performance: It is a lightweight model, but it performs well enough for code generation and refactoring.
Note: As of March 2026, the Gemini CLI (Google's official terminal tool) has also improved and is a free, high-performance option.
コメント
コメントを投稿