Claude Sonnet 5 Economy
Sonnet 5 is Anthropic’s most capable Sonnet-class model, delivering frontier-level performance across coding, agentic workflows, and professional tasks. It features adaptive thinking with selectable reasoning levels—**low**, **medium**, **high**, **max**, and **x-high**—along with a 1-million-token context window and support for text, image, and file inputs. Built with an updated tokenizer, Sonnet 5 also incorporates real-time cybersecurity safeguards designed to block high-risk dual-use activities.
Claude Sonnet 5 Economy
Sonnet 5 is Anthropic’s most capable Sonnet-class model, delivering frontier-level performance across coding, agentic workflows, and professional tasks. It features adaptive thinking with selectable reasoning levels—low, medium, high, max, and x-high—along with a 1-million-token context window and support for text, image, and file inputs.
Built with an updated tokenizer, Sonnet 5 also incorporates real-time cybersecurity safeguards designed to block high-risk dual-use activities.
Base URL
https://api.icreat.ai/llm/anthropicAuthentication
All API requests must be authenticated with an API Key. You can obtain an API Key from the console.
export ICREAT_API_KEY="your-api-key-here"HTTP Request Headers
import os
API_KEY = os.environ.get("ICREAT_API_KEY")
headers = {
"Content-Type": "application/json",
"Authorization": "Bearer " + API_KEY,
}Protect your API Key
Never expose your API Key in client-side code or public repositories. Use environment variables or a backend proxy.
Code Examples
This model is invoked via the Anthropic-compatible Messages API, supporting streaming and non-streaming modes.
Input Schema
Total: 4 Required: 2 Optional: 2
Model ID. Must be iCreat model_code (claude-sonnet-5).
Conversation messages.
Maximum tokens to generate.
Whether to stream the response.
Output Schema
Anthropic Messages compatible response.
Total: 4
Message ID.
Object type, always message.
Role, always assistant.
Content blocks from the model.
LLM-friendly prompt
Below is an LLM-friendly Markdown prompt you can copy into Cursor, ChatGPT, or other AI assistants to help them understand this model's API integration, call flow, and key parameters.
# claude-sonnet-5
> Sonnet 5 is Anthropic’s most capable Sonnet-class model, delivering frontier-level performance across coding, agentic workflows, and professional tasks.
## Overview
Call via iCreat Anthropic-compatible Messages API; supports streaming and non-streaming.
## API Info
- **Base URL**: `https://api.icreat.ai/llm/anthropic`
- **Endpoint (POST)**: `/v1/messages`
- **Model ID**: `claude-sonnet-5`
- **Auth**: `Authorization: Bearer ${ICREAT_API_KEY}`
## Call Flow
Single POST; `stream: false` returns full JSON, `stream: true` streams via SSE.
### Input
- `model` (required): iCreat model_code `claude-sonnet-5`
- `messages` (required): conversation messages
- Common optional: `max_tokens`, `stream`
### Output
- Read reply from `content` text blocks (e.g. `content[0].text`)
## Notes
- `model` must be the iCreat model_code
- Other fields follow the Anthropic Messages protocol