Claude Sonnet 4.6 supports text conversations, image understanding, adaptive thinking, streaming and tool calling.
Provider: Anthropic
Category: text generation
Endpoint: /v1/chat/completions
Status: Available
Cost: --
Claude Sonnet 4.6 supports text conversations, image understanding, adaptive thinking, streaming and tool calling.
API access
Endpoint
POST /v1/chat/completions
Base URL
https://api.hiapi.ai
OpenAI Chat Completions compatible. Use one HiAPI key across all available models.
Input price
6,000 Credits
/ 1M tokens
Output price
30,000 Credits
/ 1M tokens
Context
-
context window
Max output
-
output tokens
Ask a question, upload images, or paste from clipboard. Then inspect the streamed answer, token usage, latency, and estimated cost.
Upload or paste up to 4 images, 10 MB each. Images are safety reviewed.
Call Claude Sonnet 4.6 with the OpenAI-compatible Chat Completions format. Copy a ready-to-use cURL, Python, or Node.js example below.
/v1/chat/completionscurl -X POST "https://api.hiapi.ai/v1/chat/completions" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "claude-sonnet-4-6",
"messages": [
{
"role": "user",
"content": "A cat walking on the beach at sunset"
}
],
"stream": false,
"thinking": {
"type": "adaptive"
},
"output_config": {
"effort": "high"
}
}'Tip: Replace YOUR_API_KEY with your actual API key from the API Keys page.
Compatible with the OpenAI Chat Completions format. Set the base URL, API key, and model name to get started.
Combine text and image_url in the Chat Completions content array. Use a public HTTPS image URL.
/v1/chat/completionscurl -X POST "https://api.hiapi.ai/v1/chat/completions" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "claude-sonnet-4-6",
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "Describe the main subject, setting, and important visual details."
},
{
"type": "image_url",
"image_url": {
"url": "https://static.hiapi.ai/example/subject-1.jpg",
"detail": "low"
}
}
]
}
],
"stream": false,
"thinking": {
"type": "adaptive"
},
"output_config": {
"effort": "high"
}
}'Tip: Replace YOUR_API_KEY with your actual API key from the API Keys page.
Compatible with the OpenAI Chat Completions format. Set the base URL, API key, and model name to get started.
Billing follows the input, output, and cache token categories actually reported in usage. All prices below are shown per 1 million tokens.
Prompts and context sent to the model
Responses and reasoning generated by the model
These specifications reflect the current public HiAPI text request contract. Undisclosed capabilities are not inferred by the page.
Claude Sonnet 4.6 supports text conversations, image understanding, adaptive thinking, streaming and tool calling.
HiAPI exposes this model through /v1/chat/completions. Test prompts and parameters in the Playground, then use the same HiAPI API key in your server application.
The Playground and API share the same model ID, so three steps take a tested prompt into production.
Step 1
Test the system prompt, output length, and model-supported reasoning options in the Playground.
Step 2
View an existing key or create another after signing in; one key works across all available models.
Step 3
Send requests to /v1/chat/completions and track cost with the usage object.
It is Anthropic's Claude Sonnet 4.6. This page separates provider-described capabilities from HiAPI features verified for this release.
Use POST /v1/chat/completions with model=claude-sonnet-4-6.
Yes. The same HiAPI API key can call enabled models. Media models use /v1/tasks with a different request shape.
Use thinking.type=adaptive with output_config.effort. The verified effort values are low, medium, high, and max; adaptive/high is the default. To disable thinking, send thinking.type=disabled and omit effort.
When image input is enabled in the live catalog, send a messages content array with a text block and an image_url block whose image_url.url is the uploaded URL. The Playground reuses the existing image upload flow.
Set stream=true for SSE. For tools, replay the assistant tool_calls message and matching tool result with the next messages array.
You may add cache_control with a 5m or 1h TTL to system content. A cache read or write may appear in usage when applicable; sending the control does not guarantee a hit. Check usage and HiAPI logs.
Input, output, and applicable cached token categories use the live rates shown on HiAPI model and pricing pages. Check usage and account logs for settled charges.
Check the exact model ID, endpoint, key scope and balance, message content shape, and whether selected thinking or cache fields are supported by the current live contract. Start with the API error body and usage/log detail.