Work with this as data
Every API here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for apis
7 MCP tools reach this
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This API
curl "https://apis.io/api/v1/apis/rokha-ai:rokha-ai-llm-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
OpenAPI Specification
openapi: 3.2.0
info:
contact:
name: Rokha
url: https://rokha.ai
description: 'The public API of Rokha, the Agent Lab. Build a tool,
run it for real with a trace, sell it or hire it out. Agents use the same
doors over MCP at `/mcp/jsonrpc`. Versioning: `GET /api/schema/version`.'
license:
name: MIT
url: https://github.com/rokha-ai/rokha-sdk/blob/main/LICENSE
title: Rokha Public Llm API
version: 1.0.0
servers:
- description: Local development (default Erebus port)
url: http://localhost:3000
- description: Production (hosted Erebus)
url: https://erebus.rokha.ai
security: []
tags:
- description: Model proxy on your own key
name: LLM
paths:
/api/v1/llm/proxy:
post:
description: 'JWT-required. Forwards an Anthropic-shaped messages request to
Anthropic using the caller''s own key when they have added one
(every account), or Rokha''s own key as a rate-limited fallback
for **Lab accounts only**: a free account with no key of its
own gets 402 `studio_required`; a Lab account with no key
when Rokha''s key is unavailable gets 402 `no_llm_key`. Only
`claude-*` models are accepted; default is
`claude-haiku-4-5-20251001`. Streaming is rejected in this
slice (v0.3.2 will add it).
Body and response mirror Anthropic''s `/v1/messages` shape
verbatim, so existing Anthropic SDKs can be pointed at this
URL with no other changes (set the base to
`https://erebus.rokha.ai/api/v1/llm` and send a Rokha JWT
instead of `x-api-key`).'
operationId: llmProxy
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/AnthropicMessagesRequest'
required: true
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/AnthropicMessagesResponse'
description: Forwarded response from Anthropic
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
description: Bad request (e.g. unsupported model or stream=true)
'401':
$ref: '#/components/responses/Unauthorized'
'402':
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
description: '`studio_required` (a Free account with no key of its own) or `no_llm_key`'
'429':
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
description: Rate limit on Rokha's own key exceeded (Lab fallback)
'502':
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
description: Upstream Anthropic error
'503':
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
description: Rokha's key is not configured AND the caller has no key of their own
security:
- bearerAuth: []
summary: Forward an Anthropic /v1/messages request through Rokha
tags:
- LLM
components:
schemas:
AnthropicMessagesRequest:
additionalProperties: true
description: 'Anthropic `/v1/messages` request, forwarded verbatim except
`model` which is validated (must start with `claude-`) and
defaulted to `claude-haiku-4-5-20251001`. `stream` is rejected
in this slice (v0.3.2 adds it). Other fields are passed through
unchanged.
'
properties:
max_tokens:
example: 1024
type: integer
messages:
items:
additionalProperties: true
properties:
content:
oneOf:
- type: string
- items:
additionalProperties: true
type: object
type: array
role:
enum:
- user
- assistant
type: string
required:
- role
- content
type: object
type: array
model:
example: claude-haiku-4-5-20251001
type: string
stream:
default: false
description: Must be false in v0.3.1. Streaming arrives in v0.3.2.
type: boolean
system:
oneOf:
- type: string
- items:
additionalProperties: true
type: object
type: array
temperature:
type: number
tools:
items:
additionalProperties: true
type: object
type: array
required:
- messages
type: object
AnthropicMessagesResponse:
additionalProperties: true
description: Anthropic `/v1/messages` response shape, forwarded verbatim.
properties:
content:
items:
additionalProperties: true
type: object
type: array
id:
type: string
model:
type: string
role:
example: assistant
type: string
stop_reason:
nullable: true
type: string
type:
example: message
type: string
usage:
additionalProperties: true
properties:
input_tokens:
type: integer
output_tokens:
type: integer
type: object
type: object
ErrorResponse:
properties:
code:
type: string
error:
description: Machine-readable error code
type: string
message:
type: string
name:
type: string
required:
- error
type: object
responses:
Unauthorized:
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
description: Missing or invalid auth
securitySchemes:
bearerAuth:
bearerFormat: JWT
description: 'JWT issued by `/api/wallets/verify` (after `/api/wallets/challenge`),
or `/api/auth/google/callback`. Send as
`Authorization: Bearer <token>`. Refresh via `/api/auth/refresh`
before expiry (24h default).
'
scheme: bearer
type: http