claude-sonnet-4
completions
Our high-performance model with exceptional reasoning and efficiency
Input:$3 / 1M tokens•$0.3 / 1M tokenscached read•$3.75 / 1M tokenscached write
Output:$15 / 1M tokens
Context:200K tokens
tools
text
image
text
Category Rankings
academia#12
programming#16
science#6
vision#9
Access claude-sonnet-4 through LangDB AI Gateway
Recommended
Integrate with anthropic's claude-sonnet-4 and 250+ other models through a unified API. Monitor usage, control costs, and enhance security.
Unified API
Cost Optimization
Enterprise Security
Get Started Now
Free tier available • No credit card required
Instant Setup
99.9% Uptime
10,000+Monthly Requests
Code Example
Configuration
Base URL
API Keys
Headers
Project ID in header
X-Run-Id
X-Thread-Id
Model Parameters
6 availableinclude_reasoning
max_tokens
stop
temperature
012
tool_choice
tools
Additional Configuration
Tools
Guards
User:
Id:
Name:
Tags:
Publicly Shared Threads5
Popular Models10