CHAT
Base-Path:
https://api.hyprlab.io/v1Chat-Completions Path:
https://api.hyprlab.io/v1/chat/completionsMaking Request:
curl https://api.hyprlab.io/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $HYPRLAB_API_KEY" \
-d '{
"model": "grok-4",
"messages": [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "Say this is a test!"
}
]
}'curl https://api.hyprlab.io/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $HYPRLAB_API_KEY" \
-d '{
"model": "grok-4",
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "What'\''s in this image?"
},
{
"type": "image_url",
"image_url": {
"url": "https://upload.wikimedia.org/wikipedia/commons/thumb/d/dd/Gfp-wisconsin-madison-the-nature-boardwalk.jpg/2560px-Gfp-wisconsin-madison-the-nature-boardwalk.jpg"
}
}
]
}
],
"max_tokens": 300
}'
curl https://api.hyprlab.io/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $HYPRLAB_API_KEY" \
-d '{
"model": "grok-4",
"messages": [
{
"role": "user",
"content": "What'\''s the weather like in Boston today?"
}
],
"tools": [
{
"type": "function",
"function": {
"name": "get_current_weather",
"description": "Get the current weather in a given location",
"parameters": {
"type": "object",
"properties": {
"location": {
"type": "string",
"description": "The city and state, e.g. San Francisco, CA"
},
"unit": {
"type": "string",
"enum": ["celsius", "fahrenheit"]
}
},
"required": ["location"]
}
}
}
],
"tool_choice": "auto"
}'
💬 Chat Models
grok-4-1-fast-reasoning
10% off
Prompts ≤ 128K:
$0.18 / 1M TokensPrompts > 128K:
$0.36 / 1M Tokens
Prompts ≤ 128K:
$0.45 / 1M TokensPrompts > 128K:
$0.9 / 1M Tokens
2,000,000
Unfiltered
ReasoningVision supportedTools supportedJSON-mode supportedStructured JSON-schema supported
grok-4-1-fast-non-reasoning
10% off
Prompts ≤ 128K:
$0.18 / 1M TokensPrompts > 128K:
$0.36 / 1M Tokens
Prompts ≤ 128K:
$0.45 / 1M TokensPrompts > 128K:
$0.9 / 1M Tokens
2,000,000
Unfiltered
ReasoningVision supportedTools supportedJSON-mode supportedStructured JSON-schema supported
grok-4-fast-reasoning
10% off
Prompts ≤ 128K:
$0.18 / 1M TokensPrompts > 128K:
$0.36 / 1M Tokens
Prompts ≤ 128K:
$0.45 / 1M TokensPrompts > 128K:
$0.9 / 1M Tokens
2,000,000
Unfiltered
ReasoningVision supportedTools supportedJSON-mode supportedStructured JSON-schema supported
grok-4-fast-non-reasoning
10% off
Prompts ≤ 128K:
$0.18 / 1M TokensPrompts > 128K:
$0.36 / 1M Tokens
Prompts ≤ 128K:
$0.45 / 1M TokensPrompts > 128K:
$0.9 / 1M Tokens
2,000,000
Unfiltered
Vision supportedTools supportedJSON-mode supportedStructured JSON-schema supported
grok-4
10% off
Prompts ≤ 128K:
$2.7 / 1M TokensPrompts > 128K:
$5.4 / 1M Tokens
Prompts ≤ 128K:
$13.5 / 1M TokensPrompts > 128K:
$27 / 1M Tokens
256,000
Unfiltered
ReasoningVision supportedTools supportedJSON-mode supportedStructured JSON-schema supported
grok-code-fast-1
10% off
$0.18 / 1M Tokens
$1.35 / 1M Tokens
256,000
Unfiltered
ReasoningTools supportedJSON-mode supportedStructured JSON-schema supported
grok-3
10% off
$2.7 / 1M Tokens
$13.5 / 1M Tokens
128,000
Unfiltered
Tools supportedJSON-mode supportedStructured JSON-schema supported
grok-3-minigrok-3-mini-high
10% off
$0.27 / 1M Tokens
$0.45 / 1M Tokens
128,000
Unfiltered
ReasoningTools supportedJSON-mode supportedStructured JSON-schema supported
Last updated
