Skip to content
offprompt

xAI

An agent asks for this key by its usual variable name, XAI_API_KEY, and offprompt knows the key from the name. Under any other name, the agent adds provider: "xai".

The fields offprompt's page shows for xAI, each filled with an example. Change one to watch its checks.
KeyUsual namesUnder any other name
API keyXAI_API_KEYprovider: "xai"

API key

Made at console.x.ai/team/default/api-keys. Looks like xai-….

  • Starts with xai-
  • At least 40 characters