Ann NgAnn Ng
5 min read

How to use Grok Imagine Image from xAI with API Key on TypingMind

Learn how to access and use Grok Imagine Image 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 Imagine Image Overview

Model NameGrok Imagine Image
ProviderxAI
Model IDgrok-imagine-image
Release DateJan 28, 2026
Last UpdatedJan 28, 2026
Context Window8,000 tokens
Max OutputN/A tokens
Pricing /1M tokens$N/A input
$N/A output
Input Modalitiestext, image, pdf
Output Modalitiesimage, pdf
Capabilities
File Upload

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-imagine-image via xAI (or your preferred name)
    Endpoint: https://api.x.ai/v1/chat/completions
    Model ID: grok-imagine-image
    Context Length: Enter the model's context window (e.g., 8000 for grok-imagine-image)
    xAI Endpoint URL input fieldgrok-imagine-imagehttps://api.x.ai/v1/chat/completionsgrok-imagine-image via xAIhttps://www.typingmind.com/model-logo.webp8000
  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 Imagine Image

Now you can start chatting with Grok Imagine Image through TypingMind:

  • Select Grok Imagine Image 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-imagine-image via OpenRouter API KeyThe best frontend AI chat for grok-imagine-image via OpenRouter API Keygrok-imagine-imageThe best frontend AI chat for grok-imagine-image via OpenRouter API Key

💡 Pro tips for better results:

Frequently Asked Questions

Do I need a subscription to use Grok Imagine Image?

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 Imagine Image?

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

Can I use other models besides Grok Imagine Image?

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 Imagine Image for commercial projects?

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