CLIChat / LLM$2.00/M tokens

Use Sonar in Gemini CLI

Connect the Sonar API to Gemini CLI through SkillBoss — one API key, no provider lock-in. Starting at $2.00/M tokens.

Use sonar to perform real-time web searches for AI agents. Ideal for Claude Code automation, research tasks, and retrieving current information.

Setup in Gemini CLI

  1. Sign up at skillboss.co and create an API key.
  2. Configure Gemini CLI to use the SkillBoss API endpoint: https://api.skillboss.co/v1
  3. Set the model to perplexity/sonar
  4. Run your first request — Sonar is now available in Gemini CLI.

Model Specs

Model
Sonar
Type
Chat / LLM
Vendor
perplexity
Category
web-search
Pricing
$2.00/M tokens
API ID
perplexity/sonar

Quick Start Code

Call Sonar from Gemini CLI using the SkillBoss unified API:

curl -X POST 'https://api.skillboss.co/v1/chat/completions' \
  -H 'Authorization: Bearer $SKILLBOSS_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "model": "perplexity/sonar",
    "messages": [{"role": "user", "content": "Hello from Gemini CLI"}]
  }'

The same API key works with all 600+ models. Change the model parameter to switch instantly.

Similar Models for Gemini CLI

Use Sonar in Other Agents

FAQ

How do I use Sonar in Gemini CLI?

Sign up at skillboss.co, get an API key, and configure Gemini CLI to use the SkillBoss API endpoint (https://api.skillboss.co/v1). Set the model to perplexity/sonar and you're ready to go.

How much does Sonar cost?

Sonar costs $2.00/M tokens via SkillBoss with pay-as-you-go billing. No subscription required.

Can I switch to another model without changing my code?

Yes — SkillBoss provides a unified API compatible with OpenAI format. Change the model parameter to switch between 600+ models instantly without modifying your integration.