xAI API

AI servicexai-api

Hosted Grok models for chat, reasoning, vision and image generation.

Provider
default
Category
Compute
Also known as
Grok API
Properties · 6 set by this component
propertytypevaluesrequiredkind defaultthis component
authenumapi-key | oauth | iam | noneno—▸ api-key
contentFilteringboolean—no—inherited
customerManagedKeysboolean—no—inherited
dataResidency · advancedenumus | eu | asia | globalno—▸ global
dataRetentionDaysinteger—no—▸ 30
keyStoreboolean—nofalseinherited
managedboolean—nofalse▸ true
modalityenumtext | vision | speech | multimodal | structured | image | video | audio | embedding | rerankno—▸ multimodal
publicEndpointboolean—no—▸ true
quotaUnitsPerMinuteinteger—no—inherited
rateLimitRpm · advancedinteger—no—inherited
rateLimitTpm · advancedinteger—no—inherited
regionalEndpoint · component propertyenumglobal | usnoglobalinherited
usageTier · component propertyenumtier-0 | tier-1 | tier-2 | tier-3 | tier-4 | enterprisenotier-0inherited
viaGatewayboolean—nofalseinherited
zeroDataRetention · component propertyboolean—nofalseinherited
Rules that apply · 2

Every rule whose selector covers this component's kind or its category. Whether a rule fires depends on the design: its properties, its edges and its groups.

ai-api-key-unmanaged

This AI vendor is reached with an API key, and nothing in the design holds or rotates that key. It ends up in environment files or code, every caller shares it, and a single leak runs up the vendor bill until someone notices. Put the key in a key-management component, or say it is held there with keyStore.

  • — all of these hold:
  • — the node's `auth` is "api-key"
  • — the node's `keyStore` is false
  • — the node has at least one incoming edge from an app-server, worker or client
  • — this does not hold:
  • — the design contains a node of kind key-management
stateful-node-without-zone-redundancy

A stateful compute node pinned to exactly one availability zone disappears with that zone, and its state goes with it. Nodes inside a cell are exempt, because there the cell is deliberately single-zone and redundancy comes from the other cells.

  • — all of these hold:
  • — the node's `stateless` is false
  • — the node sits inside exactly 1 availability-zone group
  • — this does not hold:
  • — the node sits inside at least one cell group
Use it in a design
nodes:
  - { id: "xai-api", component: "xai-api" }
Other AI service products · 125
Content Moderationalibaba-content-moderationalibabacloudai-serviceFraud Detectionalibaba-fraud-detectionalibabacloudai-serviceID Verificationalibaba-id-verificationalibabacloudai-serviceIntelligent Robotalibaba-intelligent-robotalibabacloudai-serviceModel Studioalibaba-model-studioalibabacloudai-serviceSmart Conversation Analysisalibaba-smart-conversation-analysisalibabacloudai-serviceAmazon Bedrockaws-bedrockawsai-serviceAmazon Bedrock AgentCoreaws-bedrock-agentcoreawsai-serviceAmazon Bedrock Data Automationaws-bedrock-data-automationawsai-serviceAmazon Bedrock Guardrailsaws-bedrock-guardrailsawsai-serviceAmazon Comprehendaws-comprehendawsai-serviceAmazon Comprehend Medicalaws-comprehend-medicalawsai-serviceAWS Elemental Inferenceaws-elemental-inferenceawsai-serviceAmazon Forecastaws-forecastawsai-serviceAmazon Fraud Detectoraws-fraud-detectorawsai-serviceAWS HealthScribeaws-healthscribeawsai-serviceAmazon Lex botaws-lexawsai-serviceAmazon Lookout for Equipmentaws-lookout-for-equipmentawsai-serviceAmazon Lookout for Metricsaws-lookout-for-metricsawsai-serviceAmazon Lookout for Visionaws-lookout-for-visionawsai-serviceAmazon Personalizeaws-personalizeawsai-serviceAmazon Pollyaws-pollyawsai-serviceAmazon Q Businessaws-q-businessawsai-serviceAmazon Rekognitionaws-rekognitionawsai-serviceAmazon Textractaws-textractawsai-serviceAmazon Transcribeaws-transcribeawsai-serviceAmazon Translateaws-translateawsai-serviceContent Safetyazure-ai-content-safetyazureai-serviceAzure AI Custom Visionazure-ai-custom-visionazureai-serviceAzure AI Faceazure-ai-faceazureai-serviceAzure Languageazure-ai-languageazureai-serviceAzure Speechazure-ai-speechazureai-serviceAzure Translatorazure-ai-translatorazureai-serviceAzure Visionazure-ai-visionazureai-serviceAzure Content Understandingazure-content-understandingazureai-serviceMicrosoft Discoveryazure-discoveryazureai-serviceAzure Document Intelligenceazure-document-intelligenceazureai-serviceFoundry Agent Serviceazure-foundry-agent-serviceazureai-serviceFoundry Modelsazure-foundry-modelsazureai-serviceAzure AI Immersive Readerazure-immersive-readerazureai-service
and 85 more → AI service page
Source
# yaml-language-server: $schema=../../schema/component.schema.json
# xAI API: hosted Grok models for chat, reasoning, vision and image generation over a public endpoint.
# Per "FAQ - API Security", inputs and outputs are kept 30 days for auditing and not used for training;
# Zero Data Retention is off until a team admin enables it, and us.api.x.ai keeps processing in the US.
# Per "Consumption and Rate Limits", new teams start on Tier 0 and tiers rise with cumulative spend.
schemaVersion: "1"
type: "component"
id: "xai-api"
kind: "ai-service"
provider: "default"
docs: "https://docs.x.ai/developers/faq/security"
aliases: ["Grok API"]
defaults:
  auth: "api-key"
  managed: true
  modality: "multimodal"
  publicEndpoint: true
  dataRetentionDays: 30
  dataResidency: "global"
properties:
  usageTier:
    type: "enum"
    values: ["tier-0", "tier-1", "tier-2", "tier-3", "tier-4", "enterprise"]
    default: "tier-0"
  zeroDataRetention:
    type: "boolean"
    default: false
  regionalEndpoint:
    type: "enum"
    values: ["global", "us"]
    default: "global"

The same page as markdown, for an agent: /catalogue/components/xai-api.md