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)

ChatAnthropic1M tokens$3.2702 / $16.3509 · 1M

anthropic/claude-sonnet-4

Contexto
1M tokens
Máx. completion
64,000
Tools
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 key

Preguntas 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