Agent FrameworkChat / LLM$2.00/M tokens

Use Sonar in Trae

Connect the Sonar API to Trae 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 Trae

  1. Sign up at skillboss.co and create an API key.
  2. Configure Trae 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 Trae.

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 Trae 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 Trae"}]
  }'

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

Similar Models for Trae

Use Sonar in Other Agents

FAQ

How do I use Sonar in Trae?

Sign up at skillboss.co, get an API key, and configure Trae 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.