apis.directory

Portkey AI Gateway vs Codebase API

Portkey AI Gatewayby PortkeyPaid 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

20 different5 stated by only one

The basics

Made byPortkey AI Gateway: PortkeyCodebase API: Codebase
What it isPortkey AI Gateway: One API in front of 1,600+ LLMs with routing, fallbacks, caching, guardrails, prompt management, logging and an MCP gateway that governs access to MCP serversCodebase 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
AccessPortkey AI Gateway: HTTP, SDK, Hosted UICodebase API: HTTP, CLI, MCP, Hosted UI
Still on salePortkey AI Gateway: Acquired sold under old nameCodebase API: Yes

What they work on

Price

PricesPortkey AI Gateway:
  • Production$49 /month
Codebase API:
  • Indie$16 /month
  • Builder$33 /month
  • Pro$65 /month

Buying and paying

Agent gets a key alonePortkey AI Gateway: Nokey from the dashboardCodebase API: Yespaying the x402 offer returns 'x402.apiKey' for a wallet-keyed account
First call without a keyPortkey AI Gateway: Noevery call needs a key or OAuth tokenCodebase API: Noa keyless call answers 402 until paid
Agent can payPortkey AI Gateway: Noplan bought by card in the web app by a person; no agent payment protocolCodebase API: YesPOST /api/v1/builds with no key answers 402 PAYMENT-REQUIRED (x402 v2, USDC on Base); payment returns a key
Payment railsPortkey AI Gateway: cardcard checkout for self-serve plansCodebase API: card, cryptocard plans; USDC on Base over x402
Payment protocolsPortkey AI Gateway: noneno x402, MPP, ACP or AP2 on pages readCodebase API: x402x402Version 2 in the PAYMENT-REQUIRED header
Subscription requiredPortkey AI Gateway: NoDeveloper plan freeCodebase API: Nox402 payment buys credits with no plan
Smallest purchase (USD)Portkey AI Gateway: From $49Production $49/monthCodebase API: Not stated
Price published as dataPortkey AI Gateway: Noprices only in the HTML pageCodebase API: Yesthe 402 PAYMENT-REQUIRED header carries amount, asset and credits
Receipt or usage recordPortkey AI Gateway: Not statedCodebase API: Yes402 response states 'x402.creditsGranted'; out-of-credit answers 402 insufficient-credits

Reading and signing up

Public pricesPortkey AI Gateway: YesDeveloper free, Production $49/month, Enterprise customCodebase API: Yesplan prices on the public pricing page
Self-serve sign-upPortkey AI Gateway: Yes'Start for Free'Codebase API: Yesaccount by web sign-up; key or OAuth from the account
Free usePortkey AI Gateway: Yes'Developer Free Forever ... 10k recorded logs per month'Codebase API: Yes'Free $ 0 /mo ... 1,000 credits a month'
OpenAPIPortkey AI Gateway: Yeshttps://raw.githubusercontent.com/Portkey-AI/openapi/master/openapi.yamlCodebase API: Yes'OpenAPI 3.1 spec' at codebase.design/api-docs per llms.txt
OpenAPI versionPortkey AI Gateway: 3.0.0openapi: 3.0.0Codebase API: 3.1stated in llms.txt
Docs without loginPortkey AI Gateway: Yesdocs publicCodebase API: YesAPI reference readable without an account
llms.txtPortkey AI Gateway: Yeshttps://portkey.ai/llms.txt and portkey.ai/docs/llms.txtCodebase API: Yescodebase.design/llms.txt
Docs as MarkdownPortkey AI Gateway: Yesdocs pages say 'this page is available as Markdown'Codebase API: NoAccept: text/markdown returned text/html on the docs page tested

MCP

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