apis.directory

OpenRouter vs Codebase API

OpenRouterby OpenRouterPaid fromNot statedAccessHTTP, SDK, MCPAgentsNot 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

16 different8 stated by only one1 the same on both

The basics

Made byOpenRouter: OpenRouterCodebase API: Codebase
What it isOpenRouter: One OpenAI-compatible API to 600+ models from 80+ providers, passing provider prices through plus a platform feeCodebase 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
AccessOpenRouter: HTTP, SDK, MCPCodebase API: HTTP, CLI, MCP, Hosted UI
Still on saleOpenRouter: YesCodebase API: Yes

What they work on

Only one of themOpenRouter: AI answerImageCodebase API: Async jobDeploymentWebsiteWork project

Price

PricesOpenRouter: Not statedCodebase API:
  • Indie$16 /month
  • Builder$33 /month
  • Pro$65 /month

Buying and paying

Agent gets a key aloneOpenRouter: NoCodebase API: Yespaying the x402 offer returns 'x402.apiKey' for a wallet-keyed account
First call without a keyOpenRouter: Not statedCodebase API: Noa keyless call answers 402 until paid
Agent can payOpenRouter: Not statedCodebase API: YesPOST /api/v1/builds with no key answers 402 PAYMENT-REQUIRED (x402 v2, USDC on Base); payment returns a key
Payment railsOpenRouter: creditsprepaid creditsCodebase API: card, cryptocard plans; USDC on Base over x402
Payment protocolsOpenRouter: noneno protocol named in the batch paymentRails cellCodebase API: x402x402Version 2 in the PAYMENT-REQUIRED header
Subscription requiredOpenRouter: Nopay as you go on StandardCodebase API: Nox402 payment buys credits with no plan
Price published as dataOpenRouter: Not statedCodebase API: Yesthe 402 PAYMENT-REQUIRED header carries amount, asset and credits
Receipt or usage recordOpenRouter: Not statedCodebase API: Yes402 response states 'x402.creditsGranted'; out-of-credit answers 402 insufficient-credits
Pay per callOpenRouter: Yesper token at provider price plus 5.5% feeCodebase API: Not stated

Reading and signing up

Public pricesOpenRouter: Yesplatform fee by plan; model prices on each model pageCodebase API: Yesplan prices on the public pricing page
Self-serve sign-upOpenRouter: YesCodebase API: Yesaccount by web sign-up; key or OAuth from the account
Free useOpenRouter: Yes25+ free models, 50 requests/dayCodebase API: Yes'Free $ 0 /mo ... 1,000 credits a month'
OpenAPIOpenRouter: Yesopenrouter.ai/openapi.jsonCodebase API: Yes'OpenAPI 3.1 spec' at codebase.design/api-docs per llms.txt
OpenAPI versionOpenRouter: Not statedCodebase API: 3.1stated in llms.txt
Docs without loginOpenRouter: YesCodebase API: YesAPI reference readable without an account
llms.txtOpenRouter: YesCodebase API: Yescodebase.design/llms.txt
Docs as MarkdownOpenRouter: Not statedCodebase API: NoAccept: text/markdown returned text/html on the docs page tested

MCP

Vendor MCP serverOpenRouter: Yeshttps://mcp.openrouter.ai/mcp, hosted by OpenRouter (directories call it docs-only)Codebase API: Yeshttps://codebase.design/api/mcp
MCP server hosted by the vendorOpenRouter: YesCodebase API: Yeshosted by the vendor
MCP sign-inOpenRouter: Signs in with OAuthstates "OAuth in the browser"Codebase 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.

For API makers

Is your API missing?

Send one link and we add it to the graph: what it works on, what it costs and what it connects to.

Free, or $100 one time for review in 1 to 2 days.