Grok API (text) vs Codebase API
Grok API (text)by xAIPaid fromNot statedAccessHTTP, SDKAgentsNot agent-friendlyAPI QA score[SCORE]View API
Codebase APIby CodebasePaid from$16 /monthAccessHTTP, CLI, MCP, Hosted UIAgentsAgent-friendlyAPI QA score[SCORE]View API
Fact by fact
10 different14 stated by only one1 the same on both
The basics
What it isGrok API (text): Grok 4.7 and other Grok language models by API, with tools for web and X search, code execution and remote MCPCodebase API: App-builder API that builds a web app from a prompt, returns a preview and the source, paid from monthly credits or per build over x402 with no account
AccessGrok API (text): HTTP, SDKCodebase API: HTTP, CLI, MCP, Hosted UI
Still on saleGrok API (text): YesCodebase API: Yes
What they work on
BothAI model
Price
PricesGrok API (text): Not statedCodebase API:
- Indie$16 /month
- Builder$33 /month
- Pro$65 /month
Buying and paying
Agent gets a key aloneGrok API (text): Not statedCodebase API: Yespaying the x402 offer returns 'x402.apiKey' for a wallet-keyed account
First call without a keyGrok API (text): Not statedCodebase API: Noa keyless call answers 402 until paid
Agent can payGrok API (text): NoCodebase API: YesPOST /api/v1/builds with no key answers 402 PAYMENT-REQUIRED (x402 v2, USDC on Base); payment returns a key
Payment railsGrok API (text): Not statedCodebase API: card, cryptocard plans; USDC on Base over x402
Payment protocolsGrok API (text): Not statedCodebase API: x402x402Version 2 in the PAYMENT-REQUIRED header
Subscription requiredGrok API (text): NoCodebase API: Nox402 payment buys credits with no plan
Price published as dataGrok API (text): Not statedCodebase API: Yesthe 402 PAYMENT-REQUIRED header carries amount, asset and credits
Receipt or usage recordGrok API (text): Not statedCodebase API: Yes402 response states 'x402.creditsGranted'; out-of-credit answers 402 insufficient-credits
Pay per callGrok API (text): Yesper tokenCodebase API: Not stated
Reading and signing up
Public pricesGrok API (text): YesCodebase API: Yesplan prices on the public pricing page
Self-serve sign-upGrok API (text): YesCodebase API: Yesaccount by web sign-up; key or OAuth from the account
Free useGrok API (text): Not statedCodebase API: Yes'Free $ 0 /mo ... 1,000 credits a month'
OpenAPIGrok API (text): Yesdocs.x.ai/openapi.jsonCodebase API: Yes'OpenAPI 3.1 spec' at codebase.design/api-docs per llms.txt
OpenAPI versionGrok API (text): Not statedCodebase API: 3.1stated in llms.txt
Docs without loginGrok API (text): YesCodebase API: YesAPI reference readable without an account
llms.txtGrok API (text): Not statedCodebase API: Yescodebase.design/llms.txt
Docs as MarkdownGrok API (text): Not statedCodebase API: NoAccept: text/markdown returned text/html on the docs page tested
MCP
Vendor MCP serverGrok API (text): The vendor's MCP server only searches its docsxAI Docs MCP only; the API can call remote MCP tools; the MCP server only searches documentation; asRecorded: noCodebase API: Yeshttps://codebase.design/api/mcp
MCP server hosted by the vendorGrok API (text): Not statedCodebase API: Yeshosted by the vendor
MCP sign-inGrok API (text): Not statedCodebase API: Signs in with OAuth401 with OAuth protected-resource metadata; also accepts a Bearer API key
Jobs both do
Open a job to see every API that does it.

