🌐
Merge.dev
merge.dev › blog › grok-api-key
How to get your Grok API key (5 steps)
January 2, 2025 - Before building to Grok’s API, ... the specific model you want to use. For instance, Grok 2’s price per million text tokens is $2 while Grok Beta's is $5....
🌐
xAI
x.ai › api
API | xAI
The world's best model, at your fingertips. ... Our latest image generation model capable of generating multiple images from text prompt. ... All prices are per million tokens or as stated.
🌐
xAI
x.ai › news › api
API Public Beta | xAI
Starting today, developers can build on our Grok foundation models using our newly released API. We will run a public beta program until the end of 2024 during which everyone will get $25 of free API credits per month.
🌐
Puter
developer.puter.com › tutorials › free-unlimited-grok-api
Free, Unlimited Grok API
December 14, 2025 - In this tutorial, we'll show you how to use Grok through Puter.js to create engaging and intelligent applications. Puter is the pioneer of the "User-Pays" model, which allows developers to incorporate AI capabilities into their applications while each user will cover their own usage costs. This model enables developers to access advanced AI capabilities for free, without any API keys, usage costs, or server-side setup.
🌐
IntuitionLabs
intuitionlabs.ai › home › articles › ai api pricing comparison (2025): grok, gemini, chatgpt & claude
AI API Pricing Comparison (2025): Grok, Gemini, ChatGPT & Claude | IntuitionLabs
December 3, 2025 - In practical terms, $5/$15 per million means about $0.005 per 1,000 tokens in and $0.015 per 1,000 tokens out. By contrast, Grok’s $0.0002/$0.0005 (Table 1) is roughly two orders of magnitude cheaper.
🌐
Elephas
elephas.app › blog › how-to-get-grok-api-key
How to Get Grok API Key (Step by Step Guide) | 2026
2 weeks ago - You can now access and use the Grok API key, you can now use the full potential of Grok through their Python SDK. As of now, there is no specific paid tier for the Grok API. You can use the Grok API and the usual Grok chat interface with X (formerly Twitter). With higher-paid plans, you get higher rate limits too. You can access the chat interface of Grok directly from the X platform and the Grok API through the Grok Python SDK. Here are the price details of the X premium, which can be used to access the Grok API keys.
🌐
xAI
docs.x.ai › docs › overview
Overview | xAI
Welcome to the xAI developer docs! Our API makes it easy to harness Grok's intelligence in your projects. Grok is our flagship AI model designed to deliver truthful, insightful answers. ... Create an API Key and make your first request.
🌐
Grok API
grok-api.apidog.io › introduction-933934m0
Introduction - Grok API
Build with Grok 3To access the Grok 3 models via API, please create an xAI account and an API key.
Find elsewhere
🌐
Apidog
apidog.com › blog › grok-3-grok-3-mini-api-free
How to Use Grok 3 and Grok 3 Mini API for Free
April 11, 2025 - The primary way to access Grok is through an X Premium+ subscription, which costs $16/month. However, OpenRouter offers an alternative route that allows developers to test and use these models with more flexibility and potentially lower costs.
🌐
DataCamp
datacamp.com › tutorial › grok-4-api
Grok 4 API: A Step-by-Step Guide With Examples | DataCamp
July 15, 2025 - Although its context window size almost doubled in comparison to its predecessor, Grok 4 is priced exactly the same as the standard Grok 3 model. You’ll pay $3 for every million input tokens and $15 for every million output tokens. To access the API, you’ll need to purchase credits.
🌐
OpenRouter
openrouter.ai › x-ai › grok-4.1-fast
Grok 4.1 Fast - API, Providers, Stats | OpenRouter
Grok 4.1 Fast is xAI's best agentic tool calling model that shines in real-world use cases like customer support and deep research. 2M context window. Reasoning can be enabled/disabled using the reasoning enabled parameter in the API.
🌐
Costgoat
costgoat.com › pricing › grok-api
Grok API Pricing Calculator & Cost Guide (Jan 2026)
December 2, 2025 - Simply update your base URL and API key to switch providers. ... Note: Live Search ($25/1K sources) is being deprecated December 15, 2025. Use the new agentic tool calling API instead.
🌐
BytePlus
byteplus.com › en › topic › 499378
Is the Grok API Free? Pricing & Features 2025
Vague pricing structures and unclear usage limits can derail a project before it even begins. This guide is designed to cut through that confusion. We will provide a clear, authoritative breakdown of the Grok API's pricing structure, explore any available free trial options for 2025, and detail its key features.
🌐
xAI
docs.x.ai › docs › models
Models and Pricing
• Grok 4 does not have a reasoning_effort parameter. If a reasoning_effort is provided, the request will return an error. Requests which make use of xAI provided server-side tools are priced based on two components: token usage and server-side tool invocations.
🌐
Data Studios
datastudios.org › post › grok-ai-all-models-available-catalog-access-tiers-pricing-and-use-cases
Grok AI — All Models Available: catalog, access tiers, pricing, and use cases.
October 2, 2025 - API pricing & capacity: the docs list grok-4 with a large context window and pricing at approximately $3 per million input tokens and $15 per million output tokens, with discounted cached input.
🌐
Reddit
reddit.com › r/llmdevs › free xai grok api key/credits in 2024
r/LLMDevs on Reddit: Free xAI Grok API Key/Credits in 2024
November 6, 2024 -

November 4, 2024

https://x.ai/blog/api?_bhlid=9f5ec12bce9af5dbd44b53e85ec66e15161e6773

API Public Beta

Starting today, developers can build on our Grok foundation models using our newly released API. We will run a public beta program until the end of 2024 during which everyone will get $25 of free API credits per month.

We are happy to announce the immediate availability of our API, which gives developers programmatic access to our Grok series of foundation models. To get started, head to console.x.ai and sign up to create an account. We are excited to see what developers build using Grok.

Models

We are kicking off our public beta with a preview of a new Grok model that is currently in the final stages of development. The model – released under the provisional name grok-beta – has a context length of 128,000 tokens and also supports function calling and system prompts. We will release more information about the model shortly.

In addition to the text-only version of the model grok-beta, we will also release a multi-modal version that can ingest images. The vision model will be available next week.

Free credits

We will run a public beta program throughout the end of the year. Everyone will get $25 of free API credits per month to test the API and get started using Grok.

Anyone who has purchased prepaid credits so far will get the equivalent amount of free monthly credits for every month until the end of the year. For example, if you purchased $50 of prepaid credits already, you will now have $25 + $50 of additional free credits in November and December.

API

To learn more about our API, check out our documentation at docs.x.ai. Our REST API is fully compatible with the ones offered by OpenAI and Anthropic. This simplifies migration. For example, if you’re currently using the OpenAI Python SDK, you can start using Grok by simply changing the base_url to https://api.x.ai/v1 and using your xAI API key that you created on console.x.ai.

🌐
xAI
docs.x.ai › docs › tutorial
The Hitchhiker's Guide to Grok | xAI
To learn how to use Grok vision for more advanced use cases, check out our Image Understanding Guide. As you use your API key, you will be charged for the number of tokens used.