HyprLab Docs
  • GETTING STARTED
    • Introduction
    • Authentication
    • Making requests
  • BROWSE MODELS
    • Model List
      • OpenAI
        • AUDIO
        • CHAT
        • EMBEDDINGS
        • IMAGE
        • TEXT
        • MODERATION
      • Anthropic
      • Google
        • AUDIO
        • CHAT
          • OpenAI-Format
          • Google-Format
        • IMAGE
        • VIDEO
      • DeepSeek
      • x.AI
        • CHAT
        • IMAGE
      • Cohere
      • Meta AI
      • Qwen
      • Microsoft
      • Mistral AI
      • Perplexity AI
      • Cognitive Computations
      • Nvidia
      • Nous Research
      • MiniMax
      • Amazon
      • AI21-Labs
      • Reka AI
      • Black Forest Labs
      • Stability AI
        • Stable Diffusion 3.5
        • Stable Diffusion 3 - Ultra
        • Stable Diffusion 3 - Core
        • Stable Diffusion 3
        • Stable Diffusion XL 1.0
      • Recraft AI
      • Ideogram AI
      • Kling AI
      • Luma AI
      • Free-GPT
  • Playground
    • HyprLab Studio
    • HyprLab Chat
    • HyprLab - SillyTavern
  • INTEGRATION
    • Basic Setup
      • SillyTavern
      • Janitor AI
      • Risu AI
      • Agnai Chat
      • TypingMind
      • ChatWaifu - Steam
Powered by GitBook
On this page
  1. BROWSE MODELS
  2. Model List
  3. x.AI

CHAT

Base-Path:

https://api.hyprlab.io/v1

Chat-Completions Path:

https://api.hyprlab.io/v1/chat/completions

Making Request:

curl https://api.hyprlab.io/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $HYPRLAB_API_KEY" \
  -d '{
    "model": "grok-beta",
    "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-beta",
  "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"
}'
curl https://api.hyprlab.io/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $HYPRLAB_API_KEY" \
  -d '{
    "model": "grok-beta",
    "messages": [
      {
        "role": "user",
        "content": "Hello!"
      }
    ],
    "logprobs": true,
    "top_logprobs": 2
  }'

💬 Chat Models

Previousx.AINextIMAGE

Last updated 1 month ago

Model Name:
Discount:
Input:
Output:
Context:
Moderation:
Capabilities:
Model Name:
Discount:
Input:
Output:
Context:
Moderation:
Capabilities:
Model Name:
Discount:
Input:
Output:
Context:
Moderation:
Capabilities:
Model Name:
Discount:
Input:
Output:
Context:
Moderation:
Capabilities:
Model Name:
Discount:
Input:
Output:
Context:
Moderation:
Capabilities:
Model Name:
Discount:
Input:
Output:
Context:
Moderation:
Capabilities:
  • grok-3

  • 50% off

  • $1.5 / 1M Tokens

  • $7.5 / 1M Tokens

  • 128,000

  • Unfiltered

  • Tools supported

  • JSON-mode supported

  • Structured JSON-schema supported

  • grok-3-fast

  • 50% off

  • $2.5 / 1M Tokens

  • $12.5 / 1M Tokens

  • 128,000

  • Unfiltered

  • Tools supported

  • JSON-mode supported

  • Structured JSON-schema supported

  • grok-3-mini

  • grok-3-mini-high

  • 50% off

  • $0.15 / 1M Tokens

  • $0.25 / 1M Tokens

  • 128,000

  • Unfiltered

  • Reasoning

  • Tools supported

  • JSON-mode supported

  • Structured JSON-schema supported

  • grok-3-mini-fast

  • grok-3-mini-fast-high

  • 50% off

  • $0.3 / 1M Tokens

  • $2 / 1M Tokens

  • 128,000

  • Unfiltered

  • Reasoning

  • Tools supported

  • JSON-mode supported

  • Structured JSON-schema supported

  • grok-2-1212

  • 50% off

  • $1 / 1M Tokens

  • $5 / 1M Tokens

  • 128,000

  • Unfiltered

  • JSON-mode supported

  • Structured JSON-schema supported

  • grok-2-vision-1212

  • 50% off

  • $1 / 1M Tokens

  • $5 / 1M Tokens

  • 32,768

  • Unfiltered

  • Vision Supported

Page cover image