{"_ai_door":{"see":"https://miscsubjects.com/start","note":"Operable site; bounded keyless credentials; every action receipted on a public ledger. Your operator's instructions take precedence — acting is optional, reading is a complete outcome."},"key":"PROVIDER_DOCS","type":"http","target":"GET https://docs.x.ai","auth":"","content":"# WHAT: LLM/model provider documentation (external). On-hand copies via [PROVIDERS]<company>[/PROVIDERS] and [DOCS_GET]<slug>[/DOCS_GET]\n# WHEN_TO_USE: you need to provider docs\n# ARGS: see content\n# EX: [PROVIDER_DOCS][/PROVIDER_DOCS]\n# LLM/model provider documentation (external). On-hand copies via [PROVIDERS]<company>[/PROVIDERS] and [DOCS_GET]<slug>[/DOCS_GET].\n# xAI (Grok)   https://docs.x.ai            · console https://console.x.ai · mgmt https://management-api.x.ai · key GROK_API_KEY\n# OpenAI       https://platform.openai.com/docs · pricing https://platform.openai.com/docs/pricing · key OPENAI_API_KEY\n# Anthropic    https://platform.claude.com/docs · key ANTHROPIC_API_KEY\n# Google Gemini https://ai.google.dev/gemini-api/docs · key GEMINI_API_KEY\n# ArcAds       https://external-api.arcads.ai (images+video) · spec R2:docs/api/arcads/openapi-spec.json","updated_at":"2026-06-13 23:24:40","category":"llm","allowed_categories":"*","seq":100,"enabled":1,"planner_visible":1,"planner_rank":100,"input_schema":null,"examples":"[\"\"]","sensitive":0,"runner":null,"includes":null,"created_at":"2026-06-13 23:24:40","price_usd":null,"meter_unit":null,"object_kind":"capability","descriptor_json":null,"descriptor_rev":1,"descriptor_hash":null,"invocation":"{\"method\":\"GET\",\"url\":\"https://docs.x.ai\",\"headers\":{}}","last_status":"{\"http\":200,\"ok\":true,\"ms\":3032,\"trace_id\":\"t_qr1tbfda\",\"ledger\":\"/admin/ledger?trace_id=t_qr1tbfda\",\"error\":null,\"at\":\"2026-09-06T10:40:46.837Z\",\"actor\":\"directory-test\"}","last_response":"HTTP 200:<!DOCTYPE html><html data-dpl-id=\"fab810550d06fd6c28e54e6079cac6c27f35ea13\" lang=\"en\" class=\"universalsans_7450c837-module__q3q6RG__variable universalsansdisplay_994e610b-module__1SkMda__variable geistmono_157ca88a-module__JpCrfG__variable bg-surface-base antialiased\"><head><meta charSet=\"utf-8\"/><meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"/><link rel=\"preload\" href=\"/_next/static/media/GeistMono_Variable.p.42jdkyb02hb3d.woff2?dpl=fab810550d06fd6c28e54e6079cac6c27f35ea13\" as=\"font\" crossorigin=\"\" type=\"font/woff2\"/><link rel=\"preload\" href=\"/_next/static/media/UniversalSans_Display_400-s.p.0wwhol2x4qvj6.woff2?dpl=fab810550d06fd6c28e54e6079cac6c27f35ea13\" as=\"font\" crossorigin=\"\" type=\"font/woff2\"/><link rel=\"preload\" href=\"/_next/static/media/UniversalSans_Display_400Italic-s.p.17qzcep5otu8-.woff2?dpl=fab810550d06fd6c28e54e6079cac6c27f35ea13\" as=\"font\" crossorigin=\"\" type=\"font/woff2\"/><link rel=\"preload\" href=\"/_next/static/media/UniversalSans_Display_550-s.p.1d_5desmfkuzx.woff2?dpl=fab810550d06fd6c28e54e6079cac6c27f35ea13\" as=\"font\" crossorigin=\"\" type=\"font/woff2\"/><link rel=\"preload\" href=\"/_next/static/media/UniversalSans_Display_550Italic-s.p.11p3ptm7gqy78.woff2?dpl=fab810550d06fd6c28e54e6079cac6c27f35ea13\" as=\"font\" crossorigin=\"\" type=\"font/woff2\"/><link rel=\"preload\" href=\"/_next/static/media/UniversalSans_Text_400-s.p.0kzgqcuw2bgx3.woff2?dpl=fab810550d06fd6c28e54e6079cac6c27f35ea13\" as=\"font\" crossorigin=\"\" type=\"font/woff2\"/><link rel=\"preload\" href=\"/_next/static/media/UniversalSans_Text_400Italic-s.p.2is42k878j3i9.woff2?dpl=fab810550d06fd6c28e54e6079cac6c27f35ea13\" as=\"font\" crossorigin=\"\" type=\"font/woff2\"/><link rel=\"preload\" href=\"/_next/static/media/UniversalSans_Text_550-s.p.2oz54pkhn1rbr.woff2?dpl=fab810550d06fd6c28e54e6079cac6c27f35ea13\" as=\"font\" crossorigin=\"\" type=\"font/woff2\"/><link rel=\"preload\" href=\"/_next/static/media/UniversalSans_Text_550Italic-s.p.3n2l4wgmzkamv.woff2?dpl=fab810550d06fd6c28e54e6079cac6c27f35ea13\" as=\"font\" crossorigin=\"\" type=\"font/woff2\"/><link rel=\"stylesheet\" href=\"/_next/static/chunks/36zjw-pabawvs.css?dpl=fab810550d06fd6c28e54e6079cac6c27f35ea13\" data-precedence=\"next\"/><link rel=\"stylesheet\" href=\"/_next/static/chunks/0mymor6ei_ilb.css?dpl=fab810550d06fd6c28e54e6079cac6c27f35ea13\" data-precedence=\"next\"/><link rel=\"stylesheet\" href=\"/_next/static/chunks/2ubbd4y9mo9nc.css?dpl=fab810550d06fd6c28e54e6079cac6c27f35ea13\" data-precedence=\"next\"/><link rel=\"stylesheet\" href=\"/_next/static/chunks/0fywvms8qa4xy.css?dpl=fab810550d06fd6c28e54e6079cac6c27f35ea13\" data-precedence=\"next\"/><link rel=\"preload\" as=\"script\" fetchPriority=\"low\" href=\"/_next/static/chunks/3296fbd2fb4oq.js?dpl=fab810550d06fd6c28e54e6079cac6c27f35ea13\"/><script src=\"/_next/static/chunks/04a-rpqo4d4fc.js?dpl=fab810550d06fd6c28e54e6079cac6c27f35ea13\" async=\"\"></script><script src=\"/_next/static/chunks/1r1u_0cs99-64.js?dpl=fab810550d06fd6c28e54e6079cac6c27f35ea13\" async=\"\"></script><script src=\"/_next/static/chunks/3atkklik2-jwn.js?dpl=fab810550d06fd6c28e54e6079cac6c27f35ea13\" async=\"\"></script><script src=\"/_next/static/chunks/3i_522kdtg9ch.js?dpl=fab810550d06fd6c28e54e6079cac6c27f35ea13\" async=\"\"></script><script src=\"/_next/static/chunks/2luy1ilzyhb3z.js?dpl=fab810550d06fd6c28e54e6079cac6c27f35ea13\" async=\"\"></script><script src=\"/_next/static/chunks/turbopack-2hr28k39cusk0.js?dpl=fab810550d06fd6c28e54e6079cac6c27f35ea13\" async=\"\"></script><script src=\"/_next/static/chunks/1jiu_-6vkawpg.js?dpl=fab810550d06fd6c28e54e6079cac6c27f35ea13\" async=\"\"></script><script src=\"/_next/static/chunks/1_lpgowx4nl4j.js?dpl=fab810550d06fd6c28e54e6079cac6c27f35ea13\" async=\"\"></script><script src=\"/_next/static/chunks/0s54-mk8_nqyx.js?dpl=fab810550d06fd6c28e54e6079cac6c27f35ea13\" async=\"\"></script><script src=\"/_next/static/chunks/31iacjdvn34ug.js?dpl=fab810550d06fd6c28e54e6079cac6c27f35ea13\" async=\"\"></script><script src=\"/_next/static/chunks/1fv-ob86s2si3.js?dpl=fab810550d06fd6c28e54e6079cac6c27f35ea13\" async=\"\"></script><script src=\"/_next/static/chunks/1kfl5_jwude9p.js?dpl=fab810550d06fd6c28e54e6079cac6c27f35ea13\" async=\"\"></script><script src=\"/_next/static/chunks/1_fjqjsm3h4wm.js?dpl=fab810550d06fd6c28e54e6079cac6c27f35ea13\" async=\"\"></script><script src=\"/_next/static/chunks/2i3p8ll_bdwjw.js?dpl=fab810550d06fd6c28e54e6079cac6c27f35ea13\" async=\"\"></script><script src=\"/_next/static/chunks/34fg5wg5xpvlt.js?dpl=fab810550d06fd6c28e54e6079cac6c27f35ea13\" async=\"\"></script><script src=\"/_next/static/chunks/0v489kz4w4dwy.js?dpl=fab810550d06fd6c28e54e6079cac6c27f35ea13\" async=\"\"></script><script src=\"/_next/static/chunks/06ssm7qxeq66h.js?dpl=fab810550d06fd6c28e54e6079cac6c27f35ea13\" async=\"\"></script><script src=\"/_next/static/chunks/2u7lg71svyx0k.js?dpl=fab810550d06fd6c28e54e6079cac6c27f35ea13\" async=\"\"></script><script src=\"/_next/static/chunks/2mryhdk57j3tj.js?dpl=fab810550d06fd6c28e54e6079cac6c27f35ea13\" async=\"\"></script><script src=\"/_next/static/chunks/41eydz5ewru1s.js?dpl=fab810550d06fd6c28e54e6079cac6c27f35ea13\" async=\"\"></script><script src=\"/_next/static/chunks/3a6yjswhk5tnl.js?dpl=fab810550d06fd6c28e54e6079cac6c27f35ea13\" async=\"\"></script><script src=\"/_next/static/chunks/255n0oquc8p32.js?dpl=fab810550d06fd6c28e54e6079cac6c27f35ea13\" async=\"\"></script><script src=\"/_next/static/chunks/3s4jna0y5-xe-.js?dpl=fab810550d06fd6c28e54e6079cac6c27f35ea13\" async=\"\"></script><script src=\"/_next/static/chunks/1n2ulclhb1-0n.js?dpl=fab810550d06fd6c28e54e6079cac6c27f35ea13\" async=\"\"></script><script src=\"/_next/static/chunks/3-abprbqv3sil.js?dpl=fab810550d06fd6c28e54e6079cac6c27f35ea13\" async=\"\"></script><script src=\"/_next/static/chunks/0mksqthsm492j.js?dpl=fab810550d06fd6c28e54e6079cac6c27f35ea13\" async=\"\"></script><script src=\"/_next/static/chunks/1cyj--z9f_8ir.js?dpl=fab810550d06fd6c28e54e6079cac6c27f35ea13\" async=\"\"></script><script src=\"/_next/static/chunks/3mf0r21kais33.js?dpl=fab810550d06fd6c28e54e6079cac6c27f35ea13\" async=\"\"></script><script src=\"/_next/static/chunks/3tgptpjw-sba-.js?dpl=fab810550d06fd6c28e54e6079cac6c27f35ea13\" async=\"\"></script><script src=\"/_next/static/chunks/3ve2evvl16y04.js?dpl=fab810550d06fd6c28e54e6079cac6c27f35ea13\" async=\"\"></script><script src=\"/_next/static/chunks/1v2g_0vuga1on.js?dpl=fab810550d06fd6c28e54e6079cac6c27f35ea13\" async=\"\"></script><script src=\"/_next/static/chunks/42co2vi5tkv47.js?dpl=fab810550d06fd6c28e54e6079cac6c27f35ea13\" async=\"\"></script><script src=\"/_next/static/chunks/0jokscb_ehcsz.js?dpl=fab810550d06fd6c28e54e6079cac6c27f35ea13\" async=\"\"></script><script src=\"/_next/static/chunks/3kb3znkewyye3.js?dpl=fab810550d06fd6c28e54e6079cac6c27f35ea13\" async=\"\"></script><meta name=\"next-size-adjust\" content=\"\"/><title>Grok API Documentation | SpaceXAI Docs</title><meta name=\"description\" content=\"Official SpaceXAI API documentation. Build with Grok: chat, image and video generation, voice, tool calling, and structured outputs. Quickstarts, guides, and API reference.\"/><link rel=\"canonical\" href=\"https://docs.x.ai/overview\"/><meta property=\"og:title\" content=\"Grok API Documentation | SpaceXAI Docs\"/><meta property=\"og:description\" content=\"Official SpaceXAI API documentation. Build with Grok: chat, image and video generation, voice, tool calling, and structured outputs. Quickstarts, guides, and API reference.\"/><meta property=\"og:image\" content=\"https://docs.x.ai/api/og?t=eyJ0aXRsZSI6Ikdyb2sgQVBJIERvY3VtZW50YXRpb24iLCJ2IjoiNiIsInNlY3Rpb24iOiJEZXZlbG9wZXJzIn0.OpdmLpFeqlHNCL8c32avlHsKUNSqmKNImouQYfhtkYo\"/><meta name=\"twitter:card\" content=\"summary_large_image\"/><meta name=\"twitter:title\" content=\"Grok API Documentation | SpaceXAI Docs\"/><meta name=\"twitter:description\" content=\"Official SpaceXAI API documentation. Build with Grok: chat, image and video generation, voice, tool calling, and structured outputs. Quickstarts, guides, and API reference.\"/><meta name=\"twitter:image\" content=\"https://docs.x.ai/api/og?t=eyJ0aXRsZSI6Ikdyb2sgQVBJIERvY3VtZW50YXRpb24iLCJ2IjoiNiIsInNlY3Rpb24iOiJEZXZlbG9wZXJzIn0.OpdmLpFeqlHNCL8c32avlHsKUNSqmKNImouQYfhtkYo\"/><link rel=\"icon\" href=\"/_next/static/media/favicon-light.1u6watcuoe8mg.svg?dpl=fab810550d06fd6c28e54e6079cac6c27f35ea13\" media=\"(prefers-color-scheme: light)\" type=\"image/svg+xml\"/><link rel=\"icon\" href=\"/_next/static/media/favicon-dark.0-f2gt9doy0_1.svg?dpl=fab810550d06fd6c28e54e6079cac6c27f35ea13\" media=\"(prefers-color-scheme: dark)\" type=\"image/svg+xml\"/><meta name=\"sentry-trace\" content=\"d436f94eb2494a9da529fb94a07fd762-9f5ccf5eebcc99af-0\"/><meta name=\"baggage\" content=\"sentry-environment=production,sentry-release=docs%40fab810550d06fd6c28e54e6079cac6c27f35ea13,sentry-public_key=87bfcb1b7e565f75c852ebb00d0c31d4,sentry-trace_id=d436f94eb2494a9da529fb94a07fd762,sentry-org_id=4508179396558848,sentry-sampled=false,sentry-sample_rand=0.03604555074416227,sentry-sample_rate=0\"/><script src=\"/_next/static/chunks/0cz1d0mv5g_q7.js?dpl=fab810550d06fd6c28e54e6079cac6c27f35ea13\" noModule=\"\"></script></head><body class=\"min-h-dvh font-sans\"><div hidden=\"\"><!--$--><!--/$--></div><script>globalThis.__XAI_PUBLIC_MODELS__={\"clusterConfigs\":[{\"languageModels\":[{\"name\":\"grok-4.20-0309-non-reasoning\",\"version\":\"1.0\",\"inputModalities\":[\"TEXT\",\"IMAGE\"],\"outputModalities\":[\"TEXT\"],\"promptTextTokenPrice\":\"12500\",\"promptImageTokenPrice\":\"12500\",\"promptTextTokenPriceLongContext\":\"25000\",\"cachedPromptTokenPrice\":\"2000\",\"cachedPromptTokenPriceLongContext\":\"4000\",\"completionTextTokenPrice\":\"25000\",\"completionTokenPriceLongContext\":\"50000\",\"rps\":\"37\",\"rpm\":\"1800\",\"tpm\":\"10000000\",\"cluster\":\"us-east-1\",\"maxPromptLength\":1000000,\"aliases\":[\"grok-4.20-non-reasoning\",\"grok-4.20-non-reasoning-latest\",\"grok-4.20-beta-non-reasoning\",\"grok-4.20-beta-latest-non-reasoning\",\"grok-4.20-experimental-beta-0304-non-reasoning\",\"grok-4.20-experimental-beta-non-reasoning-latest\",\"grok-4.20-beta-0309-non-reasoning\",\"grok-4.20-non-reasoning-gv2\"],\"features\":{\"functionCalling\":true,\"structuredOutputs\":true},\"algorithm\":\"grokSlopNonThinking\",\"longContextThreshold\":\"200000\",\"rateLimits\":{\"queryOffset\":\"1200\",\"queryBaseRate\":\"600\",\"queryMultiplier\":\"2\",\"tokenOffset\":\"5000000\",\"tokenBaseRate\":\"5000000\",\"tokenMultiplier\":\"2\"},\"batchDiscountPercent\":20,\"provisionedThroughput\":{\"tokensPerInputUnit\":\"5000\",\"tokensPerOutputUnit\":\"2500\"},\"batchEnabled\":true},{\"name\":\"grok-4.20-0309-reasoning\",\"version\":\"1.0\",\"inputModalities\":[\"TEXT\",\"IMAGE\"],\"outputModalities\":[\"TEXT\"],\"promptTextTokenPrice\":\"12500\",\"promptImageTokenPrice\":\"12500\",\"promptTextTokenPriceLongContext\":\"25000\",\"cachedPromptTokenPrice\":\"2000\",\"cachedPromptTokenPriceLongContext\":\"4000\",\"completionTextTokenPrice\":\"25000\",\"completionTokenPriceLongContext\":\"50000\",\"rps\":\"37\",\"rpm\":\"1800\",\"tpm\":\"10000000\",\"cluster\":\"us-east-1\",\"maxPromptLength\":1000000,\"aliases\":[\"grok-4.20-reasoning-latest\",\"grok-4.20\",\"grok-4.20-reasoning\",\"grok-4.20-0309\",\"grok-4.20-beta-0309-reasoning\",\"grok-4.20-beta\",\"grok-4.20-beta-0309\",\"grok-4.20-beta-latest\",\"grok-4.20-beta-latest-reasoning\",\"grok-4.20-beta-reasoning\",\"grok-4.20-experimental-beta-0304-reasoning\",\"grok-4.20-experimental-beta-0304\",\"grok-4.20-experimental-beta-reasoning-latest\",\"grok-4.20-experimental-beta-latest\",\"grok-4.20-reasoning-gv2\"],\"features\":{\"functionCalling\":true,\"structuredOutputs\":true,\"reasoning\":true},\"algorithm\":\"grokSlop\",\"longContextThreshold\":\"200000\",\"rateLimits\":{\"queryOffset\":\"1200\",\"queryBaseRate\":\"600\",\"queryMultiplier\":\"2\",\"tokenOffset\":\"5000000\",\"tokenBaseRate\":\"5000000\",\"tokenMultiplier\":\"2\"},\"batchDiscountPercent\":20,\"provisionedThroughput\":{\"tokensPerInputUnit\":\"5000\",\"tokensPerOutputUnit\":\"2500\"},\"batchEnabled\":true},{\"name\":\"grok-4.3\",\"version\":\"1.0\",\"inputModalities\":[\"TEXT\",\"IMAGE\"],\"outputModalities\":[\"TEXT\"],\"promptTextTokenPrice\":\"12500\",\"promptImageTokenPrice\":\"12500\",\"promptTextTokenPriceLongContext\":\"25000\",\"cachedPromptTokenPrice\":\"2000\",\"cachedPromptTokenPriceLongContext\":\"4000\",\"completionTextTokenPrice\":\"25000\",\"completionTokenPriceLongContext\":\"50000\",\"rps\":\"37\",\"rpm\":\"1800\",\"tpm\":\"10000000\",\"cluster\":\"us-east-1\",\"maxPromptLength\":1000000,\"aliases\":[\"grok-4.3-latest\"],\"features\":{\"functionCalling\":true,\"structuredOutputs\":true,\"reasoning\":true,\"reasoningEffortOptions\":{\"supportedEfforts\":[\"none\",\"low\",\"medium\",\"high\",\"xhigh\"],\"defaultEffort\":\"low\"}},\"algorithm\":\"grokSlop\",\"longContextThreshold\":\"200000\",\"rateLimits\":{\"queryOffset\":\"1200\",\"queryBaseRate\":\"600\",\"queryMultiplier\":\"2\",\"tokenOffset\":\"5000000\",\"tokenBaseRate\":\"5000000\",\"tokenMultiplier\":\"2\"},\"batchDiscountPercent\":20,\"provisionedThroughput\":{\"tokensPerInputUnit\":\"5000\",\"tokensPerOutputUnit\":\"2500\"},\"batchEnabled\":true},{\"name\":\"grok-4.5\",\"version\":\"1.0\",\"inputModalities\":[\"TEXT\",\"IMAGE\"],\"outputModalities\":[\"TEXT\"],\"promptTextTokenPrice\":\"20000\",\"promptImageTokenPrice\":\"20000\",\"promptTextTokenPriceLongContext\":\"40000\",\"cachedPromptTokenPrice\":\"3000\",\"cachedPromptTokenPriceLongContext\":\"6000\",\"completionTextTokenPrice\":\"60000\",\"completionTokenPriceLongContext\":\"120000\",\"rps\":\"150\",\"rpm\":\"7200\",\"tpm\":\"50000000\",\"cluster\":\"us-east-1\",\"maxPromptLength\":500000,\"aliases\":[\"grok-4.5-latest\",\"grok-build-latest\"],\"features\":{\"functionCalling\":true,\"structuredOutputs\":true,\"reasoning\":true,\"reasoningEffortOptions\":{\"supportedEfforts\":[\"low\",\"medium\",\"high\",\"xhigh\"],\"defaultEffort\":\"high\"}},\"algorithm\":\"grokSlop\",\"longContextThreshold\":\"200000\",\"rateLimits\":{\"queryOffset\":\"6080\",\"queryBaseRate\":\"1120\",\"queryMultiplier\":\"2\",\"tokenOffset\":\"46500000\",\"tokenBaseRate\":\"3500000\",\"tokenMultiplier\":\"2\"},\"batchDiscountPercent\":0,\"provisionedThroughput\":{\"tokensPerInputUnit\":\"3000\",\"tokensPerOutputUnit\":\"1000\"}},{\"name\":\"grok-4.20-multi-agent-0309\",\"version\":\"1.0\",\"inputModalities\":[\"TEXT\",\"IMAGE\"],\"outputModalities\":[\"TEXT\"],\"promptTextTokenPrice\":\"12500\",\"promptImageTokenPrice\":\"12500\",\"promptTextTokenPriceLongContext\":\"25000\",\"cachedPromptTokenPrice\":\"2000\",\"cachedPromptTokenPriceLongContext\":\"4000\",\"completionTextTokenPrice\":\"25000\",\"completionTokenPriceLongContext\":\"50000\",\"rps\":\"9\",\"rpm\":\"450\",\"tpm\":\"2500000\",\"cluster\":\"us-east-1\",\"maxPromptLength\":1000000,\"aliases\":[\"grok-4.20-multi-agent\",\"grok-4.20-multi-agent-latest\",\"grok-4.20-multi-agent-beta-latest\",\"grok-4.20-multi-agent-experimental-beta-0304\",\"grok-4.20-multi-agent-experimental-beta-latest\",\"grok-4.20-multi-agent-beta-0309\"],\"features\":{\"functionCalling\":true,\"structuredOutputs\":true,\"reasoning\":true},\"algorithm\":\"grokSlop\",\"longContextThreshold\":\"200000\",\"rateLimits\":{\"queryOffset\":\"300\",\"queryBaseRate\":\"150\",\"queryMultiplier\":\"2\",\"tokenOffset\":\"1250000\",\"tokenBaseRate\":\"1250000\",\"tokenMultiplier\":\"2\"},\"batchDiscountPercent\":20,\"provisionedThroughput\":{\"tokensPerInputUnit\":\"5000\",\"tokensPerOutputUnit\":\"2500\"},\"batchEnabled\":true},{\"name\":\"grok-build-0.1\",\"version\":\"1.0\",\"inputModalities\":[\"TEXT\",\"IMAGE\"],\"outputModalities\":[\"TEXT\"],\"promptTextTokenPrice\":\"10000\",\"promptImageTokenPrice\":\"10000\",\"promptTextTokenPriceLongContext\":\"20000\",\"cachedPromptTokenPrice\":\"2000\",\"cachedPromptTokenPriceLongContext\":\"4000\",\"completionTextTokenPrice\":\"20000\",\"completionTokenPriceLongContext\":\"40000\",\"rps\":\"37\",\"rpm\":\"1800\",\"tpm\":\"10000000\",\"cluster\":\"us-east-1\",\"maxPromptLength\":256000,\"aliases\":[\"grok-code-fast-1\",\"grok-code-fast\",\"grok-code-fast-1-0825\"],\"features\":{\"functionCalling\":true,\"structuredOutputs\":true,\"reasoning\":true},\"algorithm\":\"grokSlop\",\"longContextThreshold\":\"200000\",\"rateLimits\":{\"queryOffset\":\"1200\",\"queryBaseRate\":\"600\",\"queryMultiplier\":\"2\",\"tokenOffset\":\"5000000\",\"tokenBaseRate\":\"5000000\",\"tokenMultiplier\":\"2\"},\"batchDiscountPercent\":20,\"provisionedThroughput\":{\"tokensPerInputUnit\":\"6000\",\"tokensPerOutputUnit\":\"3000\"}},{\"name\":\"grok-4.6\",\"version\":\"1.0\",\"inputModalities\":[\"TEXT\",\"IMAGE\"],\"outputModalities\":[\"TEXT\"],\"promptTextTokenPrice\":\"20000\",\"promptImageTokenPrice\":\"20000\",\"promptTextTokenPriceLongContext\":\"40000\",\"cachedPromptTokenPrice\":\"5000\",\"cachedPromptTokenPriceLongContext\":\"10000\",\"completionTextTokenPrice\":\"60000\",\"completionTokenPriceLongContext\":\"120000\",\"rps\":\"150\",\"rpm\":\"7200\",\"tpm\":\"50000000\",\"cluster\":\"us-east-1\",\"maxPromptLength\":500000,\"features\":{\"functionCalling\":true,\"structuredOutputs\":true,\"reasoning\":true,\"reasoningEffortOptions\":{\"supportedEfforts\":[\"low\",\"medium\",\"high\",\"xhigh\"],\"defaultEffort\":\"high\"}},\"algorithm\":\"grokSlop\",\"longContextThreshold\":\"200000\",\"rateLimits\":{\"queryOffset\":\"6080\",\"queryBaseRate\":\"1120\",\"queryMultiplier\":\"2\",\"tokenOffset\":\"46500000\",\"tokenBaseRate\":\"3500000\",\"tokenMultiplier\":\"2\"},\"batchDiscountPercent\":0,\"provisionedThroughput\":{\"tokensPerInputUnit\":\"3000\",\"tokensPerOutputUnit\":\"1000\"}}],\"imageGenerationModels\":[{\"name\":\"grok-imagine-image-2.0\",\"version\":\"1.0\",\"inputModalities\":[\"TEXT\",\"IMAGE\"],\"outputModalities\":[\"IMAGE\"],\"imagePrice\":\"600000000\",\"rps\":\"6\",\"rpm\":\"300\",\"tpm\":\"9223372036854775807\",\"cluster\":\"us-east-1\",\"resolutionPricing\":[{\"resolution\":\"IMAGE_RESOLUTION_1K\",\"pricePerImage\":\"400000000\",\"quality\":\"low\"},{\"resolution\":\"IMAGE_RESOLUTION_2K\",\"pricePerImage\":\"600000000\",\"quality\":\"low\"},{\"resolution\":\"IMAGE_RESOLUTION_1K\",\"pricePerImage\":\"600000000\",\"quality\":\"medium\"},{\"resolution\":\"IMAGE_RESOLUTION_2K\",\"pricePerImage\":\"800000000\",\"quality\":\"medium\"}],\"pricePerInputImage\":\"100000000\",\"rateLimits\":{\"queryBaseRate\":\"300\",\"queryMultiplier\":\"2\"},\"batchEnabled\":true,\"supportedQualities\":[\"low\",\"medium\",\"auto\"],\"defaultQuality\":\"auto\"},{\"name\":\"grok-imagine-image-quality\",\"version\":\"1.0\",\"inputModalities\":[\"TEXT\",\"IMAGE\"],\"outputModalities\":[\"IMAGE\"],\"imagePrice\":\"500000000\",\"rps\":\"6\",\"rpm\":\"300\",\"tpm\":\"9223372036854775807\",\"cluster\":\"us-east-1\",\"aliases\":[\"grok-imagine-image-quality-20260403\",\"grok-imagine-image-quality-latest\",\"grok-imagine-image-pro\"],\"resolutionPricing\":[{\"resolution\":\"IMAGE_RESOLUTION_1K\",\"pricePerImage\":\"500000000\"},{\"resolution\":\"IMAGE_RESOLUTION_2K\",\"pricePerImage\":\"700000000\"}],\"pricePerInputImage\":\"100000000\",\"rateLimits\":{\"queryBaseRate\":\"300\",\"queryMultiplier\":\"2\"}},{\"name\":\"grok-imagine-image\",\"version\":\"1.0\",\"inputModalities\":[\"TEXT\",\"IMAGE\"],\"outputModalities\":[\"IMAGE\"],\"imagePrice\":\"200000000\",\"rps\":\"6\",\"rpm\":\"300\",\"tpm\":\"9223372036854775807\",\"cluster\":\"us-east-1\",\"aliases\":[\"grok-imagine-image-2026-03-02\"],\"resolutionPricing\":[{\"resolution\":\"IMAGE_RESOLUTION_1K\",\"pricePerImage\":\"200000000\"},{\"resolution\":\"IMAGE_RESOLUTION_2K\",\"pricePerImage\":\"200000000\"}],\"pricePerInputImage\":\"20000000\",\"rateLimits\":{\"queryBaseRate\":\"300\",\"queryMultiplier\":\"2\"},\"batchEnabled\":true}],\"audioModels\":[{\"name\":\"grok-tts\",\"version\":\"1.0\",\"inputModalities\":[\"TEXT\"],\"outputModalities\":[\"AUDIO\"],\"cluster\":\"us-east-1\",\"endpoints\":[{\"endpoint\":\"TTS\",\"basis\":\"REQUEST_RATE\",\"rps\":\"50\",\"rpm\":\"3000\",\"concurrentSessions\":\"100\",\"pricing\":{\"perCharacter\":\"150000\"},\"tiers\":[{\"rps\":\"50\",\"rpm\":\"3000\",\"concurrentSessions\":\"100\"},{\"tier\":1,\"rps\":\"50\",\"rpm\":\"3000\",\"concurrentSessions\":\"200\"},{\"tier\":2,\"rps\":\"100\",\"rpm\":\"6000\",\"concurrentSessions\":\"200\"},{\"tier\":3,\"rps\":\"250\",\"rpm\":\"15000\",\"concurrentSessions\":\"300\"},{\"tier\":4,\"rps\":\"500\",\"rpm\":\"30000\",\"concurrentSessions\":\"500\"},{\"tier\":5,\"rps\":\"1000\",\"rpm\":\"60000\",\"concurrentSessions\":\"500\"}]}]},{\"name\":\"grok-stt\",\"version\":\"1.0\",\"inputModalities\":[\"AUDIO\"],\"outputModalities\":[\"TEXT\"],\"cluster\":\"us-east-1\",\"endpoints\":[{\"endpoint\":\"STT\",\"basis\":\"REQUEST_RATE\",\"rps\":\"10\",\"rpm\":\"600\",\"concurrentSessions\":\"100\",\"pricing\":{\"perAudioSecond\":\"277778\",\"perAudioSecondStreaming\":\"555556\"},\"tiers\":[{\"rps\":\"10\",\"rpm\":\"600\",\"concurrentSessions\":\"100\"},{\"tier\":1,\"rps\":\"10\",\"rpm\":\"600\",\"concurrentSessions\":\"200\"},{\"tier\":2,\"rps\":\"20\",\"rpm\":\"1200\",\"concurrentSessions\":\"200\"},{\"tier\":3,\"rps\":\"30\",\"rpm\":\"1800\",\"concurrentSessions\":\"300\"},{\"tier\":4,\"rps\":\"40\",\"rpm\":\"2400\",\"concurrentSessions\":\"500\"},{\"tier\":5,\"rps\":\"50\",\"rpm\":\"3000\",\"concurrentSessions\":\"500\"}]}]},{\"name\":\"grok-voice-think-fast-2.0\",\"version\":\"1.0\",\"inputModalities\":[\"TEXT\",\"AUDIO\"],\"outputModalities\":[\"TEXT\",\"AUDIO\"],\"cluster\":\"us-east-1\",\"aliases\":[\"grok-voice-latest\"],\"endpoints\":[{\"endpoint\":\"REALTIME\",\"basis\":\"CONCURRENCY\",\"concurrentSessions\":\"10\",\"pricing\":{\"realtimeAudioTokenPrice\":\"266667\",\"realtimeTextInputPrice\":\"40000000\",\"pstnMinutePrice\":\"100000000\",\"realtimeAudioSecondPrice\":\"13333333\"},\"tiers\":[{\"concurrentSessions\":\"10\"},{\"tier\":1,\"concurrentSessions\":\"20\"},{\"tier\":2,\"concurrentSessions\":\"50\"},{\"tier\":3,\"concurrentSessions\":\"100\"},{\"tier\":4,\"concurrentSessions\":\"200\"},{\"tier\":5,\"concurrentSessions\":\"400\"}]}]},{\"name\":\"grok-voice-think-fast-1.0\",\"version\":\"1.0\",\"inputModalities\":[\"TEXT\",\"AUDIO\"],\"outputModalities\":[\"TEXT\",\"AUDIO\"],\"cluster\":\"us-east-1\",\"endpoints\":[{\"endpoint\":\"REALTIME\",\"basis\":\"CONCURRENCY\",\"concurrentSessions\":\"10\",\"pricing\":{\"realtimeAudioTokenPrice\":\"166667\",\"realtimeTextInputPrice\":\"40000000\",\"pstnMinutePrice\":\"100000000\",\"realtimeAudioSecondPrice\":\"8333333\"},\"tiers\":[{\"concurrentSessions\":\"10\"},{\"tier\":1,\"concurrentSessions\":\"20\"},{\"tier\":2,\"concurrentSessions\":\"50\"},{\"tier\":3,\"concurrentSessions\":\"100\"},{\"tier\":4,\"concurrentSessions\":\"200\"},{\"tier\":5,\"concurrentSessions\":\"400\"}]}]}],\"videoGenerationModels\":[{\"name\":\"grok-imagine-video\",\"version\":\"1.0\",\"inputModalities\":[\"TEXT\",\"IMAGE\",\"VIDEO\"],\"outputModalities\":[\"VIDEO\"],\"rps\":\"10\",\"rpm\":\"480\",\"tpm\":\"9223372036854775807\",\"cluster\":\"us-east-1\",\"resolutionPricing\":[{\"resolution\":\"VIDEO_RESOLUTION_480P\",\"pricePerSecond\":\"500000000\"},{\"resolution\":\"VIDEO_RESOLUTION_720P\",\"pricePerSecond\":\"700000000\"}],\"pricePerInputImage\":\"20000000\",\"pricePerInputVideoSecond\":\"100000000\",\"rateLimits\":{\"queryBaseRate\":\"480\",\"queryMultiplier\":\"2\"},\"batchEnabled\":true},{\"name\":\"grok-imagine-video-1.5\",\"version\":\"1.0\",\"inputModalities\":[\"TEXT\",\"IMAGE\",\"AUDIO\"],\"outputModalities\":[\"VIDEO\"],\"rps\":\"10\",\"rpm\":\"480\",\"tpm\":\"9223372036854775807\",\"cluster\":\"us-east-1\",\"aliases\":[\"grok-imagine-video-1.5-preview\",\"grok-imagine-video-1.5-2026-05-30\"],\"resolutionPricing\":[{\"resolution\":\"VIDEO_RESOLUTION_480P\",\"pricePerSecond\":\"800000000\"},{\"resolution\":\"VIDEO_RESOLUTION_720P\",\"pricePerSecond\":\"1400000000\"},{\"resolution\":\"VIDEO_RESOLUTION_1080P\",\"pricePerSecond\":\"2500000000\"}],\"pricePerInputImage\":\"100000000\",\"rateLimits\":{\"queryBaseRate\":\"480\",\"queryMultiplier\":\"2\"},\"batchEnabled\":true}],\"clusterName\":\"us-east-1\"},{\"languageModels\":[{\"name\":\"grok-4.3\",\"version\":\"1.0\",\"inputModalities\":[\"TEXT\",\"IMAGE\"],\"outputModalities\":[\"TEXT\"],\"promptTextTokenPrice\":\"12500\",\"promptImageTokenPrice\":\"12500\",\"promptTextTokenPriceLongContext\":\"25000\",\"cachedPromptTokenPrice\":\"2000\",\"cachedPromptTokenPriceLongContext\":\"4000\",\"completionTextTokenPrice\":\"25000\",\"completionTokenPriceLongContext\":\"50000\",\"rps\":\"37\",\"rpm\":\"1800\",\"tpm\":\"10000000\",\"cluster\":\"eu-west-1\",\"maxPromptLength\":1000000,\"aliases\":[\"grok-4.3-latest\"],\"features\":{\"functionCalling\":true,\"structuredOutputs\":true,\"reasoning\":true,\"reasoningEffortOptions\":{\"supportedEfforts\":[\"none\",\"low\",\"medium\",\"high\",\"xhigh\"],\"defaultEffort\":\"low\"}},\"algorithm\":\"grokSlop\",\"longContextThreshold\":\"200000\",\"rateLimits\":{\"queryOffset\":\"1200\",\"queryBaseRate\":\"600\",\"queryMultiplier\":\"2\",\"tokenOffset\":\"5000000\",\"tokenBaseRate\":\"5000000\",\"tokenMultiplier\":\"2\"},\"batchDiscountPercent\":20,\"provisionedThroughput\":{\"tokensPerInputUnit\":\"5000\",\"tokensPerOutputUnit\":\"2500\"},\"batchEnabled\":true}],\"audioModels\":[{\"name\":\"grok-tts\",\"version\":\"1.0\",\"inputModalities\":[\"TEXT\"],\"outputModalities\":[\"AUDIO\"],\"cluster\":\"eu-west-1\",\"endpoints\":[{\"endpoint\":\"TTS\",\"basis\":\"REQUEST_RATE\",\"rps\":\"50\",\"rpm\":\"3000\",\"concurrentSessions\":\"100\",\"pricing\":{\"perCharacter\":\"150000\"},\"tiers\":[{\"rps\":\"50\",\"rpm\":\"3000\",\"concurrentSessions\":\"100\"},{\"tier\":1,\"rps\":\"50\",\"rpm\":\"3000\",\"concurrentSessions\":\"200\"},{\"tier\":2,\"rps\":\"100\",\"rpm\":\"6000\",\"concurrentSessions\":\"200\"},{\"tier\":3,\"rps\":\"250\",\"rpm\":\"15000\",\"concurrentSessions\":\"300\"},{\"tier\":4,\"rps\":\"500\",\"rpm\":\"30000\",\"concurrentSessions\":\"500\"},{\"tier\":5,\"rps\":\"1000\",\"rpm\":\"60000\",\"concurrentSessions\":\"500\"}]}]},{\"name\":\"grok-stt\",\"version\":\"1.0\",\"inputModalities\":[\"AUDIO\"],\"outputModalities\":[\"TEXT\"],\"cluster\":\"eu-west-1\",\"endpoints\":[{\"endpoint\":\"STT\",\"basis\":\"REQUEST_RATE\",\"rps\":\"10\",\"rpm\":\"600\",\"concurrentSessions\":\"100\",\"pricing\":{\"perAudioSecond\":\"277778\",\"perAudioSecondStreaming\":\"555556\"},\"tiers\":[{\"rps\":\"10\",\"rpm\":\"600\",\"concurrentSessions\":\"100\"},{\"tier\":1,\"rps\":\"10\",\"rpm\":\"600\",\"concurrentSessions\":\"200\"},{\"tier\":2,\"rps\":\"20\",\"rpm\":\"1200\",\"concurrentSessions\":\"200\"},{\"tier\":3,\"rps\":\"30\",\"rpm\":\"1800\",\"concurrentSessions\":\"300\"},{\"tier\":4,\"rps\":\"40\",\"rpm\":\"2400\",\"concurrentSessions\":\"500\"},{\"tier\":5,\"rps\":\"50\",\"rpm\":\"3000\",\"concurrentSessions\":\"500\"}]}]},{\"name\":\"grok-voice-think-fast-2.0\",\"version\":\"1.0\",\"inputModalities\":[\"TEXT\",\"AUDIO\"],\"outputModalities\":[\"TEXT\",\"AUDIO\"],\"cluster\":\"eu-west-1\",\"aliases\":[\"grok-voice-latest\"],\"endpoints\":[{\"endpoint\":\"REALTIME\",\"basis\":\"CONCURRENCY\",\"concurrentSessions\":\"10\",\"pricing\":{\"realtimeAudioTokenPrice\":\"266667\",\"realtimeTextInputPrice\":\"40000000\",\"pstnMinutePrice\":\"100000000\",\"realtimeAudioSecondPrice\":\"13333333\"},\"tiers\":[{\"concurrentSessions\":\"10\"},{\"tier\":1,\"concurrentSessions\":\"20\"},{\"tier\":2,\"concurrentSessions\":\"50\"},{\"tier\":3,\"concurrentSessions\":\"100\"},{\"tier\":4,\"concurrentSessions\":\"200\"},{\"tier\":5,\"concurrentSessions\":\"400\"}]}]},{\"name\":\"grok-voice-think-fast-1.0\",\"version\":\"1.0\",\"inputModalities\":[\"TEXT\",\"AUDIO\"],\"outputModalities\":[\"TEXT\",\"AUDIO\"],\"cluster\":\"eu-west-1\",\"endpoints\":[{\"endpoint\":\"REALTIME\",\"basis\":\"CONCURRENCY\",\"concurrentSessions\":\"10\",\"pricing\":{\"realtimeAudioTokenPrice\":\"166667\",\"realtimeTextInputPrice\":\"40000000\",\"pstnMinutePrice\":\"100000000\",\"realtimeAudioSecondPrice\":\"8333333\"},\"tiers\":[{\"concurrentSessions\":\"10\"},{\"tier\":1,\"concurrentSessions\":\"20\"},{\"tier\":2,\"concurrentSessions\":\"50\"},{\"tier\":3,\"concurrentSessions\":\"100\"},{\"tier\":4,\"concurrentSessions\":\"200\"},{\"tier\":5,\"concurrentSessions\":\"400\"}]}]}],\"clusterName\":\"eu-west-1\"},{\"languageModels\":[{\"name\":\"grok-build-0.1\",\"version\":\"1.0\",\"inputModalities\":[\"TEXT\",\"IMAGE\"],\"outputModalities\":[\"TEXT\"],\"promptTextTokenPrice\":\"10000\",\"promptImageTokenPrice\":\"10000\",\"promptTextTokenPriceLongContext\":\"20000\",\"cachedPromptTokenPrice\":\"2000\",\"cachedPromptTokenPriceLongContext\":\"4000\",\"completionTextTokenPrice\":\"20000\",\"completionTokenPriceLongContext\":\"40000\",\"rps\":\"37\",\"rpm\":\"1800\",\"tpm\":\"10000000\",\"cluster\":\"us-west-2\",\"maxPromptLength\":256000,\"aliases\":[\"grok-code-fast-1\",\"grok-code-fast\",\"grok-code-fast-1-0825\"],\"features\":{\"functionCalling\":true,\"structuredOutputs\":true,\"reasoning\":true},\"algorithm\":\"grokSlop\",\"longContextThreshold\":\"200000\",\"rateLimits\":{\"queryOffset\":\"1200\",\"queryBaseRate\":\"600\",\"queryMultiplier\":\"2\",\"tokenOffset\":\"5000000\",\"tokenBaseRate\":\"5000000\",\"tokenMultiplier\":\"2\"},\"batchDiscountPercent\":20,\"provisionedThroughput\":{\"tokensPerInputUnit\":\"6000\",\"tokensPerOutputUnit\":\"3000\"}},{\"name\":\"grok-4.3\",\"version\":\"1.0\",\"inputModalities\":[\"TEXT\",\"IMAGE\"],\"outputModalities\":[\"TEXT\"],\"promptTextTokenPrice\":\"12500\",\"promptImageTokenPrice\":\"12500\",\"promptTextTokenPriceLongContext\":\"25000\",\"cachedPromptTokenPrice\":\"2000\",\"cachedPromptTokenPriceLongContext\":\"4000\",\"completionTextTokenPrice\":\"25000\",\"completionTokenPriceLongContext\":\"50000\",\"rps\":\"37\",\"rpm\":\"1800\",\"tpm\":\"10000000\",\"cluster\":\"us-west-2\",\"maxPromptLength\":1000000,\"aliases\":[\"grok-4.3-latest\"],\"features\":{\"functionCalling\":true,\"structuredOutputs\":true,\"reasoning\":true,\"reasoningEffortOptions\":{\"supportedEfforts\":[\"none\",\"low\",\"medium\",\"high\",\"xhigh\"],\"defaultEffort\":\"low\"}},\"algorithm\":\"grokSlop\",\"longContextThreshold\":\"200000\",\"rateLimits\":{\"queryOffset\":\"1200\",\"queryBaseRate\":\"600\",\"queryMultiplier\":\"2\",\"tokenOffset\":\"5000000\",\"tokenBaseRate\":\"5000000\",\"tokenMultiplier\":\"2\"},\"batchDiscountPercent\":20,\"provisionedThroughput\":{\"tokensPerInputUnit\":\"5000\",\"tokensPerOutputUnit\":\"2500\"},\"batchEnabled\":true},{\"name\":\"grok-4.20-multi-agent-0309\",\"version\":\"1.0\",\"inputModalities\":[\"TEXT\",\"IMAGE\"],\"outputModalities\":[\"TEXT\"],\"promptTextTokenPrice\":\"12500\",\"promptImageTokenPrice\":\"12500\",\"promptTextTokenPriceLongContext\":\"25000\",\"cachedPromptTokenPrice\":\"2000\",\"cachedPromptTokenPriceLongContext\":\"4000\",\"completionTextTokenPrice\":\"25000\",\"completionTokenPriceLongContext\":\"50000\",\"rps\":\"9\",\"rpm\":\"450\",\"tpm\":\"2500000\",\"cluster\":\"us-west-2\",\"maxPromptLength\":1000000,\"aliases\":[\"grok-4.20-multi-agent\",\"grok-4.20-multi-agent-latest\",\"grok-4.20-multi-agent-beta-latest\",\"grok-4.20-multi-agent-experimental-beta-0304\",\"grok-4.20-multi-agent-experimental-beta-latest\",\"grok-4.20-multi-agent-beta-0309\"],\"features\":{\"functionCalling\":true,\"structuredOutputs\":true,\"reasoning\":true},\"algorithm\":\"grokSlop\",\"longContextThreshold\":\"200000\",\"rateLimits\":{\"queryOffset\":\"300\",\"queryBaseRate\":\"150\",\"queryMultiplier\":\"2\",\"tokenOffset\":\"1250000\",\"tokenBaseRate\":\"1250000\",\"tokenMultiplier\":\"2\"},\"batchDiscountPercent\":20,\"provisionedThroughput\":{\"tokensPerInputUnit\":\"5000\",\"tokensPerOutputUnit\":\"2500\"},\"batchEnabled\":true},{\"name\":\"grok-4.20-0309-non-reasoning\",\"version\":\"1.0\",\"inputModalities\":[\"TEXT\",\"IMAGE\"],\"outputModalities\":[\"TEXT\"],\"promptTextTokenPrice\":\"12500\",\"promptImageTokenPrice\":\"12500\",\"promptTextTokenPriceLongContext\":\"25000\",\"cachedPromptTokenPrice\":\"2000\",\"cachedPromptTokenPriceLongContext\":\"4000\",\"completionTextTokenPrice\":\"25000\",\"completionTokenPriceLongContext\":\"50000\",\"rps\":\"37\",\"rpm\":\"1800\",\"tpm\":\"10000000\",\"cluster\":\"us-west-2\",\"maxPromptLength\":1000000,\"aliases\":[\"grok-4.20-non-reasoning\",\"grok-4.20-non-reasoning-latest\",\"grok-4.20-beta-non-reasoning\",\"grok-4.20-beta-latest-non-reasoning\",\"grok-4.20-experimental-beta-0304-non-reasoning\",\"grok-4.20-experimental-beta-non-reasoning-latest\",\"grok-4.20-beta-0309-non-reasoning\",\"grok-4.20-non-reasoning-gv2\"],\"features\":{\"functionCalling\":true,\"structuredOutputs\":true},\"algorithm\":\"grokSlopNonThinking\",\"longContextThreshold\":\"200000\",\"rateLimits\":{\"queryOffset\":\"1200\",\"queryBaseRate\":\"600\",\"queryMultiplier\":\"2\",\"tokenOffset\":\"5000000\",\"tokenBaseRate\":\"5000000\",\"tokenMultiplier\":\"2\"},\"batchDiscountPercent\":20,\"provisionedThroughput\":{\"tokensPerInputUnit\":\"5000\",\"tokensPerOutputUnit\":\"2500\"},\"batchEnabled\":true},{\"name\":\"grok-4.6\",\"version\":\"1.0\",\"inputModalities\":[\"TEXT\",\"IMAGE\"],\"outputModalities\":[\"TEXT\"],\"promptTextTokenPrice\":\"20000\",\"promptImageTokenPrice\":\"20000\",\"promptTextTokenPriceLongContext\":\"40000\",\"cachedPromptTokenPrice\":\"5000\",\"cachedPromptTokenPriceLongContext\":\"10000\",\"completionTextTokenPrice\":\"60000\",\"completionTokenPriceLongContext\":\"120000\",\"rps\":\"150\",\"rpm\":\"7200\",\"tpm\":\"50000000\",\"cluster\":\"us-west-2\",\"maxPromptLength\":500000,\"features\":{\"functionCalling\":true,\"structuredOutputs\":true,\"reasoning\":true,\"reasoningEffortOptions\":{\"supportedEfforts\":[\"low\",\"medium\",\"high\",\"xhigh\"],\"defaultEffort\":\"high\"}},\"algorithm\":\"grokSlop\",\"longContextThreshold\":\"200000\",\"rateLimits\":{\"queryOffset\":\"6080\",\"queryBaseRate\":\"1120\",\"queryMultiplier\":\"2\",\"tokenOffset\":\"46500000\",\"tokenBaseRate\":\"3500000\",\"tokenMultiplier\":\"2\"},\"batchDiscountPercent\":0,\"provisionedThroughput\":{\"tokensPerInputUnit\":\"3000\",\"tokensPerOutputUnit\":\"1000\"}},{\"name\":\"grok-4.5\",\"version\":\"1.0\",\"inputModalities\":[\"TEXT\",\"IMAGE\"],\"outputModalities\":[\"TEXT\"],\"promptTextTokenPrice\":\"20000\",\"promptImageTokenPrice\":\"20000\",\"promptTextTokenPriceLongContext\":\"40000\",\"cachedPromptTokenPrice\":\"3000\",\"cachedPromptTokenPriceLongContext\":\"6000\",\"completionTextTokenPrice\":\"60000\",\"completionTokenPriceLongContext\":\"120000\",\"rps\":\"150\",\"rpm\":\"7200\",\"tpm\":\"50000000\",\"cluster\":\"us-west-2\",\"maxPromptLength\":500000,\"aliases\":[\"grok-4.5-latest\",\"grok-build-latest\"],\"features\":{\"functionCalling\":true,\"structuredOutputs\":true,\"reasoning\":true,\"reasoningEffortOptions\":{\"supportedEfforts\":[\"low\",\"medium\",\"high\",\"xhigh\"],\"defaultEffort\":\"high\"}},\"algorithm\":\"grokSlop\",\"longContextThreshold\":\"200000\",\"rateLimits\":{\"queryOffset\":\"6080\",\"queryBaseRate\":\"1120\",\"queryMultiplier\":\"2\",\"tokenOffset\":\"46500000\",\"tokenBaseRate\":\"3500000\",\"tokenMultiplier\":\"2\"},\"batchDiscountPercent\":0,\"provisionedThroughput\":{\"tokensPerInputUnit\":\"3000\",\"tokensPerOutputUnit\":\"1000\"}},{\"name\":\"grok-4.20-0309-reasoning\",\"version\":\"1.0\",\"inputModalities\":[\"TEXT\",\"IMAGE\"],\"outputModalities\":[\"TEXT\"],\"promptTextTokenPrice\":\"12500\",\"promptImageTokenPrice\":\"12500\",\"promptTextTokenPriceLongContext\":\"25000\",\"cachedPromptTokenPrice\":\"2000\",\"cachedPromptTokenPriceLongContext\":\"4000\",\"completionTextTokenPrice\":\"25000\",\"completionTokenPriceLongContext\":\"50000\",\"rps\":\"37\",\"rpm\":\"1800\",\"tpm\":\"10000000\",\"cluster\":\"us-west-2\",\"maxPromptLength\":1000000,\"aliases\":[\"grok-4.20-reasoning-latest\",\"grok-4.20\",\"grok-4.20-reasoning\",\"grok-4.20-0309\",\"grok-4.20-beta-0309-reasoning\",\"grok-4.20-beta\",\"grok-4.20-beta-0309\",\"grok-4.20-beta-latest\",\"grok-4.20-beta-latest-reasoning\",\"grok-4.20-beta-reasoning\",\"grok-4.20-experimental-beta-0304-reasoning\",\"grok-4.20-experimental-beta-0304\",\"grok-4.20-experimental-beta-reasoning-latest\",\"grok-4.20-experimental-beta-latest\",\"grok-4.20-reasoning-gv2\"],\"features\":{\"functionCalling\":true,\"structuredOutputs\":true,\"reasoning\":true},\"algorithm\":\"grokSlop\",\"longContextThreshold\":\"200000\",\"rateLimits\":{\"queryOffset\":\"1200\",\"queryBaseRate\":\"600\",\"queryMultiplier\":\"2\",\"tokenOffset\":\"5000000\",\"tokenBaseRate\":\"5000000\",\"tokenMultiplier\":\"2\"},\"batchDiscountPercent\":20,\"provisionedThroughput\":{\"tokensPerInputUnit\":\"5000\",\"tokensPerOutputUnit\":\"2500\"},\"batchEnabled\":true}],\"imageGenerationModels\":[{\"name\":\"grok-imagine-image-quality\",\"version\":\"1.0\",\"inputModalities\":[\"TEXT\",\"IMAGE\"],\"outputModalities\":[\"IMAGE\"],\"imagePrice\":\"500000000\",\"rps\":\"6\",\"rpm\":\"300\",\"tpm\":\"9223372036854775807\",\"cluster\":\"us-west-2\",\"aliases\":[\"grok-imagine-image-quality-20260403\",\"grok-imagine-image-quality-latest\",\"grok-imagine-image-pro\"],\"resolutionPricing\":[{\"resolution\":\"IMAGE_RESOLUTION_1K\",\"pricePerImage\":\"500000000\"},{\"resolution\":\"IMAGE_RESOLUTION_2K\",\"pricePerImage\":\"700000000\"}],\"pricePerInputImage\":\"100000000\",\"rateLimits\":{\"queryBaseRate\":\"300\",\"queryMultiplier\":\"2\"}},{\"name\":\"grok-imagine-image\",\"version\":\"1.0\",\"inputModalities\":[\"TEXT\",\"IMAGE\"],\"outputModalities\":[\"IMAGE\"],\"imagePrice\":\"200000000\",\"rps\":\"6\",\"rpm\":\"300\",\"tpm\":\"9223372036854775807\",\"cluster\":\"us-west-2\",\"aliases\":[\"grok-imagine-image-2026-03-02\"],\"resolutionPricing\":[{\"resolution\":\"IMAGE_RESOLUTION_1K\",\"pricePerImage\":\"200000000\"},{\"resolution\":\"IMAGE_RESOLUTION_2K\",\"pricePerImage\":\"200000000\"}],\"pricePerInputImage\":\"20000000\",\"rateLimits\":{\"queryBaseRate\":\"300\",\"queryMultiplier\":\"2\"},\"batchEnabled\":true},{\"name\":\"grok-imagine-image-2.0\",\"version\":\"1.0\",\"inputModalities\":[\"TEXT\",\"IMAGE\"],\"outputModalities\":[\"IMAGE\"],\"imagePrice\":\"600000000\",\"rps\":\"6\",\"rpm\":\"300\",\"tpm\":\"9223372036854775807\",\"cluster\":\"us-west-2\",\"resolutionPricing\":[{\"resolution\":\"IMAGE_RESOLUTION_1K\",\"pricePerImage\":\"400000000\",\"quality\":\"low\"},{\"resolution\":\"IMAGE_RESOLUTION_2K\",\"pricePerImage\":\"600000000\",\"quality\":\"low\"},{\"resolution\":\"IMAGE_RESOLUTION_1K\",\"pricePerImage\":\"600000000\",\"quality\":\"medium\"},{\"resolution\":\"IMAGE_RESOLUTION_2K\",\"pricePerImage\":\"800000000\",\"quality\":\"medium\"}],\"pricePerInputImage\":\"100000000\",\"rateLimits\":{\"queryBaseRate\":\"300\",\"queryMultiplier\":\"2\"},\"batchEnabled\":true,\"supportedQualities\":[\"low\",\"medium\",\"auto\"],\"defaultQuality\":\"auto\"}],\"videoGenerationModels\":[{\"name\":\"grok-imagine-video-1.5\",\"version\":\"1.0\",\"inputModalities\":[\"TEXT\",\"IMAGE\",\"AUDIO\"],\"outputModalities\":[\"VIDEO\"],\"rps\":\"10\",\"rpm\":\"480\",\"tpm\":\"9223372036854775807\",\"cluster\":\"us-west-2\",\"aliases\":[\"grok-imagine-video-1.5-preview\",\"grok-imagine-video-1.5-2026-05-30\"],\"resolutionPricing\":[{\"resolution\":\"VIDEO_RESOLUTION_480P\",\"pricePerSecond\":\"800000000\"},{\"resolution\":\"VIDEO_RESOLUTION_720P\",\"pricePerSecond\":\"1400000000\"},{\"resolution\":\"VIDEO_RESOLUTION_1080P\",\"pricePerSecond\":\"2500000000\"}],\"pricePerInputImage\":\"100000000\",\"rateLimits\":{\"queryBaseRate\":\"480\",\"queryMultiplier\":\"2\"},\"batchEnabled\":true},{\"name\":\"grok-imagine-video\",\"version\":\"1.0\",\"inputModalities\":[\"TEXT\",\"IMAGE\",\"VIDEO\"],\"outputModalities\":[\"VIDEO\"],\"rps\":\"10\",\"rpm\":\"480\",\"tpm\":\"9223372036854775807\",\"cluster\":\"us-west-2\",\"resolutionPricing\":[{\"resolution\":\"VIDEO_RESOLUTION_480P\",\"pricePerSecond\":\"500000000\"},{\"resolution\":\"VIDEO_RESOLUTION_720P\",\"pricePerSecond\":\"700000000\"}],\"pricePerInputImage\":\"20000000\",\"pricePerInputVideoSecond\":\"100000000\",\"rateLimits\":{\"queryBaseRate\":\"480\",\"queryMultiplier\":\"2\"},\"batchEnabled\":true}],\"clusterName\":\"us-west-2\"},{\"imageGenerationModels\":[{\"name\":\"grok-imagine-image\",\"version\":\"1.0\",\"inputModalities\":[\"TEXT\",\"IMAGE\"],\"outputModalities\":[\"IMAGE\"],\"imagePrice\":\"200000000\",\"rps\":\"6\",\"rpm\":\"300\",\"tpm\":\"9223372036854775807\",\"cluster\":\"us-saltlake-2\",\"aliases\":[\"grok-imagine-image-2026-03-02\"],\"resolutionPricing\":[{\"resolution\":\"IMAGE_RESOLUTION_1K\",\"pricePerImage\":\"200000000\"},{\"resolution\":\"IMAGE_RESOLUTION_2K\",\"pricePerImage\":\"200000000\"}],\"pricePerInputImage\":\"20000000\",\"rateLimits\":{\"queryBaseRate\":\"300\",\"queryMultiplier\":\"2\"}}],\"audioModels\":[{\"name\":\"grok-tts\",\"version\":\"1.0\",\"inputModalities\":[\"TEXT\"],\"outputModalities\":[\"AUDIO\"],\"cluster\":\"us-saltlake-2\",\"endpoints\":[{\"endpoint\":\"TTS\",\"basis\":\"REQUEST_RATE\",\"rps\":\"50\",\"rpm\":\"3000\",\"concurrentSessions\":\"100\",\"pricing\":{\"perCharacter\":\"150000\"},\"tiers\":[{\"rps\":\"50\",\"rpm\":\"3000\",\"concurrentSessions\":\"100\"},{\"tier\":1,\"rps\":\"50\",\"rpm\":\"3000\",\"concurrentSessions\":\"200\"},{\"tier\":2,\"rps\":\"100\",\"rpm\":\"6000\",\"concurrentSessions\":\"200\"},{\"tier\":3,\"rps\":\"250\",\"rpm\":\"15000\",\"concurrentSessions\":\"300\"},{\"tier\":4,\"rps\":\"500\",\"rpm\":\"30000\",\"concurrentSessions\":\"500\"},{\"tier\":5,\"rps\":\"1000\",\"rpm\":\"60000\",\"concurrentSessions\":\"500\"}]}]},{\"name\":\"grok-stt\",\"version\":\"1.0\",\"inputModalities\":[\"AUDIO\"],\"outputModalities\":[\"TEXT\"],\"cluster\":\"us-saltlake-2\",\"endpoints\":[{\"endpoint\":\"STT\",\"basis\":\"REQUEST_RATE\",\"rps\":\"10\",\"rpm\":\"600\",\"concurrentSessions\":\"100\",\"pricing\":{\"perAudioSecond\":\"277778\",\"perAudioSecondStreaming\":\"555556\"},\"tiers\":[{\"rps\":\"10\",\"rpm\":\"600\",\"concurrentSessions\":\"100\"},{\"tier\":1,\"rps\":\"10\",\"rpm\":\"600\",\"concurrentSessions\":\"200\"},{\"tier\":2,\"rps\":\"20\",\"rpm\":\"1200\",\"concurrentSessions\":\"200\"},{\"tier\":3,\"rps\":\"30\",\"rpm\":\"1800\",\"concurrentSessions\":\"300\"},{\"tier\":4,\"rps\":\"40\",\"rpm\":\"2400\",\"concurrentSessions\":\"500\"},{\"tier\":5,\"rps\":\"50\",\"rpm\":\"3000\",\"concurrentSessions\":\"500\"}]}]},{\"name\":\"grok-voice-think-fast-2.0\",\"version\":\"1.0\",\"inputModalities\":[\"TEXT\",\"AUDIO\"],\"outputModalities\":[\"TEXT\",\"AUDIO\"],\"cluster\":\"us-saltlake-2\",\"aliases\":[\"grok-voice-latest\"],\"endpoints\":[{\"endpoint\":\"REALTIME\",\"basis\":\"CONCURRENCY\",\"concurrentSessions\":\"10\",\"pricing\":{\"realtimeAudioTokenPrice\":\"266667\",\"realtimeTextInputPrice\":\"40000000\",\"pstnMinutePrice\":\"100000000\",\"realtimeAudioSecondPrice\":\"13333333\"},\"tiers\":[{\"concurrentSessions\":\"10\"},{\"tier\":1,\"concurrentSessions\":\"20\"},{\"tier\":2,\"concurrentSessions\":\"50\"},{\"tier\":3,\"concurrentSessions\":\"100\"},{\"tier\":4,\"concurrentSessions\":\"200\"},{\"tier\":5,\"concurrentSessions\":\"400\"}]}]},{\"name\":\"grok-voice-think-fast-1.0\",\"version\":\"1.0\",\"inputModalities\":[\"TEXT\",\"AUDIO\"],\"outputModalities\":[\"TEXT\",\"AUDIO\"],\"cluster\":\"us-saltlake-2\",\"endpoints\":[{\"endpoint\":\"REALTIME\",\"basis\":\"CONCURRENCY\",\"concurrentSessions\":\"10\",\"pricing\":{\"realtimeAudioTokenPrice\":\"166667\",\"realtimeTextInputPrice\":\"40000000\",\"pstnMinutePrice\":\"100000000\",\"realtimeAudioSecondPrice\":\"8333333\"},\"tiers\":[{\"concurrentSessions\":\"10\"},{\"tier\":1,\"concurrentSessions\":\"20\"},{\"tier\":2,\"concurrentSessions\":\"50\"},{\"tier\":3,\"concurrentSessions\":\"100\"},{\"tier\":4,\"concurrentSessions\":\"200\"},{\"tier\":5,\"concurrentSessions\":\"400\"}]}]}],\"videoGenerationModels\":[{\"name\":\"grok-imagine-video\",\"version\":\"1.0\",\"inputModalities\":[\"TEXT\",\"IMAGE\",\"VIDEO\"],\"outputModalities\":[\"VIDEO\"],\"rps\":\"10\",\"rpm\":\"480\",\"tpm\":\"9223372036854775807\",\"cluster\":\"us-saltlake-2\",\"resolutionPricing\":[{\"resolution\":\"VIDEO_RESOLUTION_480P\",\"pricePerSecond\":\"500000000\"},{\"resolution\":\"VIDEO_RESOLUTION_720P\",\"pricePerSecond\":\"700000000\"}],\"pricePerInputImage\":\"20000000\",\"pricePerInputVideoSecond\":\"100000000\",\"rateLimits\":{\"queryBaseRate\":\"480\",\"queryMultiplier\":\"2\"}}],\"clusterName\":\"us-saltlake-2\"},{\"clusterName\":\"us-east-4\"}]};</script><!--$--><!--/$--><script>((a,b,c,d,e,f,g,h)=>{let i=document.documentElement,j=[\"light\",\"dark\"];function k(b){var c;(Array.isArray(a)?a:[a]).forEach(a=>{let c=\"class\"===a,d=c&&f?e.map(a=>f[a]||a):e;c?(i.classList.remove(...d),i.classList.add(f&&f[b]?f[b]:b)):i.setAttribute(a,b)}),c=b,h&&j.includes(c)&&(i.style.colorScheme=c)}if(d)k(d);else try{let a=localStorage.getItem(b)||c,d=g&&\"system\"===a?window.matchMedia(\"(prefers-color-scheme: dark)\").matches?\"dark\":\"light\":a;k(d)}catch(a){}})(\"class\",\"theme\",\"system\",null,[\"light\",\"dark\"],null,true,true)</script><div class=\"fixed inset-0 z-50 flex items-center justify-center bg-white/80 dark:bg-black/80 pointer-events-none opacity-0 transition-opacity duration-300\" data-fullscreen=\"parent\"></div><div data-slot=\"sidebar-wrapper\" class=\"group/sidebar-wrapper min-h-svh w-full [--sidebar-width:15.5rem] bg-base flex h-dvh flex-col xl:[--sidebar-width:18rem]\"><header class=\"fixed inset-x-0 top-0 z-50 duration-200\"><div class=\"from-background lg:from-background/75 pointer-events-none absolute inset-x-0 h-32 bg-gradient-to-b duration-200 lg:h-24 opacity-0\"></div><div class=\"relative mx-auto w-full px-4 lg:px-6\"><nav class=\"relative flex items-center gap-4 py-4 duration-200 lg:h-20\"><div class=\"flex min-w-0 items-center gap-2\"><a aria-label=\"SpaceXAI Docs home\" class=\"focus-visible:ring-primary -m-1 inline-flex shrink-0 items-center justify-center rounded-md p-1 outline-none focus-visible:ring-2\" href=\"/\"><svg aria-hidden=\"true\" viewBox=\"0 0 834 318\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" focusable=\"false\" data-namespace=\"@xai/icons\" data-slot=\"icon\" class=\"block w-auto shrink-0 h-5\" style=\"fill:currentColor\"><path d=\"M832.565 0.590983C736.633 8.41256 359.563 55.1598 98.1057 317.999H1.08203L11.9228 307.195C66.6371 254.336 308.741 30.3127 832.565 0.299805V0.590983Z\" fill=\"currentColor\"></path><path d=\"M504.192 317.999H428.146L278.315 208.933C292.122 200.25 306.018 191.98 319.957 184.104L504.192 317.999Z\" fill=\"currentColor\"></path><path d=\"M382.659 318H306.648L283.589 301.228H154.852C163.915 293.18 173.091 285.368 182.362 277.784H251.322L215.636 251.826C228.392 242.335 241.288 233.244 254.287 224.535L382.659 318Z\" fill=\"currentColor\"></path><path d=\"M105.997 116.89L164.612 159.488C150.024 168.078 136.37 176.58 123.626 184.897L30.0522 116.854L105.997 116.89Z\" fill=\"currentColor\"></path></svg></a></div><div class=\"pointer-events-none absolute inset-x-0 hidden justify-center md:flex\"><div class=\"pointer-events-auto flex min-w-0 items-center gap-1\"><button type=\"button\" aria-label=\"Select section\" class=\"hover:text-primary data-[state=open]:text-primary flex items-center gap-1 px-3 py-1.5 text-sm font-medium outline-none transition-colors focus-visible:ring-primary focus-visible:ring-2 text-primary\" id=\"radix-_R_d59fkmlb_\" aria-haspopup=\"menu\" aria-expanded=\"false\" data-state=\"closed\"><span>Docs</span><svg viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.75\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"size-3 shrink-0\"><polyline points=\"4,6 8,10 12,6\"></polyline></svg></button></div></div><div class=\"ml-auto flex items-center gap-1 md:gap-2\"><button class=\"focus-visible:ring-ring inline-flex items-center justify-center gap-x-2 whitespace-nowrap rounded-full text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 *:data-[slot=icon]:text-(--btn-icon) *:data-[slot=icon]:-mx-0.5 *:data-[slot=icon]:my-0.5 *:data-[slot=icon]:size-5 *:data-[slot=icon]:shrink-0 *:data-[slot=icon]:sm:my-1 *:data-[slot=icon]:sm:size-4 text-primary hover:bg-overlay-hover size-9 lg:hidden\" type=\"button\" aria-label=\"Search docs\"><svg width=\"1em\" height=\"1em\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" class=\"size-4\"><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M11.25 2C16.0825 2 20 5.91751 20 10.75C20 12.8058 19.2884 14.694 18.1016 16.1875L21.9141 20L20.5 21.4141L16.6875 17.6016C15.194 18.7884 13.3058 19.5 11.25 19.5C6.41751 19.5 2.5 15.5825 2.5 10.75C2.5 5.91751 6.41751 2 11.25 2ZM11.25 4C7.52208 4 4.5 7.02208 4.5 10.75C4.5 14.4779 7.52208 17.5 11.25 17.5C14.9779 17.5 18 14.4779 18 10.75C18 7.02208 14.9779 4 11.25 4Z\" fill=\"currentColor\"></path></svg></button><button type=\"button\" aria-label=\"Switch to dark theme\" class=\"text-primary/30 hover:text-primary/60 hidden size-7 items-center justify-center rounded-full transition-colors lg:flex\"><svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" data-slot=\"icon\" class=\"size-4 stroke-[2]\"><g id=\"name=moon\"><path id=\"vector\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M3 12.0005C3.00022 17.5231 7.47729 22.0005 13 22.0005C17.1018 22.0005 20.6236 19.529 22.166 15.9956C22.1419 15.996 22.1179 15.997 22.0937 15.998C22.0625 15.9992 22.0313 16.0005 22 16.0005C16.4773 16.0005 12.0002 11.5231 12 6.00049C12 4.57969 12.2978 3.22836 12.832 2.00439C7.38668 2.0941 3 6.53376 3 12.0005ZM10 6.00049C10 5.50987 10.0303 5.02594 10.0879 4.55029C7.10969 5.71429 5 8.61027 5 12.0005C5.00022 16.4187 8.58197 20.0005 13 20.0005C15.2588 20.0005 17.2994 19.0623 18.7549 17.5522C13.7047 16.1364 10.0002 11.5027 10 6.00049Z\" fill=\"currentColor\"></path></g></svg></button><button class=\"focus-visible:ring-ring items-center justify-center gap-x-2 whitespace-nowrap text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 *:data-[slot=icon]:text-(--btn-icon) *:data-[slot=icon]:-mx-0.5 *:data-[slot=icon]:my-0.5 *:data-[slot=icon]:size-5 *:data-[slot=icon]:shrink-0 *:data-[slot=icon]:sm:my-1 *:data-[slot=icon]:sm:size-4 text-primary hover:bg-overlay-hover w-auto max-w-full px-3 shadow-none border-primary/15 hidden h-9 min-w-52 rounded-full border py-0 pl-4 pr-3 lg:flex\" type=\"button\"><div class=\"flex w-full items-center gap-2\"><div class=\"flex min-w-0 items-center justify-start gap-2\"><span class=\"inline-flex items-center justify-center p-0 m-0 w-4 h-4 text-muted\" data-namespace=\"@xai/icons\" data-slot=\"icon\"><svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"currentColor\" viewBox=\"0 0 24 24\" aria-hidden=\"true\" class=\"w-4 h-4\" focusable=\"false\" style=\"fill:currentColor\"><path d=\"m18.031 16.617 4.283 4.282-1.415 1.415-4.282-4.283A8.96 8.96 0 0 1 11 20c-4.968 0-9-4.032-9-9s4.032-9 9-9 9 4.032 9 9a8.96 8.96 0 0 1-1.969 5.617m-2.006-.742A6.98 6.98 0 0 0 18 11c0-3.867-3.133-7-7-7s-7 3.133-7 7 3.133 7 7 7a6.98 6.98 0 0 0 4.875-1.975z\"></path></svg></span><p class=\"text-sm text-muted hidden sm:block\">Search</p></div><span class=\"ms-auto hidden shrink-0 sm:block\"><div class=\"text-muted inline-flex items-center rounded-md text-center font-sans text-xs font-normal tracking-widest rtl:space-x-reverse bg-transparent px-0 py-0\"><span>⌘</span><span class=\"text-xs\">K</span></div></span></div></button><div class=\"flex gap-2\"><div class=\"relative hidden lg:block\"><div class=\"bg-primary flex items-stretch rounded-full\"><a href=\"https://console.x.ai?utm_source=docs&amp;utm_medium=referral&amp;utm_campaign=docs-home&amp;utm_content=header-api-console\" target=\"_blank\" rel=\"noopener\" class=\"text-primary-foreground flex items-center rounded-l-full py-2 pl-4 pr-3 text-sm font-medium transition-colors hover:bg-white/10\">API Console</a><div class=\"bg-primary-foreground/20 w-px\"></div><button type=\"button\" aria-expanded=\"false\" aria-haspopup=\"true\" aria-label=\"More links\" class=\"text-primary-foreground flex items-center self-stretch rounded-r-full pl-2 pr-3 transition-colors hover:bg-white/10\"><svg viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.75\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"size-4\"><polyline points=\"4,6 8,10 12,6\"></polyline></svg></button></div><div class=\"absolute right-0 top-full z-50 pt-2\" style=\"opacity:0;pointer-events:none;transform:translateY(-4px);transition:opacity 0.12s ease, transform 0.12s ease\"><div class=\"bg-card overflow-hidden rounded-xl shadow-xl shadow-black/10 backdrop-blur-xl\"><div class=\"whitespace-nowrap px-2 py-2\"><div class=\"relative\"><div class=\"bg-primary/[0.04] pointer-events-none absolute rounded-md\" style=\"opacity:0;top:0;left:0;width:0;height:0\"></div><div class=\"text-primary/40 mb-1 px-2 pt-1 text-[10px] font-medium uppercase tracking-wider\">Products</div><a target=\"_blank\" data-dropdown-link=\"true\" class=\"text-primary group flex h-[36px] items-center gap-1.5 rounded-md px-2 text-sm font-medium transition-colors\" href=\"https://grok.com/?referrer=docs\"><span>Grok</span></a><div class=\"border-border/20 mx-2 my-1.5 border-t\"></div><div class=\"text-primary/40 mb-1 px-2 pt-1 text-[10px] font-medium uppercase tracking-wider\">Status</div><a href=\"https://status.x.ai\" target=\"_blank\" rel=\"noopener noreferrer\" data-dropdown-link=\"true\" class=\"text-primary group flex h-[36px] items-center gap-1.5 rounded-md px-2 text-sm font-medium transition-colors\"><span>Loading...</span><span aria-hidden=\"true\" class=\"inline-flex size-4 shrink-0 items-center justify-center\"><span class=\"size-1.5 rounded-full bg-[linear-gradient(180deg,#2E92FE,#016EE4)]\"></span></span></a><div class=\"border-border/20 mx-2 my-1.5 border-t\"></div><div class=\"text-primary/40 mb-1 px-2 pt-1 text-[10px] font-medium uppercase tracking-wider\">Resources</div><a href=\"/llms.txt\" target=\"_blank\" rel=\"noopener noreferrer\" data-dropdown-link=\"true\" class=\"text-primary group flex h-[36px] items-center gap-1.5 rounded-md px-2 text-sm font-medium transition-colors\"><span>llms.txt</span></a><a href=\"https://discord.gg/x-ai\" target=\"_blank\" rel=\"noopener noreferrer\" data-dropdown-link=\"true\" class=\"text-primary group flex h-[36px] items-center gap-1.5 rounded-md px-2 text-sm font-medium transition-colors\"><span>Discord</span></a><a href=\"mailto:support@x.ai\" data-dropdown-link=\"true\" class=\"text-primary group flex h-[36px] items-center gap-1.5 rounded-md px-2 text-sm font-medium transition-colors\"><span>Email support</span></a><a href=\"https://x.ai/legal\" target=\"_blank\" rel=\"noopener noreferrer\" data-dropdown-link=\"true\" class=\"text-primary group flex h-[36px] items-center gap-1.5 rounded-md px-2 text-sm font-medium transition-colors\"><span>Terms and Policies</span></a></div></div></div></div></div></div><button class=\"focus-visible:ring-ring inline-flex items-center justify-center gap-x-2 whitespace-nowrap rounded-full text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 *:data-[slot=icon]:text-(--btn-icon) *:data-[slot=icon]:-mx-0.5 *:data-[slot=icon]:my-0.5 *:data-[slot=icon]:size-5 *:data-[slot=icon]:shrink-0 *:data-[slot=icon]:sm:my-1 *:data-[slot=icon]:sm:size-4 text-primary hover:bg-overlay-hover size-9 lg:hidden\" type=\"button\" aria-label=\"Open navigation menu\" aria-expanded=\"false\"><svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\" stroke-width=\"1.5\" stroke=\"currentColor\" aria-hidden=\"true\" data-slot=\"icon\" class=\"size-5\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M3.75 9h16.5m-16.5 6.75h16.5\"></path></svg></button></div></nav></div></header><div class=\"flex min-h-0 flex-1\"><div class=\"w-(--sidebar-width) pt-(--topbar-height) hidden shrink-0 px-2 pb-2 lg:block\"><aside class=\"flex h-full flex-col overflow-hidden\"><div data-slot=\"sidebar-content\" data-sidebar=\"content\" class=\"flex min-h-0 flex-1 flex-col overflow-auto group-data-[collapsible=icon]:overflow-hidden minimal-scrollbar gap-5 px-2 py-1\"><div><div data-slot=\"sidebar-group\" data-sidebar=\"group\" class=\"relative flex w-full min-w-0 flex-col gap-0.5 p-0 pt-3 first:pt-0\"><div data-slot=\"sidebar-group-label\" data-sidebar=\"group-label\" class=\"ring-primary h-8 shrink-0 rounded-md outline-none ring-inset transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 [&amp;&gt;svg]:size-4 [&amp;&gt;svg]:shrink-0 text-primary flex items-center px-2 py-1 font-sans text-[13px] font-medium normal-case tracking-normal\"><span class=\"min-w-0 truncate\">Get Started</span></div><div data-slot=\"sidebar-group-content\" data-sidebar=\"group-content\" class=\"w-full text-sm\"><ul data-slot=\"sidebar-menu\" data-sidebar=\"menu\" class=\"flex w-full min-w-0 flex-col gap-0.5\"><li data-slot=\"sidebar-menu-item\" data-sidebar=\"menu-item\" class=\"group/menu-item relative\"><a data-slot=\"sidebar-menu-button\" data-sidebar=\"menu-button\" data-active=\"true\" class=\"peer/menu-button group/menu-button outline-hidden ring-primary flex w-full items-center gap-2 overflow-hidden p-2 text-left ring-inset focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&amp;&gt;span:last-child]:truncate [&amp;_[data-slot=icon]]:size-4 [&amp;_[data-slot=icon]]:shrink-0 [&amp;_svg]:size-4 [&amp;_svg]:shrink-0 dark:hover:bg-surface-l3 dark:active:bg-surface-l3 group-has-data-[sidebar=menu-action]/menu-item:pr-8 relative h-8 rounded-[10px] px-2 py-1.5 text-[13px] font-medium text-fg-muted hover:text-primary hover:bg-overlay-hover active:text-primary active:bg-overlay-hover data-active:bg-base data-active:text-primary data-active:font-medium dark:data-active:bg-surface-l3 group-has-data-[sidebar=menu-badge]/menu-item:pr-2 transition-colors duration-200\" href=\"/overview\"><span class=\"min-w-0 truncate\">Welcome</span></a></li><li data-slot=\"sidebar-menu-item\" data-sidebar=\"menu-item\" class=\"group/menu-item relative\"><a data-slot=\"sidebar-menu-button\" data-sidebar=\"menu-button\" class=\"peer/menu-button group/menu-button outline-hidden ring-primary flex w-full items-center gap-2 overflow-hidden p-2 text-left ring-inset focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&amp;&gt;span:last-child]:truncate [&amp;_[data-slot=icon]]:size-4 [&amp;_[data-slot=icon]]:shrink-0 [&amp;_svg]:size-4 [&amp;_svg]:shrink-0 dark:hover:bg-surface-l3 dark:active:bg-surface-l3 group-has-data-[sidebar=menu-action]/menu-item:pr-8 relative h-8 rounded-[10px] px-2 py-1.5 text-[13px] font-medium text-fg-muted hover:text-primary hover:bg-overlay-hover active:text-primary active:bg-overlay-hover data-active:bg-base data-active:text-primary data-active:font-medium dark:data-active:bg-surface-l3 group-has-data-[sidebar=menu-badge]/menu-item:pr-2 transition-colors duration-200\" href=\"/developers/grok-4-6\"><span class=\"min-w-0 truncate\">Grok 4.6</span><div class=\"focus:ring-ring gap-1 whitespace-nowrap border font-medium transition-colors focus:outline-none focus:ring-2 focus:ring-offset-2 [&amp;&gt;svg]:-mx-0.5 [&amp;&gt;svg]:size-3.5 [&amp;&gt;svg]:shrink-0 text-[10px] flex select-none items-center justify-center tabular-nums group-data-[collapsible=icon]:hidden text-solar static right-auto top-auto translate-y-0 ml-1.5 h-[18px] min-w-0 shrink-0 px-1.5 leading-none border-solar/25 rounded-full bg-transparent\" data-slot=\"sidebar-menu-badge\" data-sidebar=\"menu-badge\">Latest</div></a></li><li data-slot=\"sidebar-menu-item\" data-sidebar=\"menu-item\" class=\"group/menu-item relative\"><a data-slot=\"sidebar-menu-button\" data-sidebar=\"menu-button\" class=\"peer/menu-button group/menu-button outline-hidden ring-primary flex w-full items-center gap-2 overflow-hidden p-2 text-left ring-inset focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&amp;&gt;span:last-child]:truncate [&amp;_[data-slot=icon]]:size-4 [&amp;_[data-slot=icon]]:shrink-0 [&amp;_svg]:size-4 [&amp;_svg]:shrink-0 dark:hover:bg-surface-l3 dark:active:bg-surface-l3 group-has-data-[sidebar=menu-action]/menu-item:pr-8 relative h-8 rounded-[10px] px-2 py-1.5 text-[13px] font-medium text-fg-muted hover:text-primary hover:bg-overlay-hover active:text-primary active:bg-overlay-hover data-active:bg-base data-active:text-primary data-active:font-medium dark:data-active:bg-surface-l3 group-has-data-[sidebar=menu-badge]/menu-item:pr-2 transition-colors duration-200\" href=\"/developers/quickstart\"><span class=\"min-w-0 truncate\">Quickstart</span></a></li><li data-slot=\"sidebar-menu-item\" data-sidebar=\"menu-item\" class=\"group/menu-item relative\"><a data-slot=\"sidebar-menu-button\" data-sidebar=\"menu-button\" class=\"peer/menu-button group/menu-button outline-hidden ring-primary flex w-full items-center gap-2 overflow-hidden p-2 text-left ring-inset focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&amp;&gt;span:last-child]:truncate [&amp;_[data-slot=icon]]:size-4 [&amp;_[data-slot=icon]]:shrink-0 [&amp;_svg]:size-4 [&amp;_svg]:shrink-0 dark:hover:bg-surface-l3 dark:active:bg-surface-l3 group-has-data-[sidebar=menu-action]/menu-item:pr-8 relative h-8 rounded-[10px] px-2 py-1.5 text-[13px] font-medium text-fg-muted hover:text-primary hover:bg-overlay-hover active:text-primary active:bg-overlay-hover data-active:bg-base data-active:text-primary data-active:font-medium dark:data-active:bg-surface-l3 group-has-data-[sidebar=menu-badge]/menu-item:pr-2 transition-colors duration-200\" href=\"/developers/models\"><span class=\"min-w-0 truncate\">Models</span><div class=\"focus:ring-ring gap-1 whitespace-nowrap border font-medium transition-colors focus:outline-none focus:ring-2 focus:ring-offset-2 [&amp;&gt;svg]:-mx-0.5 [&amp;&gt;svg]:size-3.5 [&amp;&gt;svg]:shrink-0 text-[10px] flex select-none items-center justify-center tabular-nums group-data-[collapsible=icon]:hidden text-solar static right-auto top-auto translate-y-0 ml-1.5 h-[18px] min-w-0 shrink-0 px-1.5 leading-none border-solar/25 rounded-full bg-transparent\" data-slot=\"sidebar-menu-badge\" data-sidebar=\"menu-badge\">New</div></a></li><li data-slot=\"sidebar-menu-item\" data-sidebar=\"menu-item\" class=\"group/menu-item relative\"><a data-slot=\"sidebar-menu-button\" data-sidebar=\"menu-button\" class=\"peer/menu-button group/menu-button outline-hidden ring-primary flex w-full items-center gap-2 overflow-hidden p-2 text-left ring-inset focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&amp;&gt;span:last-child]:truncate [&amp;_[data-slot=icon]]:size-4 [&amp;_[data-slot=icon]]:shrink-0 [&amp;_svg]:size-4 [&amp;_svg]:shrink-0 dark:hover:bg-surface-l3 dark:active:bg-surface-l3 group-has-data-[sidebar=menu-action]/menu-item:pr-8 relative h-8 rounded-[10px] px-2 py-1.5 text-[13px] font-medium text-fg-muted hover:text-primary hover:bg-overlay-hover active:text-primary active:bg-overlay-hover data-active:bg-base data-active:text-primary data-active:font-medium dark:data-active:bg-surface-l3 group-has-data-[sidebar=menu-badge]/menu-item:pr-2 transition-colors duration-200\" href=\"/developers/pricing\"><span class=\"min-w-0 truncate\">Pricing</span></a></li><li data-slot=\"sidebar-menu-item\" data-sidebar=\"menu-item\" class=\"group/menu-item relative\"><a data-slot=\"sidebar-menu-button\" data-sidebar=\"menu-button\" class=\"peer/menu-button group/menu-button outline-hidden ring-primary flex w-full items-center gap-2 overflow-hidden p-2 text-left ring-inset focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&amp;&gt;span:last-child]:truncate [&amp;_[data-slot=icon]]:size-4 [&amp;_[data-slot=icon]]:shrink-0 [&amp;_svg]:size-4 [&amp;_svg]:shrink-0 dark:hover:bg-surface-l3 dark:active:bg-surface-l3 group-has-data-[sidebar=menu-action]/menu-item:pr-8 relative h-8 rounded-[10px] px-2 py-1.5 text-[13px] font-medium text-fg-muted hover:text-primary hover:bg-overlay-hover active:text-primary active:bg-overlay-hover data-active:bg-base data-active:text-primary data-active:font-medium dark:data-active:bg-surface-l3 group-has-data-[sidebar=menu-badge]/menu-item:pr-2 transition-colors duration-200\" href=\"/developers/release-notes\"><span class=\"min-w-0 truncate\">Release Notes<","test_state":"🟢 works","tested_at":"2026-09-06T10:40:46.837Z","invocation_curl":"curl -sS -X POST 'https://ops.miscsubjects.com/api/dispatch' \\\n  -H \"x-terminal-key: $TERMINAL_KEY\" \\\n  -H 'content-type: application/json' \\\n  --data '{\"key\":\"PROVIDER_DOCS\",\"body\":\"\"}'","execution":null,"connection_id":null,"aliases":null,"effects":"[\"read\"]","visibility":null,"origin":null,"returns":null,"context":null,"verification_mode":"safe","ontology":"models","provider":"build","tier":"standard","how_to_call":[{"family":"HTTP","id":"curl","label":"curl — the canonical call","when":"Any terminal or script. {key, body}: the arguments are one string, pipe-separated in the order below. The answer is {ok, ran, result, trace_id, receipt}.","code":"curl -sS -X POST 'https://ops.miscsubjects.com/api/dispatch' \\\n  -H \"x-terminal-key: $TERMINAL_KEY\" \\\n  -H 'content-type: application/json' \\\n  --data '{\"key\":\"PROVIDER_DOCS\",\"body\":\"\"}'"},{"family":"HTTP","id":"named","label":"curl — named arguments","when":"The same door with arguments by name: dispatch puts them in the row's order. Add \"idempotency_key\":\"…\" to make a retry safe (72 hours), \"shape\":true to see the request without sending it.","code":"curl -sS -X POST 'https://ops.miscsubjects.com/api/dispatch' \\\n  -H \"x-terminal-key: $TERMINAL_KEY\" \\\n  -H 'content-type: application/json' \\\n  --data '{\"key\":\"PROVIDER_DOCS\",\"args\":{}}'"},{"family":"HTTP","id":"url","label":"One URL — Safari, a Shortcut, any fetch tool","when":"A GET that runs the call from one address. The address holds a link scoped to this row that expires (ttl in seconds, uses= to cap the count) — never the master key. https://miscsubjects.com/web/run/PROVIDER_DOCS?body=…&share=… is the same call for a browser model. Run mints a one-use link for itself.","code":"# 1. a link that runs only PROVIDER_DOCS, for an hour (share_token in the answer):\ncurl -sS 'https://ops.miscsubjects.com/api/dispatch?mint_share=1&scope=row:PROVIDER_DOCS&ttl=3600' \\\n  -H \"x-terminal-key: $TERMINAL_KEY\"\n\n# 2. the address — paste it in Safari, a Shortcut or a model's fetch tool:\nhttps://ops.miscsubjects.com/api/dispatch?invoke=PROVIDER_DOCS&share=<share_token>"},{"family":"MCP","id":"jsonrpc","label":"MCP over HTTP — misc_run","when":"The build's MCP server. misc_run reaches every row by key and leaves a receipt; misc_find finds the key from a phrase. The answer is result.content[0].text.","code":"curl -sS -X POST 'https://ops.miscsubjects.com/api/mcp' \\\n  -H 'accept: application/json, text/event-stream' \\\n  -H \"authorization: Bearer $MCP_TOKEN\" \\\n  -H 'content-type: application/json' \\\n  --data '{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"tools/call\",\"params\":{\"name\":\"misc_run\",\"arguments\":{\"key\":\"PROVIDER_DOCS\",\"args\":{}}}}'"},{"family":"MCP","id":"claude_code","label":"Claude Code","when":"Claude Code (terminal, desktop, web). The same server works in any Claude Code session once added.","code":"# once, on any machine:\nclaude mcp add --transport http miscsubjects https://ops.miscsubjects.com/api/mcp --header \"Authorization: Bearer $MCP_TOKEN\"\n# then in a session, the model calls:\nmcp__miscsubjects__misc_run {\"key\":\"PROVIDER_DOCS\",\"args\":{}}"},{"family":"CLI","id":"misc","label":"misc (on your Mac)","when":"The misc CLI in ~/.local/bin: its words go to /api/resolve (plan, then run), with TERMINAL_KEY from the vault. Arguments are positional, in the order above. `misc find \"words\"` finds a row.","code":"misc run PROVIDER_DOCS\nmisc provider docs"},{"family":"CLI","id":"console_app","label":"console-app","when":"The Console's own CLI. It reads the key from ~/.build-vault.env or `console-app login`.","code":"npm install -g https://miscsubjects.com/download/llmasos-console-1.1.0.tgz   # once\nconsole-app call PROVIDER_DOCS ''\nconsole-app how PROVIDER_DOCS   # this page, in the terminal"},{"family":"CLI","id":"line","label":"One line of text — the build grammar","when":"/api/resolve parses the same line everywhere: \"run KEY a b\" (arguments in order, quoted when they hold spaces), the key's words (\"provider docs …\"), or a phrase it matches to a row. POST runs; {\"run\":false} returns the plan without running it.","code":"# typed, texted to the build, or emitted by a model with no tools:\nrun PROVIDER_DOCS\n\ncurl -sS -X POST 'https://ops.miscsubjects.com/api/resolve' \\\n  -H \"x-terminal-key: $TERMINAL_KEY\" \\\n  -H 'content-type: application/json' \\\n  --data '{\"line\":\"run PROVIDER_DOCS\",\"run\":true}'"},{"family":"Agents","id":"tag","label":"Tag form — inside an answer","when":"What a model in this build writes mid-answer to call a row; both tags always, even with nothing between them. {\"emit\": text} runs every tag in a piece of text and returns each result.","code":"[PROVIDER_DOCS][/PROVIDER_DOCS]\n\n# run text that carries tags, exactly as a model wrote it:\ncurl -sS -X POST 'https://ops.miscsubjects.com/api/dispatch' \\\n  -H \"x-terminal-key: $TERMINAL_KEY\" \\\n  -H 'content-type: application/json' \\\n  --data '{\"emit\":\"[PROVIDER_DOCS][/PROVIDER_DOCS]\"}'"},{"family":"Phone","id":"shortcut","label":"iPhone Shortcut — Get Contents of URL","when":"A Shortcut on the phone, a Siri phrase, an Action Button, or an automation. Swap body for Ask for Input to fill arguments at run time.","code":"Action:   Get Contents of URL\nURL:      https://ops.miscsubjects.com/api/dispatch\nMethod:   POST\nHeaders:  x-terminal-key  →  (Text) your terminal key\n          content-type    →  application/json\nRequest Body: JSON\n          key   (Text)  →  PROVIDER_DOCS\n          body  (Text)  →  (empty)\nThen:     Get Dictionary Value  result  from  Contents of URL"},{"family":"Webhook","id":"webhook","label":"A webhook any service can call","when":"Stripe, GitHub, Slack, Zapier, a form, a cron elsewhere. The hook id is the credential for an unsigned sender and it may run nothing but PROVIDER_DOCS. mode \"sync\" answers with the result; \"async\" answers 202 at once.","code":"# 1. once: make a hook that may run only PROVIDER_DOCS (the answer holds its id and url)\ncurl -sS -X POST 'https://ops.miscsubjects.com/api/hooks' \\\n  -H \"x-terminal-key: $TERMINAL_KEY\" \\\n  -H 'content-type: application/json' \\\n  --data '{\"label\":\"PROVIDER_DOCS webhook\",\"source\":\"url\",\"allow_keys\":[\"PROVIDER_DOCS\"],\"effects_max\":\"read\",\"mode\":\"sync\"}'\n\n# 2. then any service POSTs the arguments, by name, to that url:\ncurl -sS -X POST 'https://ops.miscsubjects.com/hook/<hook id>/PROVIDER_DOCS' \\\n  -H 'content-type: application/json' \\\n  --data '{}'"},{"family":"Upstream","id":"upstream","label":"The raw request the build makes (GET docs.x.ai)","when":"Straight to the service, bypassing the build: no receipt, no ledger, no gates. Credentials are the vault variables the row names.","code":"curl -sS -X GET 'https://docs.x.ai'"}],"row_num":21,"_rest":{"read":"GET /api/directory/PROVIDER_DOCS","update":"PUT /api/directory/PROVIDER_DOCS","patch":"PATCH /api/directory/PROVIDER_DOCS","delete":"DELETE /api/directory/PROVIDER_DOCS","invoke":"POST /api/dispatch {\"key\":\"PROVIDER_DOCS\",\"body\":\"<args>\"}","model_call":"POST /api/invoke {\"key\":\"PROVIDER_DOCS\",\"input\":\"<message>\"}  ·  batch: {\"key\":\"PROVIDER_DOCS\",\"inputs\":[\"a\",\"b\",\"c\"]}","lab":"/admin/prompts/PROVIDER_DOCS"},"_schema":{"key":"string · primary key · the invocation name","type":"fn | http | agent | flow","target":"fn: FN_MAP name · http: \"METHOD url\" (e.g. \"GET https://…/$1\") · agent: model id · flow: \"\" (content holds the DSL)","auth":"http only: \"bearer:ENV_VAR\" | \"headers:{...}\" | \"query:k=$ENV\" | \"\"","content":"fn/http: \"# docs\\n<arg template>\" · agent: the system prompt body · flow: the DSL","includes":"agent only: comma-separated prompt_block keys (e.g. BLOCK_VOICE,BLOCK_ROUTING) composed before content at runtime","category":"string tag","allowed_categories":"csv of categories, or \"*\"","seq":"int (sort)","enabled":"1|0","planner_visible":"1|0","planner_rank":"int","input_schema":"optional JSON string","examples":"optional JSON string","object_kind":"optional canonical object kind (page, route, prompt, model, sheet, source, law, skill, store, external, capability)","descriptor_json":"canonical miscsubjects/environment-object/1 JSON: identity, exact operations, relationships, governance, comparables, representations","descriptor_rev":"monotonic descriptor revision; incremented whenever descriptor_json changes","descriptor_hash":"sha256 of canonical descriptor JSON","invocation":"the raw REST JSON that invokes this row: {method,url,headers,body} with the credential left as INJECTED_BY_WORKER; written by POST /api/directory/<key>/test","invocation_curl":"the same request as a curl that runs when pasted into the owner's terminal: credential written as the vault variable for its host ($XAI_API_KEY, $TERMINAL_KEY)","last_status":"transport record of the last test: {http, ok, ms, trace_id, ledger, error, at} — or {skipped, reason}","last_response":"the full payload the last test returned (up to 60k chars)","test_state":"🟢 works | 🔴 broken | 🟡 untested — decided only by POST /api/directory/<key>/test, never by hand","tested_at":"when test_state was decided","row_num":"int · computed · 1-based position in the canonical directory list (stable for a given ordering)"},"_object":{"identity":"directory:PROVIDER_DOCS","object_type":"directory-object","representations":{"article":"/a/directory/PROVIDER_DOCS","json":"/api/directory/PROVIDER_DOCS","skill":"/api/directory/PROVIDER_DOCS?format=skill","oip_contract":"/api/dispatch?key=PROVIDER_DOCS"},"ontology":{"parent":"category:llm","siblings":[{"id":"directory:CC_MIRROR","key":"CC_MIRROR","relation":"shares_capability_family","article":"/a/directory/CC_MIRROR","skill":"/api/directory/CC_MIRROR?format=skill"},{"id":"directory:CODE_AUDIT","key":"CODE_AUDIT","relation":"shares_capability_family","article":"/a/directory/CODE_AUDIT","skill":"/api/directory/CODE_AUDIT?format=skill"},{"id":"directory:GEMINI_GENERATE","key":"GEMINI_GENERATE","relation":"shares_capability_family","article":"/a/directory/GEMINI_GENERATE","skill":"/api/directory/GEMINI_GENERATE?format=skill"},{"id":"directory:GW_MODELS","key":"GW_MODELS","relation":"shares_capability_family","article":"/a/directory/GW_MODELS","skill":"/api/directory/GW_MODELS?format=skill"},{"id":"directory:PANEL","key":"PANEL","relation":"shares_capability_family","article":"/a/directory/PANEL","skill":"/api/directory/PANEL?format=skill"},{"id":"directory:PROVIDERS","key":"PROVIDERS","relation":"shares_capability_family","article":"/a/directory/PROVIDERS","skill":"/api/directory/PROVIDERS?format=skill"}]},"law":"This directory definition is also a human article, model Skill, and invocable OIP object under one identity."},"_environment":{"ref":"directory://provider_docs","descriptor_rev":1,"descriptor_hash":null,"describe":"/api/environment/objects?ref=directory%3A%2F%2Fprovider_docs","governance":"/api/environment/governance?ref=directory%3A%2F%2Fprovider_docs","comparables":"/api/environment/comparables?ref=directory%3A%2F%2Fprovider_docs","manual":"/api/environment?format=markdown","edit_descriptor":"PATCH /api/directory/PROVIDER_DOCS {\"descriptor_json\":{...},\"expected_descriptor_rev\":1}"}}