We use cookies. Cookies and browser storage keep you signed in and remember your preferences. With your permission we also measure how the site is used. You can any time. See our cookie policy.
xAI: Grok Latest
~x-ai/grok-latestTry xAI: Grok Latest now
Runs on your balance at the prices above. New accounts start with free usage.
One API. Every model.
Session cost $0.00
Settings
Advanced parameters
xAI: Grok Latest at a glance
- Input price is 344% higher than the median of 434 Text models.
- Context window of 500,000 tokens, enough for long documents and multi-turn conversations.
- Supports tool (function) calling for agents and integrations.
- Supports structured JSON output with a schema.
- Supports reasoning effort control.
- Accepts images as input (vision).
- A typical request (1,000 input / 500 output tokens) costs about $0.02.
About xAI: Grok Latest
Grok Latest is a text generation model from xAI, exposed on api14 under the model id ~x-ai/grok-latest. As the name and the provider description suggest, this entry always redirects to the latest Grok model from xAI, so requests sent to this id are served by whichever Grok version xAI currently considers current. That makes it a convenient choice if you want to track xAI's newest Grok without updating your integration each time a new version ships.
The model accepts text, images and files as input, and it returns text. Its context window is 500,000 tokens, with a maximum output of 450,000 tokens. The large context is the headline capability here: you can supply very long documents, multiple files or extended conversation histories in a single request rather than chunking them yourself. Because image input is supported alongside text and files, the model can also work over mixed inputs where a prompt refers to both written material and visual content.
Those capabilities point to a fairly specific set of use cases. Long document analysis is the obvious one: contracts, research papers, codebases or support transcripts that would overflow a smaller window can be passed in whole. File input makes batch style workflows practical, where you attach source material and ask for summaries, extraction or comparison. Image input extends this to tasks like reading charts, screenshots or scanned pages alongside a text question. Reasoning support and structured outputs also make it suitable for multi step analysis where you want the model's intermediate thinking exposed, or where the result needs to conform to a schema your code can parse.
Calling it through api14 works the same way as any other OpenAI-compatible model: send a chat completions request with the model field set to ~x-ai/grok-latest. The supported request parameters are include_reasoning, logprobs, max_tokens, reasoning, reasoning_effort, response_format, seed, structured_outputs, temperature, tool_choice, tools, top_logprobs and top_p. Tool calling is available through tools and tool_choice, and response_format plus structured_outputs cover JSON and schema constrained replies. If you need deterministic sampling, seed is supported, and logprobs with top_logprobs let you inspect token level probabilities.
One practical caveat follows from how this entry works: because it redirects to the latest Grok model, the underlying model can change over time, so behaviour may shift between calls even though the model id stays the same. If you need a fixed, reproducible target for evaluation or regression testing, pinning a specific Grok version is the safer route. For everything else, this id is the low maintenance way to stay on xAI's current Grok while keeping a single OpenAI-compatible integration.
How to call the xAI: Grok Latest API
- Create an API key in your dashboard.
- Install the official openai SDK for your language.
- Set baseURL to https://api14.com/api/v1 and model to "~x-ai/grok-latest".
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api14.com/api/v1",
apiKey: process.env.API14_API_KEY,
});
const result = await client.chat.completions.create({
"model": "~x-ai/grok-latest",
"messages": [
{
"role": "user",
"content": "Explain vector databases in two sentences."
}
]
});
console.log(result.choices[0].message.content);
Supported parameters
include_reasoninglogprobsmax_tokensreasoningreasoning_effortresponse_formatseedstructured_outputstemperaturetool_choicetoolstop_logprobstop_pSpecifications
- Context length
- 500,000
- Max output
- 450,000
- Input
- text, image, file
- Output
- text
Requests on api14 · last 7 days
xAI: Grok Latest: frequently asked questions
- How much does the xAI: Grok Latest API cost?
- xAI: Grok Latest costs Input $7.00 / 1M tokens. It is charged from your USD balance only for successful requests; failed requests are free.
- What is the context window of xAI: Grok Latest?
- xAI: Grok Latest reads up to 500,000 tokens per request: prompt, history and documents together. It writes up to 450,000 output tokens per response.
- What can xAI: Grok Latest do?
- xAI: Grok Latest accepts text, image, file and returns text. It supports tool calling, structured JSON output, reasoning effort control.
- How do I call xAI: Grok Latest from my code?
- Point any OpenAI SDK at https://api14.com/api/v1 and set the model to "~x-ai/grok-latest". No other code changes. Copy a ready example from the code panel on this page.
- What are alternatives to xAI: Grok Latest?
- Comparable Text models at a similar price: SpaceXAI: Grok 4.7, Sakana: Fugu Max, Qwen: Qwen3.8 Max (0902). Each runs through the same API key, so switching is one string.
xAI: Grok Latest community
New topicThis community has no topics yet. Open the first one about xAI: Grok Latest.