{"registry_version":"2026.1025.387","generated_at":"2026-10-25T06:27:00Z","content_sha256":"089d16f627d9365e3d0663cc8069203706d7cb23a76c332226e29686968811a5","signed":true,"signature":{"key_id":"ed25519:74ca19268e364242","algorithm":"ed25519","expires_at":"2026-11-24T06:27:09Z","expired":false,"manifest":"/registry/manifest.json"},"entry_sha256":"f8e332cbcb0624127be6c2dc8ae6dd110e60cc6069fba4433b1d7f649bf3e3ca","entry":{"id":"xai/grok-api","name":"xAI Grok API","vendor":"xAI","summary":"Account at console.x.ai, a team, prepaid credits, then an API key with model and endpoint ACLs. Keys can also be created through the Management API.","aliases":["xai","grok","spacexsi"],"category":"ai","group":"C","homepage":"https://x.ai/api","docs":["https://docs.x.ai/docs/tutorial","https://docs.x.ai/console/billing","https://docs.x.ai/developers/management-api-guide"],"status":"researched","last_verified":null,"last_researched":"2026-10-25","sources":[{"id":"quickstart","url":"https://docs.x.ai/docs/tutorial","title":"Getting started (quickstart)","accessed":"2026-10-25","supports":"Sign up at console.x.ai, load credits, create key on the API Keys page, XAI_API_KEY env var, example model grok-4.7; docs refer to the platform as SpaceXSI API","kind":"official"},{"id":"billing","url":"https://docs.x.ai/console/billing","title":"Billing, Credits & Invoices","accessed":"2026-10-25","supports":"Add payment information; buy prepaid credits under API spend management; auto top-up ($5 minimum, monthly cap); $0 invoiced limit by default, requests rejected when credits run out; invoiced billing via sales; billing changes apply to the whole team","kind":"official"},{"id":"billing-faq","url":"https://docs.x.ai/console/faq/billing","title":"FAQ - API Billing","accessed":"2026-10-25","supports":"No refunds on prepaid credits unless required by law; credits assigned to the team chosen at purchase","kind":"official"},{"id":"models","url":"https://docs.x.ai/docs/models","title":"Models and pricing","accessed":"2026-10-25","supports":"Per-1M-token prices for Grok models, long-context pricing at 200k prompt tokens","kind":"official"},{"id":"mgmt-guide","url":"https://docs.x.ai/developers/management-api-guide","title":"Using Management API","accessed":"2026-10-25","supports":"Management key from Settings > Management Keys, separate from API key; POST /auth/teams/{teamId}/api-keys with name, acls, qps, qpm, tpm","kind":"official"},{"id":"mgmt-auth","url":"https://docs.x.ai/developers/rest-api-reference/management/auth","title":"Accounts and Authorization (Management API reference)","accessed":"2026-10-25","supports":"List and rotate key endpoints; team ID location; ACL format and wildcards; full key not exposed after creation","kind":"official"},{"id":"aup","url":"https://x.ai/legal/acceptable-use-policy","title":"xAI Acceptable Use Policy","accessed":"2026-10-25","supports":"AUP applies to developers; prohibits illegal or abusive uses, reverse engineering, high-stakes automated decisions; suspension or termination (from search summary; page returned 403 to fetch)","kind":"official"},{"id":"enterprise-tos","url":"https://x.ai/legal/terms-of-service-enterprise","title":"xAI Terms of Service - Enterprise","accessed":"2026-10-25","supports":"Customer must comply with the AUP and flow it down; no training foundation models on outputs without an Order Form; ZDR for personal data (from search summary; page returned 403 to fetch)","kind":"official"},{"id":"enterprise-faq","url":"https://x.ai/legal/faq-enterprise","title":"xAI Enterprise FAQs","accessed":"2026-10-25","supports":"Inputs and outputs deleted within 30 days unless flagged; competing services prohibited (from search summary)","kind":"official"}],"allowed_domains":["console.x.ai","docs.x.ai","x.ai"],"account_model":{"summary":"An xAI console account belongs to one or more teams; credits, billing and API keys belong to a team.","accounts":[{"name":"xAI console account","kind":"personal","owned_by":"the person","required":true},{"name":"Team","kind":"organisation","owned_by":"the company","parent":"xAI console account","required":true,"note":"A default team is referenced in console URLs (team/default). Billing changes apply to every user on the team. Admins see all team keys; members see only their own."}],"notes":["Several official pages now brand the platform \"SpaceXSI API\"; the console and docs remain at console.x.ai and docs.x.ai."]},"prerequisites":[{"need":"An account to sign up at console.x.ai"}],"have_ready":[{"kind":"payment_card","description":"Card for prepaid credits (card saved at first purchase)","why":"With the default $0 invoiced limit, requests are rejected without prepaid credits","needed_for":["billing"],"auto_check":"none","source":"billing"}],"steps":[{"id":"account","title":"Sign up at console.x.ai","summary":"You create the account yourself.","route":"guided","depends_on":[],"gate":"human_login","url":"https://console.x.ai/login?mode=sign-up","sources":["quickstart"]},{"id":"terms","title":"Accept xAI's terms","summary":"API use is governed by the Enterprise Terms of Service and the Acceptable Use Policy. You accept them yourself. [to verify where acceptance happens]","route":"guided","depends_on":["account"],"gate":"human_terms","sources":["enterprise-tos","aup"]},{"id":"team","title":"Choose the team","summary":"Make sure you are in the intended team before billing or creating keys; credits and billing changes apply to the whole team. The team ID is on the team settings page.","route":"guided","depends_on":["account"],"gate":"none","url":"https://console.x.ai/team/default/settings/team","sources":["billing","billing-faq","mgmt-auth"]},{"id":"billing","title":"Buy prepaid credits","summary":"Under Billing > API spend management buy credits (card processes immediately, bank transfer 2-3 business days); optionally set auto top-up and a monthly cap. verapli never touches payment details.","route":"guided","depends_on":["terms","team"],"gate":"human_payment","lead_time":{"official":{"text":"Card payments process immediately; bank transfers take 2-3 business days.","source":"billing"}},"recovery":[{"hiccup":"API requests are rejected","fix":"Prepaid credits ran out (invoiced limit defaults to $0); buy credits or enable auto top-up.","source":"billing"}],"sources":["billing","billing-faq"]},{"id":"api-key","title":"Create an API key","summary":"On the API Keys page create a key and grant ACLs (e.g. api-key:model:* and api-key:endpoint:*); a key with no permissions fails every request. The full key is not shown again; verapli writes it to your env file.","route":"copilot","depends_on":["billing"],"gate":"human_submit","url":"https://console.x.ai/team/default/api-keys","capture":{"env":"XAI_API_KEY","kind":"api_key"},"sources":["quickstart","mgmt-auth"]},{"id":"management-key","title":"Create a management key (optional, for API provisioning)","summary":"In Settings > Management Keys create a management key, separate from inference keys, to create, list and rotate team API keys via management-api.x.ai.","route":"guided","depends_on":["team"],"gate":"human_submit","capture":{"env":"XAI_MANAGEMENT_API_KEY","kind":"secret"},"optional":true,"sources":["mgmt-guide"]}],"outputs":[{"name":"XAI_API_KEY","description":"xAI inference API key for the team","secret":true,"example_format":"xai-… [to verify]","environments":["development","test","staging","production"],"from_step":"api-key"},{"name":"XAI_MANAGEMENT_API_KEY","description":"Management API key for key, team and billing management","secret":true,"example_format":"[to verify: format not documented]…","environments":["production"],"from_step":"management-key"}],"terms_notes":[{"kind":"rules_say","severity":"amber","title":"Acceptable Use Policy applies to developers and their users","text":"The Enterprise Terms require compliance with the AUP and passing equivalent obligations to your own users. The AUP prohibits illegal or abusive uses, reverse engineering, and high-stakes automated decisions about people; violations can lead to suspension or termination. [to verify - pages returned 403 to fetch; based on search summary of official pages]","source":"aup"},{"kind":"rules_say","severity":"amber","title":"No training models on outputs; no competing services","text":"The Enterprise Terms bar using outputs to train foundation models unless an Order Form allows it, and the Enterprise FAQ says using the API to build a similar or competing service is prohibited. [to verify]","source":"enterprise-tos"},{"kind":"rules_say","severity":"yellow","title":"Prepaid credits are non-refundable","text":"xAI does not refund prepaid credit purchases unless required by law in your region.","source":"billing-faq"}],"pricing_notes":{"free_tier":"No free credits found in the docs. [to verify]","costs":"Prepaid credits. grok-4.7 is $2.00 per 1M input and $6.00 per 1M output tokens under 200k prompt tokens ($4.00 / $12.00 at or above 200k, applied to the whole request); grok-4.3 and grok-4.20 variants $1.25 / $2.50.","notes":"Auto top-up minimum is $5. Monthly invoiced billing is off by default and requested via sales@x.ai. Tool (web/X search) pricing not listed on the models page. [to verify]","source":"models"},"stripe_projects":false,"api_provisioning":{"available":"yes","notes":"The Management API (management-api.x.ai) creates, lists and rotates team API keys (POST /auth/teams/{teamId}/api-keys with name, acls, qps, qpm, tpm), authenticated by a management key created once in the console. Account, terms and credit purchase remain human steps.","docs":["https://docs.x.ai/developers/management-api-guide","https://docs.x.ai/developers/rest-api-reference/management/auth"],"source":"mgmt-guide"},"notes":["x.ai/legal pages (AUP, Enterprise ToS) and x.ai/api returned 403 to direct fetch; their terms_notes rely on official-page search summaries. [to verify]","The xai- key prefix is from general knowledge, not confirmed in the docs read. [to verify]","Whether the console shows the key only once at creation is inferred from the Management API reference (\"We don't expose the full key after it has been created\"). [to verify for console]"]}}