Pricing
- Input Tokens: $5.5 /M tokens
- Output Tokens: $27.5 /M tokens
- Cache Read: $0 /M tokens
Input Modalities
Output Modalities
- Text
Try this model
import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["AIHUBMIX_API_KEY"],
base_url="https://aihubmix.com/v1",
)
response = client.chat.completions.create(
model="grok-3-fast-beta",
messages=[
{
"role": "user",
"content": "Hello, how are you?"
}
],
max_tokens=1024,
stream=False,
)
print(response.choices[0].message.content)Frequently asked questions
How much does Grok 3 Fast Beta cost?
How do I call Grok 3 Fast Beta via API?
Who created Grok 3 Fast Beta?
Compare Grok 3 Fast Beta
More models from Grok
See all Grok models →1k images Low: $0.044 / img; Medium: $0.066 / img 1.5k images Low: $0.055 / img; Medium: $0.077 / img 2k images Low: $0.066 / img; Medium: $0.088 / img Uploaded input images: $0.011 / img
grok-imagine-image-2.0 is Grok's text-to-image model, supporting image generation and image editing using up to 5 reference images.
- Input: $ 2 /M
- Output: $ 6 /M
Grok 4.7 is xAI’s flagship model for coding, agentic tasks, and professional knowledge work. Compared with Grok 4.6, it uses a larger base model and longer reinforcement-learning training, improving long-horizon task execution, self-verification, context management, and document and presentation creation.
- Input: $ 2 /M
- Output: $ 6 /M
Grok 4.6 is xAI’s (SpaceXAI) flagship multimodal reasoning model for coding, long-running agents, knowledge work, and interactive application development. It supports image understanding, a 500K context window, tool calling, and structured outputs. Compared with Grok 4.5, it offers stronger multi-step execution, self-verification, coding, and visual project generation.
- Input: $ 2 /M
- Output: $ 6 /M
Grok 4.5 was trained on datasets spanning knowledge in coding, science, engineering, and math. With both intelligent and efficient reasoning, Grok 4.5 excels at real engineering tasks and exceeds comparable leading models at these tasks.
Fast coding model trained specifically for agentic coding workflows.
Grok 4.3 is amongst the leading models in intelligence and well priced when comparing to other models of similar price. It's also notably fast, however very verbose. The model supports text and image input, outputs text, and has a 1m tokens context window.