xAI API
Hosted Grok models for chat, reasoning, vision and image generation.
- Provider
- default
- Kind
- AI service
- Category
- Compute
- Official docs
- https://docs.x.ai/developers/faq/security
- Also known as
- Grok API
| property | type | values | required | kind default | this component |
|---|---|---|---|---|---|
| auth | enum | api-key | oauth | iam | none | no | — | ▸ api-key |
| contentFiltering | boolean | — | no | — | inherited |
| customerManagedKeys | boolean | — | no | — | inherited |
| dataResidency | enum | us | eu | asia | global | no | — | ▸ global |
| dataRetentionDays | integer | — | no | — | ▸ 30 |
| keyStore | boolean | — | no | false | inherited |
| managed | boolean | — | no | false | ▸ true |
| modality | enum | text | vision | speech | multimodal | structured | image | video | audio | embedding | rerank | no | — | ▸ multimodal |
| publicEndpoint | boolean | — | no | — | ▸ true |
| quotaUnitsPerMinute | integer | — | no | — | inherited |
| rateLimitRpm | integer | — | no | — | inherited |
| rateLimitTpm | integer | — | no | — | inherited |
| regionalEndpoint | enum | global | us | no | global | inherited |
| usageTier | enum | tier-0 | tier-1 | tier-2 | tier-3 | tier-4 | enterprise | no | tier-0 | inherited |
| viaGateway | boolean | — | no | false | inherited |
| zeroDataRetention | boolean | — | no | false | inherited |
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.
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
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
nodes:
- { id: "xai-api", component: "xai-api" }# 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"