Documentation Index
Fetch the complete documentation index at: https://docs.gpuhub.com/llms.txt
Use this file to discover all available pages before exploring further.
claude-sonnet-4-6 is an Anthropic Claude Sonnet 4.6 model routed through AI Gateway. Unlike the Claude Code-only variant, this model can be used for general chat, coding, reasoning, and other supported Anthropic-compatible workloads.
Create or copy your API key from the console before calling the API. Use the model unit price displayed in the console as the source of truth.
Endpoints
| Compatibility | Base URL |
|---|
| Anthropic-compatible | https://api.gpuhub.com/api/v1/anthropic |
| OpenAI-compatible | https://api.gpuhub.com/api/v1 |
Claude Code
export ANTHROPIC_BASE_URL=https://api.gpuhub.com/api/v1/anthropic
export ANTHROPIC_AUTH_TOKEN=$API_KEY
# Optional: route Claude Code model aliases to this model.
export ANTHROPIC_DEFAULT_HAIKU_MODEL=claude-sonnet-4-6
export ANTHROPIC_DEFAULT_SONNET_MODEL=claude-sonnet-4-6
export ANTHROPIC_DEFAULT_OPUS_MODEL=claude-sonnet-4-6
Python
# Install the SDK first if needed:
# pip install anthropic
from anthropic import Anthropic
client = Anthropic(
api_key="YOUR_API_KEY",
base_url="https://api.gpuhub.com/api/v1/anthropic",
)
message = client.messages.create(
model="claude-sonnet-4-6",
max_tokens=1024,
messages=[
{"role": "user", "content": "Hello! Summarize the benefits of prompt caching."}
],
)
print(message.content[0].text)
Use with Cherry Studio
To use this model in Cherry Studio, configure the matching provider type and add the model name shown on this page. See Cherry Studio for setup details.