---
name: Grok API
slug: grok-api
organization_slug: xai
url: https://docs.x.ai
category: ai
source_count: 2
canonical: https://releases.sh/xai/grok-api
---

# Grok API

xAI's developer API platform for Grok models — REST API, SDKs, and model launches.

## Sources (2)

- [Release Notes](https://releases.sh/xai/release-notes) — `scrape`
- [xai-sdk-python](https://releases.sh/xai/xai-sdk-python) — `github`

## Recent Releases

_Summaries below — fetch `url` for the original source, or `canonical` for the releases.sh copy of the full content._

<Release source="release-notes" date="November 2, 2026" published="2026-11-02T00:00:00.000Z" url="https://docs.x.ai/developers/release-notes#grok-imagine-image-quality-retired" canonical="https://releases.sh/release/rel_RUxdeRhkHrJfBX0qvpXWG" truncated="true">
### grok-imagine-image-quality retired

Requests to grok-imagine-image-quality and grok-imagine-image-pro are now served by grok-imagine-image-2.0-low at a lower per-image price, with no request changes required. gRPC responses report the new model name and usage.cost_in_usd_ticks reflects the lower price.
</Release>

<Release source="release-notes" date="October 27, 2026" published="2026-10-27T00:00:00.000Z" url="https://docs.x.ai/developers/release-notes#custom-moderation-controls" canonical="https://releases.sh/release/rel_oi31dPmJf0_8ZWy8kGGNx" truncated="true">
### Custom moderation controls

Chat Completions and Responses API requests accept a guidelines array to set content guidelines on text requests, controlling handling of nsfw, violence, and profanity categories.
</Release>

<Release source="xai-sdk-python" version="v1.21.0" date="October 23, 2026" published="2026-10-23T19:47:17.000Z" url="https://github.com/xai-org/xai-sdk-python/releases/tag/v1.21.0" canonical="https://releases.sh/release/rel_VBFb43C1ImX8g4sGeQtnG" truncated="true">
chat.create now accepts a safety_identifier and guidelines parameter, and the SDK permits protobuf 7. Remaining changes are changelog and release preparation.
</Release>

<Release source="release-notes" date="October 14, 2026" published="2026-10-14T00:00:00.000Z" url="https://docs.x.ai/developers/release-notes#grok-voice-3-0-is-available" canonical="https://releases.sh/release/rel_tsoUhANSG85Y8Pasjxf67" truncated="true">
### Grok Voice 3.0 is available

grok-voice-3.0 is available with speech-to-speech at the same price as Grok Voice 2.0, and grok-voice-latest now points to grok-voice-3.0. Grok Voice 2.0 is deprecated.
</Release>

<Release source="release-notes" date="October 14, 2026" published="2026-10-14T00:00:00.000Z" url="https://docs.x.ai/developers/release-notes#grok-voice-2-0-deprecation" canonical="https://releases.sh/release/rel_hG8tTt_rgdH3r9BcWiwI9" truncated="true">
### Grok Voice 2.0 deprecation

The grok-voice-2.0 model is deprecated. Callers should set model to grok-voice-3.0 or grok-voice-latest, which are available at the same price.
</Release>

<Release source="release-notes" date="October 2, 2026" published="2026-10-02T00:00:00.000Z" url="https://docs.x.ai/developers/release-notes#grok-voice-transcribe-1-0-end-of-life" canonical="https://releases.sh/release/rel_-g4NHOBA7mmOviKr64M7A" truncated="true">
### grok-voice-transcribe-1.0 end of life

grok-voice-transcribe-1.0 is deprecated and reaches end of life on October 2, 2026. Until then all requests to that slug route to grok-voice-transcribe-2.0 at the same price, with higher accuracy.
</Release>

<Release source="release-notes" date="September 25, 2026" published="2026-09-25T00:00:00.000Z" url="https://docs.x.ai/developers/release-notes#safety-identifier-request-field" canonical="https://releases.sh/release/rel_KQrTI0QjvKijwhBf24PZa" truncated="true">
### safety_identifier request field

A new safety_identifier request field accepts an opaque end-user identifier assigned by your application, letting SpaceXAI attribute a policy violation to one of your end users rather than your API key. It is supported on Chat Completions, the Responses API, deferred chat completions, the Batch API, and the gRPC GetCompletionsRequest, and the legacy user field is still accepted.
</Release>

<Release source="xai-sdk-python" version="v1.20.0" date="September 24, 2026" published="2026-09-24T18:05:54.000Z" url="https://github.com/xai-org/xai-sdk-python/releases/tag/v1.20.0" canonical="https://releases.sh/release/rel_e4RqGu_1hQK9GiMh8wAJa" truncated="true">
Video generation now accepts a last frame and keyframes. The rest of the release is changelog and release-workflow housekeeping.
</Release>

<Release source="release-notes" version="4.7" date="September 21, 2026" published="2026-09-21T00:00:00.000Z" url="https://docs.x.ai/developers/release-notes#4-7" canonical="https://releases.sh/release/rel_I9d5AeWb0bo01xUGZ90KF" truncated="true">
### Grok 4.7

Grok 4.7 is available on the xAI API as grok-4.7 with a 500k context window, low through xhigh reasoning effort (default high), and pricing of $2/$0.50/$6 per 1M tokens (input/cached input/output) below 200k prompt tokens and $4/$1/$12 above. On the Responses API it always returns reasoning.encrypted_content even when include does not list it.
</Release>

<Release source="release-notes" date="September 17, 2026" published="2026-09-17T00:00:00.000Z" url="https://docs.x.ai/developers/release-notes#grok-voice-transcribe-2-0" canonical="https://releases.sh/release/rel_d2-QEtmwsKvRchYdBgqoR" truncated="true">
### Grok Voice Transcribe 2.0

grok-voice-transcribe-2.0 is now available for speech to text alongside grok-voice-transcribe-1.0, which remains the default.
</Release>
