Claude Sonnet 4
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%), Sonnet 4 balances capability and computational efficiency, making it suitable for a broad range of applications from routine coding tasks to complex software development projects. Key enhancements include improved autonomous codebase navigation, reduced error rates in agent-driven workflows, and increased reliability in following intricate instructions. Sonnet 4 is optimized for practical everyday use, providing advanced reasoning capabilities while maintaining efficiency and responsiveness in diverse internal and external scenarios. Read more at the [blog post here](https://www.anthropic.com/news/claude-4)
anthropic/claude-sonnet-4
- Contexto
- 1M tokens
- Máx. completion
- 64,000
- Tools
- Sí
- JSON
- No
- Lanzamiento
- 2025-05-22
Llámalo desde Geek Hub
El mismo SDK de OpenAI. Cambia el base URL y el id del modelo.
curl https://api.geekhub.mx/v1/chat/completions \
-H "Authorization: Bearer $GEEKHUB_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "anthropic/claude-sonnet-4",
"messages": [{"role": "user", "content": "Hola"}]
}'Consigue tu API keyPreguntas frecuentes
- ¿Qué es Claude Sonnet 4?
- 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%), Sonnet 4 balances capability and computational efficiency, making it suitable for a broad range of applications from routine coding tasks to complex software development projects. Key enhancements include improved autonomous codebase navigation, reduced error rates in agent-driven workflows, and increased reliability in following intricate instructions. Sonnet 4 is optimized for practical everyday use, providing advanced reasoning capabilities while maintaining efficiency and responsiveness in diverse internal and external scenarios. Read more at the [blog post here](https://www.anthropic.com/news/claude-4) Claude Sonnet 4 corre en el API de Geek Hub (compatible con OpenAI). Id: anthropic/claude-sonnet-4.
- ¿Claude Sonnet 4 es gratis?
- No. El input cuesta $3.2702 / 1M tokens y el output $16.3509 / 1M tokens en Geek Hub (markup incluido).
- ¿Cuál es el contexto de Claude Sonnet 4?
- Claude Sonnet 4 tiene una ventana de 1M tokens. Soporta hasta 64,000 tokens de completion.
- ¿Claude Sonnet 4 soporta tool calling y structured outputs?
- Claude Sonnet 4 acepta tools y tool_choice para function calling. No lista structured outputs en este endpoint.
- ¿Cuándo se lanzó Claude Sonnet 4?
- Claude Sonnet 4 se lanzó el 22 de mayo de 2025.
Más modelos de Anthropic
Claude Fable 5Anthropic's most capable model. Adaptive thinking always on. 1M context. Premium for reasoning and agentic workflows.
Claude Haiku 4.5The fastest and cheapest of the Claude family. Extended thinking. Ideal for high volume, classification, extraction.
Claude Opus 4.8 (legacy)Previous Opus generation. Kept for backward compat with existing clients; Opus 5 is 3x cheaper with more context.
Claude Opus 5Opus 5 drops the Opus 4.x pricing to $5/$25 with 1M context and adaptive thinking. The default upgrade in the Opus family.
Claude Sonnet 4.6 (legacy)Sonnet 4.6 kept for backward compat. Sonnet 5 has the same price with 1M context and adaptive thinking.
Claude Sonnet 5Anthropic's sweet spot. Nearly as capable as Opus 5, half the price, same 1M context. Recommended default.