Anthropic - Format
Base Path:
https://api.hyprlab.io/v1Messages Path:
https://api.hyprlab.io/v1/messagesMaking Request:
curl https://api.hyprlab.io/v1/messages \
--header "x-api-key: $HYPRLAB_API_KEY" \
--header "content-type: application/json" \
--data \
'{
"model": "claude-3-5-sonnet-20240620",
"max_tokens": 1024,
"messages": [
{"role": "user", "content": "Hello, world"}
]
}'import Anthropic from "@anthropic-ai/sdk";
const anthropic = new Anthropic({
apiKey: "<HYPRLAB_API_KEY>",
baseURL: "https://api.hyprlab.io/",
});
const msg = await anthropic.messages.create({
model: "claude-3-5-sonnet-20240620",
max_tokens: 1024,
system: "You are a helpful assistant.",
messages: [
{
role: "user",
content: "What is the meaning of life, the universe, and everything?",
},
],
});
console.log(msg);from anthropic import Anthropic
client = Anthropic(
api_key="<HYPRLAB_API_KEY>",
base_url="https://api.hyprlab.io",
)
message = client.messages.create(
model="claude-3-5-sonnet-20240620",
max_tokens=1024,
system="You are a helpful assistant.",
messages=[
{
"role": "user",
"content": "What is the meaning of life, the universe, and everything?",
},
],
)
print(message.content)curl https://api.hyprlab.io/v1/messages \
--header "x-api-key: $HYPRLAB_API_KEY" \
--header "content-type: application/json" \
--data \
'{
"model": "claude-3-7-sonnet-20250219",
"max_tokens": 128000,
"thinking": {
"type": "enabled",
"budget_tokens": 32000
},
"messages": [
{"role": "user", "content": "Generate a comprehensive analysis of..."}
]
}'curl https://api.hyprlab.io/v1/messages \
-H "x-api-key: $HYPRLAB_API_KEY" \
-H "content-type: application/json" \
-d '{
"model": "claude-3-7-sonnet-20250219",
"max_tokens": 1024,
"messages": [
{
"role": "user",
"content": [
{
"type": "image",
"source": {
"type": "url",
"url": "https://upload.wikimedia.org/wikipedia/commons/a/a7/Camponotus_flavomarginatus_ant.jpg"
}
},
{
"type": "text",
"text": "Describe this image."
}
]
}
]
}'
curl https://api.hyprlab.io/v1/messages \
-H "content-type: application/json" \
-H "x-api-key: $HYPRLAB_API_KEY" \
-d '{
"model": "claude-3-7-sonnet-20250219",
"max_tokens": 1024,
"messages": [{
"role": "user",
"content": [{
"type": "document",
"source": {
"type": "url",
"url": "https://assets.anthropic.com/m/1cd9d098ac3e6467/original/Claude-3-Model-Card-October-Addendum.pdf"
}
},
{
"type": "text",
"text": "What are the key findings in this document?"
}]
}]
}'
💬 Chat Models
claude-opus-4-5claude-opus-4-5-20251101
10% off
$4.5 / 1M Tokens
$22.5 / 1M Tokens
200,000
Unfiltered
ReasoningVision supportedDocument supportedTools supportedJSON-mode supported
claude-sonnet-4-5claude-sonnet-4-5-20250929
10% off
Prompts ≤ 200K:
$2.7 / 1M TokensPrompts > 200K:
$5.4 / 1M Tokens
Prompts ≤ 200K:
$13.5 / 1M TokensPrompts > 200K:
$20.5 / 1M Tokens
1,000,000
Unfiltered
ReasoningVision supportedDocument supportedTools supportedJSON-mode supported
claude-haiku-4-5claude-haiku-4-5-20251001
10% off
$0.9 / 1M Tokens
$4.5 / 1M Tokens
200,000
Unfiltered
ReasoningVision supportedDocument supportedTools supportedJSON-mode supported
claude-opus-4-1claude-opus-4-1-20250805
10% off
$13.5 / 1M Tokens
$67.5 / 1M Tokens
200,000
Unfiltered
ReasoningVision supportedDocument supportedTools supportedJSON-mode supported
claude-opus-4-0claude-opus-4-20250514
10% off
$13.5 / 1M Tokens
$67.5 / 1M Tokens
200,000
Unfiltered
ReasoningVision supportedDocument supportedTools supportedJSON-mode supported
claude-sonnet-4-0claude-sonnet-4-20250514
10% off
$2.7 / 1M Tokens
$13.5 / 1M Tokens
200,000
Unfiltered
ReasoningVision supportedDocument supportedTools supportedJSON-mode supported
claude-3-7-sonnet-latestclaude-3-7-sonnet-20250219
10% off
$2.7 / 1M Tokens
$13.5 / 1M Tokens
200,000
Unfiltered
ReasoningVision supportedDocument supportedTools supportedJSON-mode supported
claude-3-5-haiku-latestclaude-3-5-haiku-20241022
10% off
$0.72 / 1M Tokens
$3.6 / 1M Tokens
200,000
Unfiltered
Tools supportedDocument supportedJSON-mode supported
claude-3-5-sonnet-latestclaude-3-5-sonnet-20241022
10% off
$2.7 / 1M Tokens
$13.5 / 1M Tokens
200,000
Unfiltered
Vision supportedDocument supportedTools supportedJSON-mode supported
claude-3-5-sonnet-20240620
10% off
$2.7 / 1M Tokens
$13.5 / 1M Tokens
200,000
Unfiltered
Vision supportedDocument supportedTools supportedJSON-mode supported
claude-3-opus-20240229
10% off
$13.5 / 1M Tokens
$67.5 / 1M Tokens
200,000
Unfiltered
Vision supportedTools supportedJSON-mode supported
Last updated
