Ann NgAnn Ng
5 min read

How to use Grok 3 from xAI with API Key on TypingMind

Learn how to access and use Grok 3 with your xAI API key through TypingMind. Get started with this powerful AI model in minutes.

Grok is xAI's flagship family of large language models designed to deliver truthful and insightful AI responses. The xAI API provides developers with access to powerful models including Grok-4 and Grok-2-1212 (with a 131K token context window), supporting multimodal capabilities like vision processing and image generation via Flux.1. Key features include function calling for API automation, compatibility with OpenAI/Anthropic SDKs, structured outputs, and enterprise-grade security with GDPR/HIPAA compliance. The platform offers Python and JavaScript SDKs for easy integration into applications ranging from conversational AI to complex workflow automation.

Official Documentation: https://docs.x.ai/docs/models

Grok 3 Overview

Model NameGrok 3
ProviderxAI
Model IDgrok-3
Release DateFeb 17, 2025
Last UpdatedFeb 17, 2025
Knowledge Cutoff2024-11
Context Window131,072 tokens
Max Output8,192 tokens
Pricing /1M tokens$3 input
$15 output
$0.75 cache read
Input Modalitiestext
Output Modalitiestext
Capabilities
Tool CallingTemperature Control

Complete Setup Guide

1

Get Your xAI API Key

First, you'll need to obtain an API key from xAI. This key allows you to access their AI models directly and pay only for what you use.

  1. Visit xAI's API console
  2. Sign up or log in to your account
  3. Navigate to the API keys section
  4. Generate a new API key (copy it immediately as some providers only show it once)
  5. Save your API key in a secure password manager or encrypted note

⚠️ Important: Keep your API key secure and never share it publicly. Store it safely as you'll need it to connect with TypingMind.

2

Configure TypingMind with xAI API Key

  1. Open TypingMind in your browser
  2. Click the "Settings" icon (gear symbol)
  3. Navigate to "Models" section
  4. Click "Add Custom Model"
  5. Fill in the model information:
    Name: grok-3 via xAI (or your preferred name)
    Endpoint: https://api.x.ai/v1/chat/completions
    Model ID: grok-3
    Context Length: Enter the model's context window (e.g., 131072 for grok-3)
    xAI Endpoint URL input fieldgrok-3https://api.x.ai/v1/chat/completionsgrok-3 via xAIhttps://www.typingmind.com/model-logo.webp131072
  6. Add custom headers by clicking "Add Custom Headers" in the Advanced Settings section:
    Authorization: Bearer <GROK_API_KEY>:
    X-Title: typingmind.com
    HTTP-Referer: https://www.typingmind.com
  7. Enable "Support Plugins (via OpenAI Functions)" if the model supports the "functions" or "tool_calls" parameter, or enable "Support OpenAI Vision" if the model supports vision.
  8. Click "Test" to verify the configuration
  9. If you see "Nice, the endpoint is working!", click "Add Model"
3

Start chatting with Grok 3

Now you can start chatting with Grok 3 through TypingMind:

  • Select Grok 3 from the model dropdown menu
  • Start typing your message in the chat input
  • Enjoy faster responses and better features than the official interface
  • Switch between different AI models as needed
The best frontend AI chat for grok-3 via OpenRouter API KeyThe best frontend AI chat for grok-3 via OpenRouter API Keygrok-3The best frontend AI chat for grok-3 via OpenRouter API Key

💡 Pro tips for better results:

Frequently Asked Questions

Do I need a subscription to use Grok 3?

No! With xAI API, you pay only for what you use with no monthly subscription. Add credits to your xAI account and pay as you go. TypingMind is also a one-time purchase, not a subscription.

How much will it cost to use Grok 3?

Grok 3 costs $3/1M input tokens and $15/1M output tokens. A typical conversation might cost $0.01-0.10 depending on length.

Can I use other models besides Grok 3?

Yes! With xAI API + TypingMind, you can access all xAI models. Switch between them instantly in TypingMind.

Is my data private and secure?

Yes! TypingMind stores conversations locally (web version in browser, desktop version on your device). xAI handles API calls securely. Check xAI's data policy for specifics.

Can I use Grok 3 for commercial projects?

Yes! Check xAI's terms of service for specific commercial use policies. TypingMind supports commercial use.