{"id":"prod_IaeE5L3nJJOSSXR78yx56","name":"Grok API","slug":"grok-api","orgId":"org_OzUlhvnM7dcqDnSsV-Ceh","url":"https://docs.x.ai","description":"xAI's developer API platform for Grok models — REST API, SDKs, and model launches.","category":"ai","kind":"platform","avatarUrl":null,"createdAt":"2026-06-01T23:17:38.771Z","embeddedAt":"2026-06-01T23:17:40.186Z","deletedAt":null,"sources":[{"id":"src_azjAV1IHH6umgA3k0uTC0","slug":"release-notes","name":"Release Notes","type":"scrape","url":"https://docs.x.ai/developers/release-notes","metadata":"{}","kind":null},{"id":"src_G_HWxiKuXLVIYJcpoBMHs","slug":"xai-sdk-python","name":"xai-sdk-python","type":"github","url":"https://github.com/xai-org/xai-sdk-python","metadata":"{}","kind":"sdk"}],"tags":[],"aliases":[],"releases":[{"id":"rel_k1W5grGr8gfPCXxhsfRf_","version":"v1.15.0","type":"feature","title":"v1.15.0","summary":"## What's Changed\n* Add grok-build-0.1 to ChatModel by @shawnthapa in https://github.com/xai-org/xai-sdk-python/pull/155\n* Add context compaction supp...","titleGenerated":null,"titleShort":null,"content":"## What's Changed\n* Add grok-build-0.1 to ChatModel by @shawnthapa in https://github.com/xai-org/xai-sdk-python/pull/155\n* Add context compaction support by @shawnthapa in https://github.com/xai-org/xai-sdk-python/pull/156\n* Bump version from 1.14.0 to 1.15.0 by @shawnthapa in https://github.com/xai-org/xai-sdk-python/pull/157\n\n\n**Full Changelog**: https://github.com/xai-org/xai-sdk-python/compare/v1.14.0...v1.15.0","publishedAt":"2026-05-30T01:42:34.000Z","url":"https://github.com/xai-org/xai-sdk-python/releases/tag/v1.15.0","media":[],"prerelease":false,"source":{"slug":"xai-sdk-python","name":"xai-sdk-python","type":"github"},"product":{"slug":"grok-api","name":"Grok API"},"groupSlug":"grok-api","groupName":"Grok API","coverageCount":0,"contentChars":418,"contentTokens":141,"composition":null},{"id":"rel_KiQkVybUoq-h-X5Ka1Ldo","version":"v1.14.0","type":"feature","title":"v1.14.0","summary":"## What's Changed\n* Add enable_image_search to web_search and SERVER_SIDE_TOOL_IMAGE_SEARCH enum by @ushiromiya-lion in https://github.com/xai-org/xai...","titleGenerated":null,"titleShort":null,"content":"## What's Changed\n* Add enable_image_search to web_search and SERVER_SIDE_TOOL_IMAGE_SEARCH enum by @ushiromiya-lion in https://github.com/xai-org/xai-sdk-python/pull/152\n* Bump version to 1.14.0 by @ushiromiya-lion in https://github.com/xai-org/xai-sdk-python/pull/153\n\n## New Contributors\n* @ushiromiya-lion made their first contribution in https://github.com/xai-org/xai-sdk-python/pull/152\n\n**Full Changelog**: https://github.com/xai-org/xai-sdk-python/compare/v1.13.0...v1.14.0","publishedAt":"2026-05-27T05:15:34.000Z","url":"https://github.com/xai-org/xai-sdk-python/releases/tag/v1.14.0","media":[],"prerelease":false,"source":{"slug":"xai-sdk-python","name":"xai-sdk-python","type":"github"},"product":{"slug":"grok-api","name":"Grok API"},"groupSlug":"grok-api","groupName":"Grok API","coverageCount":0,"contentChars":482,"contentTokens":142,"composition":null},{"id":"rel_c9sLuF1JcGVbzgXGb_1hz","version":null,"type":"feature","title":"Grok Build 0.1","summary":"xAI's fast coding model trained specifically for agentic coding, currently in early access. The model slug is `grok-build-0.1`.","titleGenerated":null,"titleShort":null,"content":"xAI's fast coding model trained specifically for agentic coding, currently in early access. The model slug is `grok-build-0.1`.","publishedAt":"2026-05-19T00:00:00.000Z","url":"https://docs.x.ai/developers/release-notes/developers/models/grok-build-0.1","media":[],"prerelease":false,"source":{"slug":"release-notes","name":"Release Notes","type":"scrape"},"product":{"slug":"grok-api","name":"Grok API"},"groupSlug":"grok-api","groupName":"Grok API","coverageCount":0,"contentChars":127,"contentTokens":31,"composition":null},{"id":"rel_UPnV-TLNN6Ltjli8VDbff","version":"v1.13.0","type":"feature","title":"v1.13.0","summary":"## What's Changed\r\n* feat: add prepare_extension() for batch video extension by @double-di in https://github.com/xai-org/xai-sdk-python/pull/141\r\n\r\n\r\n...","titleGenerated":null,"titleShort":null,"content":"## What's Changed\r\n* feat: add prepare_extension() for batch video extension by @double-di in https://github.com/xai-org/xai-sdk-python/pull/141\r\n\r\n\r\n**Full Changelog**: https://github.com/xai-org/xai-sdk-python/compare/v1.12.2...v1.13.0","publishedAt":"2026-05-16T18:00:46.000Z","url":"https://github.com/xai-org/xai-sdk-python/releases/tag/v1.13.0","media":[],"prerelease":false,"source":{"slug":"xai-sdk-python","name":"xai-sdk-python","type":"github"},"product":{"slug":"grok-api","name":"Grok API"},"groupSlug":"grok-api","groupName":"Grok API","coverageCount":0,"contentChars":237,"contentTokens":68,"composition":null},{"id":"rel_BVRl0r5wW5ztGYJgMRvOI","version":null,"type":"feature","title":"Grok Build","summary":"Grok Build is now available in beta. Use the interactive TUI, run headlessly in scripts, or build apps and orchestrators with the Agent Client Protoco...","titleGenerated":null,"titleShort":null,"content":"Grok Build is now available in beta. Use the interactive TUI, run headlessly in scripts, or build apps and orchestrators with the Agent Client Protocol.\n\nInstall with a single command:\n\n```bash\ncurl -fsSL https://x.ai/cli/install.sh | bash\n```","publishedAt":"2026-05-14T00:00:00.000Z","url":"https://docs.x.ai/developers/release-notes/build/overview","media":[],"prerelease":false,"source":{"slug":"release-notes","name":"Release Notes","type":"scrape"},"product":{"slug":"grok-api","name":"Grok API"},"groupSlug":"grok-api","groupName":"Grok API","coverageCount":0,"contentChars":243,"contentTokens":57,"composition":null},{"id":"rel_qu0i5OGGobph2zAxcdsCZ","version":"v1.12.2","type":"feature","title":"v1.12.2","summary":"## What's Changed\n* Add none and medium reasoning effort levels by @shawnthapa in https://github.com/xai-org/xai-sdk-python/pull/139\n* Bump version fr...","titleGenerated":null,"titleShort":null,"content":"## What's Changed\n* Add none and medium reasoning effort levels by @shawnthapa in https://github.com/xai-org/xai-sdk-python/pull/139\n* Bump version from 1.12.1 to 1.12.2 by @shawnthapa in https://github.com/xai-org/xai-sdk-python/pull/140\n\n\n**Full Changelog**: https://github.com/xai-org/xai-sdk-python/compare/v1.12.1...v1.12.2","publishedAt":"2026-05-07T00:07:20.000Z","url":"https://github.com/xai-org/xai-sdk-python/releases/tag/v1.12.2","media":[],"prerelease":false,"source":{"slug":"xai-sdk-python","name":"xai-sdk-python","type":"github"},"product":{"slug":"grok-api","name":"Grok API"},"groupSlug":"grok-api","groupName":"Grok API","coverageCount":0,"contentChars":328,"contentTokens":108,"composition":null},{"id":"rel_dxFlFBNO1WdK85p_px5N7","version":null,"type":"feature","title":"Custom Voices","summary":"You can now clone a voice from a short audio clip and use it across the Text-to-Speech and Voice Agent APIs. Create and manage your voice catalog from...","titleGenerated":null,"titleShort":null,"content":"You can now clone a voice from a short audio clip and use it across the Text-to-Speech and Voice Agent APIs. Create and manage your voice catalog from the xAI console.","publishedAt":"2026-05-01T00:00:00.000Z","url":"https://docs.x.ai/developers/release-notes/developers/model-capabilities/audio/custom-voices","media":[],"prerelease":false,"source":{"slug":"release-notes","name":"Release Notes","type":"scrape"},"product":{"slug":"grok-api","name":"Grok API"},"groupSlug":"grok-api","groupName":"Grok API","coverageCount":0,"contentChars":167,"contentTokens":37,"composition":null},{"id":"rel_o6RYOec28yxc1vkMAUZlb","version":"v1.12.1","type":"feature","title":"v1.12.1","summary":"## What's Changed\n* Update the CHANGELOG with missing entries by @Omar-V2 in https://github.com/xai-org/xai-sdk-python/pull/135\n* Add grok-4.3 to Chat...","titleGenerated":null,"titleShort":null,"content":"## What's Changed\n* Update the CHANGELOG with missing entries by @Omar-V2 in https://github.com/xai-org/xai-sdk-python/pull/135\n* Add grok-4.3 to ChatModel by @shawnthapa in https://github.com/xai-org/xai-sdk-python/pull/137\n* Bump version from 1.12.0 to 1.12.1 by @shawnthapa in https://github.com/xai-org/xai-sdk-python/pull/138\n\n\n**Full Changelog**: https://github.com/xai-org/xai-sdk-python/compare/v1.12.0...v1.12.1","publishedAt":"2026-04-30T22:35:52.000Z","url":"https://github.com/xai-org/xai-sdk-python/releases/tag/v1.12.1","media":[],"prerelease":false,"source":{"slug":"xai-sdk-python","name":"xai-sdk-python","type":"github"},"product":{"slug":"grok-api","name":"Grok API"},"groupSlug":"grok-api","groupName":"Grok API","coverageCount":0,"contentChars":420,"contentTokens":142,"composition":null},{"id":"rel_fiwTZSYj1c2txYQVyfOh2","version":null,"type":"feature","title":"Cost Tracking","summary":"Every API response now includes the exact cost of the request via a `cost_in_usd_ticks` field in the `usage` object. Works across chat completions, Re...","titleGenerated":null,"titleShort":null,"content":"Every API response now includes the exact cost of the request via a `cost_in_usd_ticks` field in the `usage` object. Works across chat completions, Responses API, image generation, video generation, and streaming.","publishedAt":"2026-04-30T00:00:00.000Z","url":"https://docs.x.ai/developers/release-notes/developers/cost-tracking","media":[],"prerelease":false,"source":{"slug":"release-notes","name":"Release Notes","type":"scrape"},"product":{"slug":"grok-api","name":"Grok API"},"groupSlug":"grok-api","groupName":"Grok API","coverageCount":0,"contentChars":213,"contentTokens":46,"composition":null},{"id":"rel_ElR4HSXS2gQMlNYQqJU69","version":"v1.12.0","type":"feature","title":"v1.12.0","summary":"## What's Changed\n* docs: add video generation and extension documentation to README by @double-di in https://github.com/xai-org/xai-sdk-python/pull/1...","titleGenerated":null,"titleShort":null,"content":"## What's Changed\n* docs: add video generation and extension documentation to README by @double-di in https://github.com/xai-org/xai-sdk-python/pull/127\n* Add collection descriptions, field definition updates, and bytes chunking by @Omar-V2 in https://github.com/xai-org/xai-sdk-python/pull/130\n* Add `expires_after` to file uploads, drop `team_id` from `File` by @Omar-V2 in https://github.com/xai-org/xai-sdk-python/pull/131\n* Add `cost_usd` tracking, model migration, example fixes by @Omar-V2 in https://github.com/xai-org/xai-sdk-python/pull/132\n* docs: update default API requests timeout from 15min(900s) to 27min(1620s) by @dcbert in https://github.com/xai-org/xai-sdk-python/pull/101\n* Add `cost_usd` property to image and video responses by @Omar-V2 in https://github.com/xai-org/xai-sdk-python/pull/133\n* Prepare to release v1.12.0 of the xAI Python SDK by @Omar-V2 in https://github.com/xai-org/xai-sdk-python/pull/134\n\n## New Contributors\n* @dcbert made their first contribution in https://github.com/xai-org/xai-sdk-python/pull/101\n\n**Full Changelog**: https://github.com/xai-org/xai-sdk-python/compare/v1.11.0...v1.12.0","publishedAt":"2026-04-29T18:43:26.000Z","url":"https://github.com/xai-org/xai-sdk-python/releases/tag/v1.12.0","media":[],"prerelease":false,"source":{"slug":"xai-sdk-python","name":"xai-sdk-python","type":"github"},"product":{"slug":"grok-api","name":"Grok API"},"groupSlug":"grok-api","groupName":"Grok API","coverageCount":0,"contentChars":1134,"contentTokens":335,"composition":null},{"id":"rel_L5wbBnzlr22IUxH6TldXs","version":null,"type":"feature","title":"Files API TTL","summary":"You can now set an expiration policy on uploaded files using `expires_after` or an explicit `expires_at` timestamp. Expired files are automatically de...","titleGenerated":null,"titleShort":null,"content":"You can now set an expiration policy on uploaded files using `expires_after` or an explicit `expires_at` timestamp. Expired files are automatically deleted.","publishedAt":"2026-04-28T00:00:00.000Z","url":"https://docs.x.ai/developers/release-notes/developers/files","media":[],"prerelease":false,"source":{"slug":"release-notes","name":"Release Notes","type":"scrape"},"product":{"slug":"grok-api","name":"Grok API"},"groupSlug":"grok-api","groupName":"Grok API","coverageCount":0,"contentChars":156,"contentTokens":31,"composition":null},{"id":"rel_l2X8BfHYynQtIlx7XkGjK","version":null,"type":"feature","title":"Grok Voice Think Fast 1.0 is available","summary":"You can now use `grok-voice-think-fast-1.0` with the Voice Agent API. See the [blog post](https://x.ai/news/grok-voice-think-fast-1) for more details.","titleGenerated":null,"titleShort":null,"content":"You can now use `grok-voice-think-fast-1.0` with the Voice Agent API. See the [blog post](https://x.ai/news/grok-voice-think-fast-1) for more details.","publishedAt":"2026-04-23T00:00:00.000Z","url":"https://docs.x.ai/developers/release-notes/developers/model-capabilities/audio/voice-agent","media":[],"prerelease":false,"source":{"slug":"release-notes","name":"Release Notes","type":"scrape"},"product":{"slug":"grok-api","name":"Grok API"},"groupSlug":"grok-api","groupName":"Grok API","coverageCount":0,"contentChars":150,"contentTokens":48,"composition":null},{"id":"rel_MFue4EoanvxAfhw5-Drat","version":null,"type":"feature","title":"Speech to Text is available","summary":"The xAI Speech to Text API is now generally available. Transcribe audio to text in 25 languages with batch and streaming modes.","titleGenerated":null,"titleShort":null,"content":"The xAI Speech to Text API is now generally available. Transcribe audio to text in 25 languages with batch and streaming modes.","publishedAt":"2026-04-15T00:00:00.000Z","url":"https://docs.x.ai/developers/release-notes/developers/model-capabilities/audio/speech-to-text","media":[],"prerelease":false,"source":{"slug":"release-notes","name":"Release Notes","type":"scrape"},"product":{"slug":"grok-api","name":"Grok API"},"groupSlug":"grok-api","groupName":"Grok API","coverageCount":0,"contentChars":127,"contentTokens":27,"composition":null},{"id":"rel_iCAAaa3KXzswXln8UctFo","version":"v1.11.0","type":"feature","title":"v1.11.0","summary":"## What's Changed\n* Support inline file attachments by @shawnthapa in https://github.com/xai-org/xai-sdk-python/pull/122\n* Add url support for FileCon...","titleGenerated":null,"titleShort":null,"content":"## What's Changed\n* Support inline file attachments by @shawnthapa in https://github.com/xai-org/xai-sdk-python/pull/122\n* Add url support for FileContent by @shawnthapa in https://github.com/xai-org/xai-sdk-python/pull/123\n* Bump version from 1.10.0 to 1.11.0 by @shawnthapa in https://github.com/xai-org/xai-sdk-python/pull/124\n\n\n**Full Changelog**: https://github.com/xai-org/xai-sdk-python/compare/v1.10.0...v1.11.0","publishedAt":"2026-03-27T18:23:29.000Z","url":"https://github.com/xai-org/xai-sdk-python/releases/tag/v1.11.0","media":[],"prerelease":false,"source":{"slug":"xai-sdk-python","name":"xai-sdk-python","type":"github"},"product":{"slug":"grok-api","name":"Grok API"},"groupSlug":"grok-api","groupName":"Grok API","coverageCount":0,"contentChars":419,"contentTokens":135,"composition":null},{"id":"rel__HQ9jXAVFYV-IPYhDON3H","version":"v1.10.0","type":"feature","title":"v1.10.0","summary":"## What's Changed\n* Add video extension API and reference_image_urls support by @Omar-V2 in https://github.com/xai-org/xai-sdk-python/pull/120\n* Prepa...","titleGenerated":null,"titleShort":null,"content":"## What's Changed\n* Add video extension API and reference_image_urls support by @Omar-V2 in https://github.com/xai-org/xai-sdk-python/pull/120\n* Prepare to release v1.10.0 of the xAI Python SDK by @Omar-V2 in https://github.com/xai-org/xai-sdk-python/pull/121\n\n\n**Full Changelog**: https://github.com/xai-org/xai-sdk-python/compare/v1.9.1...v1.10.0","publishedAt":"2026-03-24T17:25:18.000Z","url":"https://github.com/xai-org/xai-sdk-python/releases/tag/v1.10.0","media":[],"prerelease":false,"source":{"slug":"xai-sdk-python","name":"xai-sdk-python","type":"github"},"product":{"slug":"grok-api","name":"Grok API"},"groupSlug":"grok-api","groupName":"Grok API","coverageCount":0,"contentChars":348,"contentTokens":108,"composition":null},{"id":"rel_hpAyACf7ui5v4dwzem9HO","version":"v1.9.1","type":"feature","title":"v1.9.1","summary":"## What's Changed\n* Update grok-4.20 and multi-agent model variants in ChatModel by @shawnthapa in https://github.com/xai-org/xai-sdk-python/pull/117\n...","titleGenerated":null,"titleShort":null,"content":"## What's Changed\n* Update grok-4.20 and multi-agent model variants in ChatModel by @shawnthapa in https://github.com/xai-org/xai-sdk-python/pull/117\n* Bump version from 1.9.0 to 1.9.1 by @shawnthapa in https://github.com/xai-org/xai-sdk-python/pull/118\n\n\n**Full Changelog**: https://github.com/xai-org/xai-sdk-python/compare/v1.9.0...v1.9.1","publishedAt":"2026-03-19T22:58:07.000Z","url":"https://github.com/xai-org/xai-sdk-python/releases/tag/v1.9.1","media":[],"prerelease":false,"source":{"slug":"xai-sdk-python","name":"xai-sdk-python","type":"github"},"product":{"slug":"grok-api","name":"Grok API"},"groupSlug":"grok-api","groupName":"Grok API","coverageCount":0,"contentChars":341,"contentTokens":116,"composition":null},{"id":"rel_Yk9-NOecL9TK2KoOW9AUQ","version":"v1.9.0","type":"feature","title":"v1.9.0","summary":"## What's Changed\r\n* feat: add image/video batch support and input_file_id by @double-di in https://github.com/xai-org/xai-sdk-python/pull/112\r\n* Fix ...","titleGenerated":null,"titleShort":null,"content":"## What's Changed\r\n* feat: add image/video batch support and input_file_id by @double-di in https://github.com/xai-org/xai-sdk-python/pull/112\r\n* Fix unknown status handling in polling loops by @Omar-V2 in https://github.com/xai-org/xai-sdk-python/pull/113\r\n* Use model type aliases in image and video method signatures by @Omar-V2 in https://github.com/xai-org/xai-sdk-python/pull/114\r\n* Prepare to release v1.9.0 of the xAI Python SDK by @Omar-V2 in https://github.com/xai-org/xai-sdk-python/pull/116\r\n\r\n## New Contributors\r\n* @double-di made their first contribution in https://github.com/xai-org/xai-sdk-python/pull/112\r\n\r\n**Full Changelog**: https://github.com/xai-org/xai-sdk-python/compare/v1.8.2...v1.9.0","publishedAt":"2026-03-19T01:02:11.000Z","url":"https://github.com/xai-org/xai-sdk-python/releases/tag/v1.9.0","media":[],"prerelease":false,"source":{"slug":"xai-sdk-python","name":"xai-sdk-python","type":"github"},"product":{"slug":"grok-api","name":"Grok API"},"groupSlug":"grok-api","groupName":"Grok API","coverageCount":0,"contentChars":712,"contentTokens":202,"composition":null},{"id":"rel_2Xes6Gg7PhVNYNdXE5_mW","version":"v1.8.2","type":"feature","title":"v1.8.2","summary":"## What's Changed\n* Handle video generation failure case by @Omar-V2 in https://github.com/xai-org/xai-sdk-python/pull/110\n* Prepare to release v1.8.2...","titleGenerated":null,"titleShort":null,"content":"## What's Changed\n* Handle video generation failure case by @Omar-V2 in https://github.com/xai-org/xai-sdk-python/pull/110\n* Prepare to release v1.8.2 of the xAI Python SDK by @Omar-V2 in https://github.com/xai-org/xai-sdk-python/pull/111\n\n\n**Full Changelog**: https://github.com/xai-org/xai-sdk-python/compare/v1.8.1...v1.8.2","publishedAt":"2026-03-16T18:07:49.000Z","url":"https://github.com/xai-org/xai-sdk-python/releases/tag/v1.8.2","media":[],"prerelease":false,"source":{"slug":"xai-sdk-python","name":"xai-sdk-python","type":"github"},"product":{"slug":"grok-api","name":"Grok API"},"groupSlug":"grok-api","groupName":"Grok API","coverageCount":0,"contentChars":326,"contentTokens":104,"composition":null},{"id":"rel_uPJx0NxP2FqtBu9qc00sA","version":null,"type":"feature","title":"Text-to-Speech is available","summary":"The Text-to-Speech API is now generally available. Generate natural-sounding speech from text with Grok.","titleGenerated":null,"titleShort":null,"content":"The Text-to-Speech API is now generally available. Generate natural-sounding speech from text with Grok.","publishedAt":"2026-03-16T00:00:00.000Z","url":"https://docs.x.ai/developers/release-notes/developers/model-capabilities/audio/text-to-speech","media":[],"prerelease":false,"source":{"slug":"release-notes","name":"Release Notes","type":"scrape"},"product":{"slug":"grok-api","name":"Grok API"},"groupSlug":"grok-api","groupName":"Grok API","coverageCount":0,"contentChars":104,"contentTokens":22,"composition":null},{"id":"rel_4R20V53Izj-kpD6ULArK1","version":null,"type":"feature","title":"Batch API supports Image and Video generation","summary":"The Batch API now supports image generation, image editing, and video generation in addition to chat completions. Both server-side tools and client-si...","titleGenerated":null,"titleShort":null,"content":"The Batch API now supports image generation, image editing, and video generation in addition to chat completions. Both server-side tools and client-side function tools are also now supported in batch requests. Image and video URLs in batch results expire after 1 hour.","publishedAt":"2026-03-15T00:00:00.000Z","url":"https://docs.x.ai/developers/release-notes/developers/advanced-api-usage/batch-api","media":[],"prerelease":false,"source":{"slug":"release-notes","name":"Release Notes","type":"scrape"},"product":{"slug":"grok-api","name":"Grok API"},"groupSlug":"grok-api","groupName":"Grok API","coverageCount":0,"contentChars":268,"contentTokens":51,"composition":null}],"pagination":{"nextCursor":"2026-03-15T00:00:00.000Z|2026-05-26T12:26:12.068Z|rel_4R20V53Izj-kpD6ULArK1","limit":20}}