GitLab REST and GraphQL API vs Codebase API
GitLab REST and GraphQL APIby GitLabPaid fromNot statedAccessHTTP, CLI, 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
15 different9 stated by only one1 the same on both
The basics
What it isGitLab REST and GraphQL API: Reads and writes projects, repositories, issues, merge requests, commits, pipelines and packages on GitLabCodebase 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
AccessGitLab REST and GraphQL API: HTTP, CLI, MCPCodebase API: HTTP, CLI, MCP, Hosted UI
Still on saleGitLab REST and GraphQL API: YesCodebase API: Yes
What they work on
BothDeployment
Only one of themGitLab REST and GraphQL API: CommentCommitIssuePull requestRepositorySoftware packageWorkflow runUserCI/CD pipelineGroup+11 moreCodebase API: Async jobWebsiteWork projectAI model
Price
PricesGitLab REST and GraphQL API: Codebase API:
- Premium$29 /user/month, billed annually
- Storage$5 /month for 10 GiB, billed annually
- Enterprise Agile Planning$15 /user/month
- Indie$16 /month
- Builder$33 /month
- Pro$65 /month
Buying and paying
Agent gets a key aloneGitLab REST and GraphQL API: Nokeys, tokens or OAuth apps are created by a signed-in person in the vendor UICodebase API: Yespaying the x402 offer returns 'x402.apiKey' for a wallet-keyed account
First call without a keyGitLab REST and GraphQL API: Not statedCodebase API: Noa keyless call answers 402 until paid
Agent can payGitLab REST and GraphQL API: Nocheckout needs a person with a card, or a sales contractCodebase API: YesPOST /api/v1/builds with no key answers 402 PAYMENT-REQUIRED (x402 v2, USDC on Base); payment returns a key
Payment railsGitLab REST and GraphQL API: Not statedCodebase API: card, cryptocard plans; USDC on Base over x402
Payment protocolsGitLab REST and GraphQL API: Not statedCodebase API: x402x402Version 2 in the PAYMENT-REQUIRED header
Subscription requiredGitLab REST and GraphQL API: NoFree tierCodebase API: Nox402 payment buys credits with no plan
Price published as dataGitLab REST and GraphQL API: Not statedCodebase API: Yesthe 402 PAYMENT-REQUIRED header carries amount, asset and credits
Receipt or usage recordGitLab REST and GraphQL API: Not statedCodebase API: Yes402 response states 'x402.creditsGranted'; out-of-credit answers 402 insufficient-credits
Pay per callGitLab REST and GraphQL API: Nocompute minutes $10 per 1,000 are CI, not API callsCodebase API: Not stated
Reading and signing up
Public pricesGitLab REST and GraphQL API: Yestiers and add-ons on pricing pageCodebase API: Yesplan prices on the public pricing page
Self-serve sign-upGitLab REST and GraphQL API: Yesno card requiredCodebase API: Yesaccount by web sign-up; key or OAuth from the account
Free useGitLab REST and GraphQL API: YesFree tier, 5 users per top-level groupCodebase API: Yes'Free $ 0 /mo ... 1,000 credits a month'
OpenAPIGitLab REST and GraphQL API: Yesdoc/api/openapi/openapi_v2.yaml in the gitlab repoCodebase API: Yes'OpenAPI 3.1 spec' at codebase.design/api-docs per llms.txt
OpenAPI versionGitLab REST and GraphQL API: Not statedCodebase API: 3.1stated in llms.txt
Docs without loginGitLab REST and GraphQL API: Yesdocs.gitlab.comCodebase API: YesAPI reference readable without an account
llms.txtGitLab REST and GraphQL API: Yesabout.gitlab.com/llms.txtCodebase API: Yescodebase.design/llms.txt
Docs as MarkdownGitLab REST and GraphQL API: Not statedCodebase API: NoAccept: text/markdown returned text/html on the docs page tested
MCP
Vendor MCP serverGitLab REST and GraphQL API: YesGitLab MCP server and Orbit MCP endpoint in docs.gitlab.comCodebase API: Yeshttps://codebase.design/api/mcp
MCP server hosted by the vendorGitLab REST and GraphQL API: YesCodebase API: Yeshosted by the vendor
MCP sign-inGitLab REST and GraphQL API: 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.

