Google Cloud 嗰頁只提到 Grok 4.1 Fast 有「strong tool-calling capabilities」同「efficient knowledge base synthesis」,但呢個係 4.1 Fast,而且係 Vertex AI 上嘅描述,唔能夠直接當作 4.3 或 xAI 原生 API 嘅明確證明。[6]
WaitThe image displays an announcement for the release of GROK 4.3 Beta by xAI, highlighting features such as native video intelligence, instant file generation, sharper reasoning, and seamless multimodality, with a tagline stating "The gap between idea and finished deliverable just collapsed."3 Steps to Implement xAI Grok API Web Search: A Complete Guide toThe diagram illustrates the integration of xAI Grok API with a web search system, showing how user requests are processed through a responses API that interacts with platform-specific search (x_search) and global web search (web_search), ultimately providing a smart, synthesized answer.Collections Search Tool | xAI DocsThe image displays the words "xAI Grok 4.3 files Collections Search knowledge base Q&A docs files collections search" on a gold and black gradient background, suggesting a focus on AI development and knowledge base organization.Video thumbnailVideo thumbnailVideo thumbnailVideo thumbnailVideo thumbnailblackboard.jpgCollections Search Tool | xAI DocsA dark-themed interface displaying the title "Collections Search Tool" under the section "Tools," with "API & SDK" written at the top left corner and the xAI Grok logo.차세대 AI의 핵심: OpenClaw와 xAI Grok 완벽 가이드 및 심층 분석The diagram illustrates a network architecture for supporting xAI documentation, showing a user interacting with a gedge-apne2 model on the ap-northeast-2 region, which communicates via HTTP/2 with a series of components in the us-east-1 region, including gedge-use1, chat gateway, and chat server.2026年最新】5大生成AI比較!ChatGPT・Gemini・Claude・Copilot・GrokThe image features a table comparing major semiconductor companies, including NVIDIA, AMD, TSMC, Broadcom, Intel, and Micron, with details on their stock prices, projected growth rates, PER ratios, and main segments.xAI のAIリリース年表|npakaMultiple colorful cartoon characters and labels related to AI, documentation, and model support are displayed in a structured grid, suggesting a collection of illustrations or informational graphics about Grok 4.3 and xAI.xAI のAIリリース年表|npakaThe image features a black background with the white text "xAI" centered, indicating a focus on explainable artificial intelligence supported by Grok 4.3 collections.Browse Skills | OpenClaw Army <!-- Open Graph / Facebook --> <metaA cartoon robot with a shield and claw features prominently above the text "SETUP & SECURE OPENCLAW," with "OPENCLAW.ARMY" displayed below, all set against a black background.Collections | xAI DocsThe image displays a dark-themed interface with the XAI logo and the text "API & SDK" at the top, and the words "Files & Collections" and "Collections" prominently featured, indicating a focus on managing or adding files to collections via an API or SDK.Using Collections via API | xAI DocsThe image displays a presentation slide with the title "Using Collections via API" under the section "Files & Collections," featuring the X AI logo and branding elements related to API and SDK documentation.Managing Files | xAI DocsA presentation slide titled "Managing Files" under the "API & SDK" section, featuring the Xano logo in the top left corner and a dark, gradient background with circular design elements.
Google Cloud 嗰頁只提到 Grok 4.1 Fast 有「strong tool-calling capabilities」同「efficient knowledge base synthesis」,但呢個係 4.1 Fast,而且係 Vertex AI 上嘅描述,唔能夠直接當作 4.3 或 xAI 原生 API 嘅明確證明。[6]
Welcome to xAI Documentation. Build with Grok, the AI model designed to deliver truthful, insightful answers. ## Get started. #### API & SDK. Learn how to integrate Grok into your applications. #### Console. Learn about billing, API keys, and account settings. #### Grok App. Learn how to use Grok on web and mobile. ## Grok 4.20. Grok 4.20 is our newest flagship model with industry-leading speed and agentic tool calling capabilities. It combines the lowest hallucination rate on the market with strict prompt adherence, delivering consistently precise and truthful responses. ## Quick start wit…
Files & Collections. # Collections. Whether you're building a RAG application or need to search across large document sets, Collections provides the infrastructure to manage and query your content. Collections are different—they provide persistent document storage with semantic search across many documents. There are two entities that users can create within the Collections service:. Choose how you want to work with Collections:. Collections support metadata fields — structured attributes you can attach to documents for enhanced retrieval and data integrity:. When creating a collecti…
Calling tool: collections_search with arguments: {"query":"Tesla total vehicle production 2024","limit":10}. Calling tool: collections_search with arguments: {"query":"Tesla total vehicles produced 2024","limit":5}. Calling tool: collections_search with arguments: {"query":"Tesla vehicles produced 2025 Q1 Q2 Q3","limit":5}. Calling tool: collections_search with arguments: {"query":"Tesla production and deliveries 2025 Q1 Q2 Q3","limit":10}. Calling tool: collections_search with arguments: {"query":"Tesla total production 2024 full year consumer vehicles","limit":5}. Calling tool: collections_…
Files. Grok can search through and reason over documents you attach to chat messages. You can reference any public file by URL or upload private files and reference them by ID; either way, the system automatically activates the attachment_search tool and transforms your request into an agentic workflow. Files are different—they're for attaching documents to chat conversations for immediate context. ## How Files Work with Chat. Behind the scenes, when you attach files to a chat message, the xAI API implicitly adds the attachment_search server-side tool to your request. This seamless inte…
Grok Collections API. With Collections, you can upload and search through entire datasets. This allows developers to build RAG applications without the headache of managing indexing and retrieval infrastructure. To help you get started, we're making file indexing and storage free for the first week*, with retrieval priced at a flat rate of $2.50 per 1,000 searches. Our Collections API delivers state-of-the-art retrieval performance, matching or outperforming leading models in real-world RAG tasks across finance, legal, and coding domains. Extracting tabular and numerical data from files ca…
Grok 4.3 is the latest iteration of xAI's Grok model, designed to deliver improved reasoning, real-time information access, and advanced task automation. It
Files & Collections. # Using Collections via API. ## Creating a Management Key. To use the Collections API, you need to create a Management API Key with the AddFileToCollection permission.
import os import os from openai import OpenAI from openai import OpenAI client = OpenAI(client = OpenAI( api_key=os.getenv("XAI_API_KEY"), api_key =os.getenv("XAI_API_KEY"), base_url="https://api.x.ai/v1", base_url ="https://api.x.ai/v1",)) # Attach a file by public URL (or use file_id for uploaded files)# Attach a file by public URL (or use file_id for uploaded files)response = client.responses.create(response = client.responses.create( model="grok-4.20-reasoning", model ="grok-4.20-reasoning", input=[ input =[ { { "role": "user", "role": "user", "content": [ "content": [ {"type": "input_tex…
Field definitions for documents in this collection. Supports filtering on: collection_id, collection_name (partial string matching), created_at, documents_count. - 'collection_name:"SEC" AND documents_count:>10'. The ID of the collection to request. Field definitions for documents in this collection. The ID of the collection to update. Field definitions for documents in this collection. ## Add existing document to a collection. /v1/collections/{collection_id}/documents/{file_id}. Add a document to collection. The id of the collection this document will be added to. ## List documents i…
Metadata fields allow you to attach structured attributes to documents in a collection. ## Creating a Collection with Metadata Fields. Define metadata fields using field_definitions when creating a collection:. | unique | Only one document in the collection can have a given value for this field.
Grok 4 | xAI Docs. # Grok 4. Our latest and greatest flagship model, offering unparalleled performance in natural language, math and reasoning - the perfect jack of all trades. Request increased rate limitsRead announcement. ## At a glance. ## Capabilities. Connect the xAI model to external tools and systems. Return responses in a specific, organized formats. The model thinks before responding. ## Pricing. #### Input. #### Output. You are charged for each token used when making calls to our API. Using cached input tokens can significantly reduce your costs. This model is available on multip…
Grok 4 0709 | xAI Docs. # Grok 4. Our latest and greatest flagship model, offering unparalleled performance in natural language, math and reasoning - the perfect jack of all trades. Request increased rate limitsRead announcement. ## At a glance. ## Capabilities. Connect the xAI model to external tools and systems. Return responses in a specific, organized formats. The model thinks before responding. ## Pricing. #### Input. #### Output. You are charged for each token used when making calls to our API. Using cached input tokens can significantly reduce your costs. This model is available on m…
Grok Code Fast 1 | xAI Docs. # Grok Code Fast 1. We're thrilled to introduce grok-code-fast-1, a speedy and economical reasoning model that excels at agentic coding. Request increased rate limitsRead announcement. ## At a glance. ## Capabilities. Connect the xAI model to external tools and systems. Return responses in a specific, organized formats. The model thinks before responding. ## Pricing. #### Input. #### Output. You are charged for each token used when making calls to our API. Using cached input tokens can significantly reduce your costs. This model is available on multiple clusters…
Grok 4 | xAI Docs. # Grok 4. Our latest and greatest flagship model, offering unparalleled performance in natural language, math and reasoning - the perfect jack of all trades. Request increased rate limitsRead announcement. ## At a glance. ## Capabilities. Connect the xAI model to external tools and systems. Return responses in a specific, organized formats. The model thinks before responding. ## Pricing. #### Input. #### Output. You are charged for each token used when making calls to our API. Using cached input tokens can significantly reduce your costs. This model is available on multip…
Grok 4 Fast | xAI Docs. # Grok 4 Fast. We're excited to release grok-4-fast, our latest advancement in cost-efficient reasoning models. Request increased rate limitsRead announcement. ## At a glance. ## Capabilities. Connect the xAI model to external tools and systems. Return responses in a specific, organized formats. The model thinks before responding. ## Pricing. #### Input. #### Output. You are charged for each token used when making calls to our API. Using cached input tokens can significantly reduce your costs. This model is available on multiple clusters, you can find full regional b…
Grok Code Fast 1 | xAI Docs. # Grok Code Fast 1. We're thrilled to introduce grok-code-fast-1, a speedy and economical reasoning model that excels at agentic coding. Request increased rate limitsRead announcement. ## At a glance. ## Capabilities. Connect the xAI model to external tools and systems. Return responses in a specific, organized formats. The model thinks before responding. ## Pricing. #### Input. #### Output. You are charged for each token used when making calls to our API. Using cached input tokens can significantly reduce your costs. This model is available on multiple clusters…
Batch API supports Image and Video generation. The Batch API now supports image generation, image editing, and video generation in addition to chat completions. ### Batch API is released. Batch API is available for all customers. ### Grok Voice Agent API is released. Grok Voice Agent API is generally available. Visit Grok Voice Agent API for guidance on using the API. ### Grok 4.1 Fast is available in Enterprise API. You can now use Grok 4.1 Fast in the xAI Enterprise API. ### Files API is generally available. ### Responses API is generally available. You can now use Grok 4 via our API or…
Grok Imagine Image | xAI Docs. # grok-imagine-image. ## At a glance. ## Pricing. You are charged for each image generated when using the API. You are also charged when using image as an input. This model is available on multiple clusters, you can find full regional based pricing below. ## Details. grok-imagine-image-2026-03-02. Learn more #### Quickstart Create an API Key and make your first request.Learn more #### Generate images Use Grok to generate images.Learn more #### REST API Use Grok via the REST API. Did you find this page helpful? Copy for LLM Share feedback.
Google Cloud 嗰頁只提到 Grok 4.1 Fast 有「strong tool-calling capabilities」同「efficient knowledge base synthesis」,但呢個係 4.1 Fast,而且係 Vertex AI 上嘅描述,唔能夠直接當作 4.3 或 xAI 原生 API 嘅明確證明。[6]
WaitThe image displays an announcement for the release of GROK 4.3 Beta by xAI, highlighting features such as native video intelligence, instant file generation, sharper reasoning, and seamless multimodality, with a tagline stating "The gap between idea and finished deliverable just collapsed."3 Steps to Implement xAI Grok API Web Search: A Complete Guide toThe diagram illustrates the integration of xAI Grok API with a web search system, showing how user requests are processed through a responses API that interacts with platform-specific search (x_search) and global web search (web_search), ultimately providing a smart, synthesized answer.Collections Search Tool | xAI DocsThe image displays the words "xAI Grok 4.3 files Collections Search knowledge base Q&A docs files collections search" on a gold and black gradient background, suggesting a focus on AI development and knowledge base organization.Video thumbnailVideo thumbnailVideo thumbnailVideo thumbnailVideo thumbnailblackboard.jpgCollections Search Tool | xAI DocsA dark-themed interface displaying the title "Collections Search Tool" under the section "Tools," with "API & SDK" written at the top left corner and the xAI Grok logo.차세대 AI의 핵심: OpenClaw와 xAI Grok 완벽 가이드 및 심층 분석The diagram illustrates a network architecture for supporting xAI documentation, showing a user interacting with a gedge-apne2 model on the ap-northeast-2 region, which communicates via HTTP/2 with a series of components in the us-east-1 region, including gedge-use1, chat gateway, and chat server.2026年最新】5大生成AI比較!ChatGPT・Gemini・Claude・Copilot・GrokThe image features a table comparing major semiconductor companies, including NVIDIA, AMD, TSMC, Broadcom, Intel, and Micron, with details on their stock prices, projected growth rates, PER ratios, and main segments.xAI のAIリリース年表|npakaMultiple colorful cartoon characters and labels related to AI, documentation, and model support are displayed in a structured grid, suggesting a collection of illustrations or informational graphics about Grok 4.3 and xAI.xAI のAIリリース年表|npakaThe image features a black background with the white text "xAI" centered, indicating a focus on explainable artificial intelligence supported by Grok 4.3 collections.Browse Skills | OpenClaw Army <!-- Open Graph / Facebook --> <metaA cartoon robot with a shield and claw features prominently above the text "SETUP & SECURE OPENCLAW," with "OPENCLAW.ARMY" displayed below, all set against a black background.Collections | xAI DocsThe image displays a dark-themed interface with the XAI logo and the text "API & SDK" at the top, and the words "Files & Collections" and "Collections" prominently featured, indicating a focus on managing or adding files to collections via an API or SDK.Using Collections via API | xAI DocsThe image displays a presentation slide with the title "Using Collections via API" under the section "Files & Collections," featuring the X AI logo and branding elements related to API and SDK documentation.Managing Files | xAI DocsA presentation slide titled "Managing Files" under the "API & SDK" section, featuring the Xano logo in the top left corner and a dark, gradient background with circular design elements.
Google Cloud 嗰頁只提到 Grok 4.1 Fast 有「strong tool-calling capabilities」同「efficient knowledge base synthesis」,但呢個係 4.1 Fast,而且係 Vertex AI 上嘅描述,唔能夠直接當作 4.3 或 xAI 原生 API 嘅明確證明。[6]
Welcome to xAI Documentation. Build with Grok, the AI model designed to deliver truthful, insightful answers. ## Get started. #### API & SDK. Learn how to integrate Grok into your applications. #### Console. Learn about billing, API keys, and account settings. #### Grok App. Learn how to use Grok on web and mobile. ## Grok 4.20. Grok 4.20 is our newest flagship model with industry-leading speed and agentic tool calling capabilities. It combines the lowest hallucination rate on the market with strict prompt adherence, delivering consistently precise and truthful responses. ## Quick start wit…
Files & Collections. # Collections. Whether you're building a RAG application or need to search across large document sets, Collections provides the infrastructure to manage and query your content. Collections are different—they provide persistent document storage with semantic search across many documents. There are two entities that users can create within the Collections service:. Choose how you want to work with Collections:. Collections support metadata fields — structured attributes you can attach to documents for enhanced retrieval and data integrity:. When creating a collecti…
Calling tool: collections_search with arguments: {"query":"Tesla total vehicle production 2024","limit":10}. Calling tool: collections_search with arguments: {"query":"Tesla total vehicles produced 2024","limit":5}. Calling tool: collections_search with arguments: {"query":"Tesla vehicles produced 2025 Q1 Q2 Q3","limit":5}. Calling tool: collections_search with arguments: {"query":"Tesla production and deliveries 2025 Q1 Q2 Q3","limit":10}. Calling tool: collections_search with arguments: {"query":"Tesla total production 2024 full year consumer vehicles","limit":5}. Calling tool: collections_…
Files. Grok can search through and reason over documents you attach to chat messages. You can reference any public file by URL or upload private files and reference them by ID; either way, the system automatically activates the attachment_search tool and transforms your request into an agentic workflow. Files are different—they're for attaching documents to chat conversations for immediate context. ## How Files Work with Chat. Behind the scenes, when you attach files to a chat message, the xAI API implicitly adds the attachment_search server-side tool to your request. This seamless inte…
Grok Collections API. With Collections, you can upload and search through entire datasets. This allows developers to build RAG applications without the headache of managing indexing and retrieval infrastructure. To help you get started, we're making file indexing and storage free for the first week*, with retrieval priced at a flat rate of $2.50 per 1,000 searches. Our Collections API delivers state-of-the-art retrieval performance, matching or outperforming leading models in real-world RAG tasks across finance, legal, and coding domains. Extracting tabular and numerical data from files ca…
Grok 4.3 is the latest iteration of xAI's Grok model, designed to deliver improved reasoning, real-time information access, and advanced task automation. It
Files & Collections. # Using Collections via API. ## Creating a Management Key. To use the Collections API, you need to create a Management API Key with the AddFileToCollection permission.
import os import os from openai import OpenAI from openai import OpenAI client = OpenAI(client = OpenAI( api_key=os.getenv("XAI_API_KEY"), api_key =os.getenv("XAI_API_KEY"), base_url="https://api.x.ai/v1", base_url ="https://api.x.ai/v1",)) # Attach a file by public URL (or use file_id for uploaded files)# Attach a file by public URL (or use file_id for uploaded files)response = client.responses.create(response = client.responses.create( model="grok-4.20-reasoning", model ="grok-4.20-reasoning", input=[ input =[ { { "role": "user", "role": "user", "content": [ "content": [ {"type": "input_tex…
Field definitions for documents in this collection. Supports filtering on: collection_id, collection_name (partial string matching), created_at, documents_count. - 'collection_name:"SEC" AND documents_count:>10'. The ID of the collection to request. Field definitions for documents in this collection. The ID of the collection to update. Field definitions for documents in this collection. ## Add existing document to a collection. /v1/collections/{collection_id}/documents/{file_id}. Add a document to collection. The id of the collection this document will be added to. ## List documents i…
Metadata fields allow you to attach structured attributes to documents in a collection. ## Creating a Collection with Metadata Fields. Define metadata fields using field_definitions when creating a collection:. | unique | Only one document in the collection can have a given value for this field.
Grok 4 | xAI Docs. # Grok 4. Our latest and greatest flagship model, offering unparalleled performance in natural language, math and reasoning - the perfect jack of all trades. Request increased rate limitsRead announcement. ## At a glance. ## Capabilities. Connect the xAI model to external tools and systems. Return responses in a specific, organized formats. The model thinks before responding. ## Pricing. #### Input. #### Output. You are charged for each token used when making calls to our API. Using cached input tokens can significantly reduce your costs. This model is available on multip…
Grok 4 0709 | xAI Docs. # Grok 4. Our latest and greatest flagship model, offering unparalleled performance in natural language, math and reasoning - the perfect jack of all trades. Request increased rate limitsRead announcement. ## At a glance. ## Capabilities. Connect the xAI model to external tools and systems. Return responses in a specific, organized formats. The model thinks before responding. ## Pricing. #### Input. #### Output. You are charged for each token used when making calls to our API. Using cached input tokens can significantly reduce your costs. This model is available on m…
Grok Code Fast 1 | xAI Docs. # Grok Code Fast 1. We're thrilled to introduce grok-code-fast-1, a speedy and economical reasoning model that excels at agentic coding. Request increased rate limitsRead announcement. ## At a glance. ## Capabilities. Connect the xAI model to external tools and systems. Return responses in a specific, organized formats. The model thinks before responding. ## Pricing. #### Input. #### Output. You are charged for each token used when making calls to our API. Using cached input tokens can significantly reduce your costs. This model is available on multiple clusters…
Grok 4 | xAI Docs. # Grok 4. Our latest and greatest flagship model, offering unparalleled performance in natural language, math and reasoning - the perfect jack of all trades. Request increased rate limitsRead announcement. ## At a glance. ## Capabilities. Connect the xAI model to external tools and systems. Return responses in a specific, organized formats. The model thinks before responding. ## Pricing. #### Input. #### Output. You are charged for each token used when making calls to our API. Using cached input tokens can significantly reduce your costs. This model is available on multip…
Grok 4 Fast | xAI Docs. # Grok 4 Fast. We're excited to release grok-4-fast, our latest advancement in cost-efficient reasoning models. Request increased rate limitsRead announcement. ## At a glance. ## Capabilities. Connect the xAI model to external tools and systems. Return responses in a specific, organized formats. The model thinks before responding. ## Pricing. #### Input. #### Output. You are charged for each token used when making calls to our API. Using cached input tokens can significantly reduce your costs. This model is available on multiple clusters, you can find full regional b…
Grok Code Fast 1 | xAI Docs. # Grok Code Fast 1. We're thrilled to introduce grok-code-fast-1, a speedy and economical reasoning model that excels at agentic coding. Request increased rate limitsRead announcement. ## At a glance. ## Capabilities. Connect the xAI model to external tools and systems. Return responses in a specific, organized formats. The model thinks before responding. ## Pricing. #### Input. #### Output. You are charged for each token used when making calls to our API. Using cached input tokens can significantly reduce your costs. This model is available on multiple clusters…
Batch API supports Image and Video generation. The Batch API now supports image generation, image editing, and video generation in addition to chat completions. ### Batch API is released. Batch API is available for all customers. ### Grok Voice Agent API is released. Grok Voice Agent API is generally available. Visit Grok Voice Agent API for guidance on using the API. ### Grok 4.1 Fast is available in Enterprise API. You can now use Grok 4.1 Fast in the xAI Enterprise API. ### Files API is generally available. ### Responses API is generally available. You can now use Grok 4 via our API or…
Grok Imagine Image | xAI Docs. # grok-imagine-image. ## At a glance. ## Pricing. You are charged for each image generated when using the API. You are also charged when using image as an input. This model is available on multiple clusters, you can find full regional based pricing below. ## Details. grok-imagine-image-2026-03-02. Learn more #### Quickstart Create an API Key and make your first request.Learn more #### Generate images Use Grok to generate images.Learn more #### REST API Use Grok via the REST API. Did you find this page helpful? Copy for LLM Share feedback.