Description
Claude Sonnet 4 significantly enhances the capabilities of its predecessor, Sonnet 3.7, excelling in both coding and reasoning tasks with improved precision and controllability. Achieving state-of-the-art performance on SWE-bench (72.7%),...
API Usage Examples
OpenAI Compatible Endpoint
Use this endpoint with any OpenAI-compatible library. Model: Anthropic: Claude Sonnet 4 (anthropic/claude-sonnet-4)
curl https://api.ridvay.com/v1/chat/completions -H "Content-Type: application/json" -H "Authorization: Bearer YOUR_API_KEY" -d '{
"model": "anthropic/claude-sonnet-4",
"messages": [
{
"role": "user",
"content": "Explain the capabilities of the Anthropic: Claude Sonnet 4 model"
}
],
"temperature": 0.7,
"max_tokens": 1024
}'Supported Modalities
- Text
- Images
API Pricing
- Input: 3$ / 1M tokens
- Output: 15$ / 1M tokens
Token Limits
- Max Output: 64,000 tokens
- Max Context: 200,000 tokens
Subscription Tiers
- free
- pro
- ultimate