AI Model APIs
AI Model APIsProviders
AI Model APIs

The complete platform for comparing AI models. Find pricing, capabilities, and the perfect model for your use case.

contact@aimodelapis.com

Resources

  • AI Models APIs
  • Providers

About

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 AI Model APIs. All rights reserved.

Back to Models
AI/ML API

Sonar API

AI/ML API
About

Process massive datasets with Sonar, featuring an expansive 128K context window for long-document analysis. This model delivers cost-effective pricing at $1.30/1M input and $1.30/1M output tokens. Access Sonar via the AI/ML API API with up to 100K output tokens.

Capabilities

Input Modalities

text

Output Modalities

text
Reasoning
No
Structured Output
No
Tool Use
No
WeightsClosed
Temperature
Adjustable
Attachment
Not Supported
Limits
Context Window
128K

Tokens

Input Limit
128K

Tokens

Max Output
100K

Tokens

Pricing

Standard (per 1M tokens)

Input
$1.30
Output
$1.30
Frequently Asked Questions

Sonar by AI/ML API costs $1.30 per 1M input tokens and $1.30 per 1M output tokens.

Model Details
ID
perplexity/sonar
Provider
AI/ML API
Family
sonar
Release Date
Jan 1, 2024
Knowledge Cutoff
Sep 1, 2025
API Integration
NPM Package
@ai-sdk/openai-compatible
Environment Variables
AIMLAPI_API_KEY
API Base URL
https://api.aimlapi.com/v1
Documentation