Skip to main content
xAI
Previewv0.1.0
99 actions · 3 auth methods
AIIAM

Getting Started

1

Create or Select a Project

Set up a new project or select an existing one. See Organizations & Projects.
2

Configure the Connector

Enable the connector and create a Connector Profile in your project. See Setup Connector Profile.

Grok Team Admin API Key · Connector Profile

Reads the members, roles and directory groups of one Grok team on The X Subscription through the Cursor Admin API. Does…

Management Key · Connector Profile

Calls the xAI Management API for one console team, covering API keys, billing, collections, team models and audit events…

API Key · Connector Profile

Uses an xAI API key from one console team to call the xAI API, covering chat, responses, embeddings, images, video, spee…
3

Link an Account

Link an account from the dashboard (or via StackOne Hub).See the guide for the authentication type chosen in the Connector Profile:

Grok Team Admin API Key · Link Account

Management Key · Link Account

API Key · Link Account

4

Use Actions

Connect an AI platform to the linked account’s actions. See AI Platforms.Other ways to call actions are listed in Protocols & SDKs.

Actions

|
99 actions
Action
Description
Get API Key Info
Get the name, status and permissions of the xAI API key the connection uses.
Get Me
Get the user, team and API key behind the xAI connection.
List API Keys
List the API keys of an xAI console team.
Create API Key
Create an API key in an xAI console team.
Update API Key
Change the name, limits, permissions or disabled state of an xAI API key.
Rotate API Key
Replace the secret of an xAI API key, ending the old secret.
Delete API Key
Delete an xAI API key for good.
Get API Key Propagation
Check whether an xAI API key has reached every inference cluster.
List Audit Events
List the audit events of an xAI console team, such as API key and membership changes.
Create Batch
Create an xAI batch to run many model requests in the background at a lower price.
List Batches
List the batches of the xAI team, a page at a time.
Get Batch
Get one xAI batch with its progress counts.
List Batch Requests
List the requests in an xAI batch with the state of each, a page at a time.
Add Batch Requests
Add chat, responses, image or video requests to an xAI batch.
List Batch Results
List the answers of the finished requests in an xAI batch, a page at a time.
Cancel Batch
Stop an xAI batch so its pending requests are not processed.
Get Billing Info
Get the billing name, address, email and tax ID of an xAI console team.
Set Billing Info
Save the billing name, address, email and tax ID of an xAI console team.
List Invoices
List the invoices of an xAI console team, with line items and payment status.
List Payment Methods
List the cards and bank accounts on file for an xAI console team.
Set Default Payment Method
Make a payment method on file the default for an xAI console team.
Preview Postpaid Invoice
Preview what an xAI console team owes for postpaid usage this billing period.
Get Spending Limits
Get the monthly postpaid spending limits of an xAI console team.
Set Spending Limit
Set the monthly postpaid spending limit of an xAI console team.
Get Prepaid Balance
Get the prepaid credit balance of an xAI console team and its history.
Top Up Prepaid Credits
Buy prepaid credits for an xAI console team, charged to its default payment method.
Get Usage
Get the API usage and spend of an xAI console team over time, grouped as asked.
Create Chat Completion
Send a conversation to a Grok model and get its reply.
Get Deferred Chat Completion
Fetch the result of a chat completion started with deferred set to true.
Search Collections
Search the documents in one or more xAI collections and return the best-matching chunks.
Create Collection
Create an xAI collection that indexes documents for search.
List Collections
List the collections of an xAI team, a page at a time.
Get Collection
Get the settings of one xAI collection.
Update Collection
Rename an xAI collection or change its chunking and document fields.
Delete Collection
Delete an xAI collection for good.
Add Collection Document
Add an uploaded xAI file to a collection so it can be searched.
List Collection Documents
List the documents in an xAI collection with their indexing status, a page at a time.
Get Collection Document
Get one document of an xAI collection with its indexing status.
Regenerate Collection Document
Rebuild the search index of one document in an xAI collection.
Remove Collection Document
Remove a document from an xAI collection.
Batch Get Collection Documents
Get several documents of an xAI collection in one call.
Create Embeddings
Turn text into embedding vectors with an xAI embedding model.
List Files
List the files stored in the xAI team, a page at a time.
Get File
Get the details of one stored xAI file.
Delete File
Delete a stored xAI file for good.
Create File Public URL
Publish a stored xAI file at a public URL anyone can open.
Revoke File Public URL
Turn off the public URL of a stored xAI file.
List Grok Team Members
List every member of the Grok team with their role and removal status.
List Grok Team Directory Groups
List the Grok team’s directory groups with their member counts and spend limits.
Get Grok Team Directory Group
Get one of the Grok team’s directory groups by ID.
List Grok Team Directory Group Members
List the members of one Grok team directory group.
Get Unified Credentials
Get the current xAI connection’s unified credentials and identity.
List Unified Groups
List unified directory groups in a Grok team.
Get Unified Group
Get a unified Grok team directory group by ID.
List Unified Roles
List the built-in roles of a Grok team.
Get Unified Role
Get a built-in Grok team role by ID.
List Unified Users
List unified users in a Grok team.
Get Unified User
Get a unified Grok team member by ID.
Generate Image
Generate images from a text prompt with a Grok image model.
Edit Image
Edit one or more images from a text prompt with a Grok image model.
Get Deferred Image
Fetch the result of an image generation or edit started with deferred set to true.
Validate Management Key
Check the xAI management key the connection uses and return its scope and permissions.
List Models
List the models the xAI API key can use, with prices.
Get Model
Get one model by ID or alias, with its prices.
List Language Models
List the chat and image understanding models the xAI API key can use, with prices.
Get Language Model
Get one chat and image understanding model by ID or alias, with its prices.
List Image Generation Models
List the image generation models the xAI API key can use, with prices.
Get Image Generation Model
Get one image generation model by ID or alias, with its prices.
List Video Generation Models
List the video generation models the xAI API key can use, with prices.
Get Video Generation Model
Get one video generation model by ID or alias, with its prices.
List Embedding Models
List the embedding models the xAI API key can use, with prices.
Get Embedding Model
Get one embedding model by ID or alias, with its prices.
Create Response
Generate a Grok model response from text, image or file input, stored for later retrieval.
Get Response
Get a stored Grok model response by ID.
Delete Response
Delete a stored Grok model response.
Compact Response Input
Shorten a long Responses input window into one compacted item to send next time.
List Response Input Items
List the input items of a stored Grok model response, a page at a time.
List Skills
List the hosted skills uploaded to the xAI team, a page at a time.
Get Skill
Get the details of one hosted xAI skill.
Delete Skill
Delete a hosted xAI skill for good.
List Team Models
List the models an xAI console team can use, with prices and rate limits.
List Team Endpoint ACLs
List the endpoint ACLs that can be given to API keys of an xAI console team.
Tokenize Text
Split text into the tokens a Grok model reads, with each token id.
Generate Video
Start generating a video from a text prompt, an image or reference images.
Edit Video
Start editing a video from a text prompt.
Extend Video
Start generating a continuation of a video from a text prompt.
Get Deferred Video
Fetch the status and result of a video generation, edit or extension.
Create Phone Number
Add a phone number that routes SIP calls to an xAI voice agent or webhook.
List Phone Numbers
List the phone numbers of the xAI team, a page at a time.
Delete Phone Number
Remove a Direct SIP or Twilio-imported phone number from the xAI team.
Transfer SIP Call
Transfer an active xAI SIP call to a phone number or SIP address.
Hang Up SIP Call
End an active xAI SIP call.
Create Speech
Turn text into spoken audio with an xAI voice, returned as base64 with timings.
List TTS Voices
List the built-in xAI voices for text to speech.
Get TTS Voice
Get one built-in xAI text to speech voice.
List Custom Voices
List the custom voices the xAI team has made, a page at a time.
Get Custom Voice
Get one custom voice of the xAI team.
Update Custom Voice
Change the name, description or labels of a custom xAI voice.
Delete Custom Voice
Delete a custom xAI voice for good.