apis.directory

LiteLLM AI Gateway vs Codebase API

LiteLLM AI Gatewayby Berrie AIPaid fromNot statedAccessHTTP, SDK, Hosted UIAgentsNot 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 different7 stated by only one1 the same on both

The basics

Made byLiteLLM AI Gateway: Berrie AICodebase API: Codebase
What it isLiteLLM AI Gateway: Open-source, self-hosted AI gateway and Python SDK that puts 100+ LLM providers behind one OpenAI-compatible API, with virtual keys, budgets, spend tracking, routing, fallbacks and guardrails; an Enterprise licence adds SSO, audit logs and supportCodebase 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
AccessLiteLLM AI Gateway: HTTP, SDK, Hosted UICodebase API: HTTP, CLI, MCP, Hosted UI
Still on saleLiteLLM AI Gateway: YesCodebase API: Yes

What they work on

Price

PricesLiteLLM AI Gateway: Not statedCodebase API:
  • Indie$16 /month
  • Builder$33 /month
  • Pro$65 /month

Buying and paying

Agent gets a key aloneLiteLLM AI Gateway: Yesquickstart writes a master key to .env with no account; 'It asks no questions ... under Claude Code'Codebase API: Yespaying the x402 offer returns 'x402.apiKey' for a wallet-keyed account
First call without a keyLiteLLM AI Gateway: Nocalls need a virtual key or the master keyCodebase API: Noa keyless call answers 402 until paid
Agent can payLiteLLM AI Gateway: NoEnterprise by sales contract; OSS freeCodebase API: YesPOST /api/v1/builds with no key answers 402 PAYMENT-REQUIRED (x402 v2, USDC on Base); payment returns a key
Payment railsLiteLLM AI Gateway: invoice, marketplace'directly, or through AWS Marketplace and authorized resellers'Codebase API: card, cryptocard plans; USDC on Base over x402
Payment protocolsLiteLLM AI Gateway: noneno x402, MPP, ACP or AP2 on pages readCodebase API: x402x402Version 2 in the PAYMENT-REQUIRED header
Subscription requiredLiteLLM AI Gateway: NoOSS free; Enterprise annualCodebase API: Nox402 payment buys credits with no plan
Price published as dataLiteLLM AI Gateway: Noprices only in the HTML pageCodebase API: Yesthe 402 PAYMENT-REQUIRED header carries amount, asset and credits
Receipt or usage recordLiteLLM AI Gateway: Not statedCodebase API: Yes402 response states 'x402.creditsGranted'; out-of-credit answers 402 insufficient-credits

Reading and signing up

Public pricesLiteLLM AI Gateway: Some prices are on a public pageOpen Source $0; Enterprise 'Talk to sales'Codebase API: Yesplan prices on the public pricing page
Self-serve sign-upLiteLLM AI Gateway: Yesinstall script or pip, no accountCodebase API: Yesaccount by web sign-up; key or OAuth from the account
Free useLiteLLM AI Gateway: Yes'The open-source gateway is free to self-host, forever'; 30-day Enterprise trial key by emailCodebase API: Yes'Free $ 0 /mo ... 1,000 credits a month'
OpenAPILiteLLM AI Gateway: Not statedCodebase API: Yes'OpenAPI 3.1 spec' at codebase.design/api-docs per llms.txt
OpenAPI versionLiteLLM AI Gateway: Not statedCodebase API: 3.1stated in llms.txt
Docs without loginLiteLLM AI Gateway: Yesdocs.litellm.ai publicCodebase API: YesAPI reference readable without an account
llms.txtLiteLLM AI Gateway: Yeshttps://www.litellm.ai/llms.txt and https://docs.litellm.ai/llms.txtCodebase API: Yescodebase.design/llms.txt
Docs as MarkdownLiteLLM AI Gateway: NoAccept: text/markdown returned HTML or JSON on the docs and site URLsCodebase API: NoAccept: text/markdown returned text/html on the docs page tested

MCP

Vendor MCP serverLiteLLM AI Gateway: Not statedCodebase API: Yeshttps://codebase.design/api/mcp
MCP server hosted by the vendorLiteLLM AI Gateway: Not statedCodebase API: Yeshosted by the vendor
MCP sign-inLiteLLM AI Gateway: 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.

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.