Grok API Proxy

This service provides an OpenAI-compatible API interface for Grok AI models, connecting to the official Grok API.

Available Endpoints:

Authentication

Authentication requires a special format with both bearer token and auth token from Grok:

Authorization: Bearer YOUR_BEARER_TOKEN,YOUR_AUTH_TOKEN

You can obtain these tokens by logging into Grok and extracting them from your browser's network requests. Both tokens are required for the API to work properly.

Example Request

POST /v1/chat/completions
Content-Type: application/json
Authorization: Bearer YOUR_BEARER_TOKEN,YOUR_AUTH_TOKEN

{
  "model": "grok-3",
  "messages": [
    {"role": "user", "content": "Hello, how are you?"}
  ],
  "stream": true
}

Available Models

Conversation History

The API maintains conversation history for each session. You can include a conversation_id in your requests to continue an existing conversation.

If no conversation ID is provided, a new one will be generated automatically.

Try It Out

Go to Test Client