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/roar-ai-com:roar-ai-com-gateway-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:
title: Roar AI Gateway API
version: 1.0.0
description: 'One key, two surfaces. The **gateway** (`/v1/*`) is OpenAI-compatible — point any OpenAI SDK at it. The **management API** (`/client/*`) lets an agent provision keys, read spend, and deploy apps. Both authenticate with a `roar_live_…` key sent as `Authorization: Bearer `. A key carries scopes (inference, keys:read, keys:write, usage:read, requests:read, apps:read, apps:deploy, data:read, projects:write, webhooks:read, webhooks:write, mcp:read, mcp:write); each `/client` route requires a specific one. There is also a hosted MCP server at `POST /mcp` exposing the same operations as tools.'
servers:
- url: https://api.roar-ai.com
security:
- BearerAuth: []
tags:
- name: Gateway
description: OpenAI-compatible inference
paths:
/v1/models:
get:
tags:
- Gateway
summary: List available models
description: 'Models reachable through the gateway, with their modalities and capabilities. Requires the `inference` scope.
**Calling from a browser.** Requests carrying an `Origin` header are refused with a 403 unless they also send `x-roar-dangerous-browser-access: true`. Your API key belongs on your server: put it in a web page and every visitor can read it, and there is no way to un-leak it afterwards. Send the header only when that is genuinely what you want — an internal tool, or an app where each person supplies their own key. Server-side calls send no `Origin` and are unaffected.'
responses:
'200':
description: A list of models
content:
application/json:
schema:
$ref: '#/components/schemas/ModelList'
'401':
description: Missing or invalid key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: 'Called from a browser without `x-roar-dangerous-browser-access: true`'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
operationId: getV1Models
x-operation-id-source: derived
/v1/models/{model}:
get:
tags:
- Gateway
summary: Retrieve one model
description: 'One entry of `GET /v1/models`, by id — what OpenAI SDKs call for `models.retrieve(id)`. A model this key cannot use is `404 model_not_found`, exactly as the list omits it. Requires the `inference` scope.
**Calling from a browser.** Requests carrying an `Origin` header are refused with a 403 unless they also send `x-roar-dangerous-browser-access: true`. Your API key belongs on your server: put it in a web page and every visitor can read it, and there is no way to un-leak it afterwards. Send the header only when that is genuinely what you want — an internal tool, or an app where each person supplies their own key. Server-side calls send no `Origin` and are unaffected.'
parameters:
- name: model
in: path
required: true
schema:
type: string
description: The model id, as `GET /v1/models` lists it
responses:
'200':
description: The model
'401':
description: Missing or invalid key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: 'Called from a browser without `x-roar-dangerous-browser-access: true`'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: No such model, or not available to this key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
operationId: getV1ModelsByModel
x-operation-id-source: derived
/v1/chat/completions:
post:
tags:
- Gateway
summary: Create a chat completion
description: 'OpenAI-compatible. Streaming (`"stream": true`) returns SSE. Routed, metered, and white-labelled. Name any model from `GET /v1/models`. Requires `inference`.
**Calling from a browser.** Requests carrying an `Origin` header are refused with a 403 unless they also send `x-roar-dangerous-browser-access: true`. Your API key belongs on your server: put it in a web page and every visitor can read it, and there is no way to un-leak it afterwards. Send the header only when that is genuinely what you want — an internal tool, or an app where each person supplies their own key. Server-side calls send no `Origin` and are unaffected.'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ChatCompletionRequest'
responses:
'200':
description: A chat completion (or SSE stream)
'401':
description: Missing or invalid key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'402':
description: Budget exceeded
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: 'Called from a browser without `x-roar-dangerous-browser-access: true`'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: Rate limited
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
operationId: postV1ChatCompletions
x-operation-id-source: derived
/v1/audio/speech:
post:
tags:
- Gateway
summary: Text to speech
description: 'OpenAI-compatible. Returns audio bytes with the provider''s content type, not JSON. Requires `inference`.
**Calling from a browser.** Requests carrying an `Origin` header are refused with a 403 unless they also send `x-roar-dangerous-browser-access: true`. Your API key belongs on your server: put it in a web page and every visitor can read it, and there is no way to un-leak it afterwards. Send the header only when that is genuinely what you want — an internal tool, or an app where each person supplies their own key. Server-side calls send no `Origin` and are unaffected.'
responses:
'200':
description: Audio bytes
content:
application/octet-stream:
schema:
type: string
format: binary
'400':
description: Bad voice, format or input length
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Missing or invalid key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
operationId: postV1AudioSpeech
x-operation-id-source: derived
/v1/audio/transcriptions:
post:
tags:
- Gateway
summary: Speech to text
description: OpenAI-compatible. `multipart/form-data` with a `file` and a `model`. Requires `inference`.
responses:
'200':
description: The transcript
'400':
description: Bad file or model
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Missing or invalid key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
operationId: postV1AudioTranscriptions
x-operation-id-source: derived
/v1/responses:
post:
tags:
- Gateway
summary: Create a response
description: 'OpenAI-compatible Responses API, for every chat model. A model served directly by a provider that offers this endpoint gets the request as sent; every other model is served the same request through our chat path and answers in the Responses shape. Those answers are not stored, so `previous_response_id`, `background` and `conversation` are refused for them — send the whole conversation in `input`, as coding tools do — and only function tools are available on them (built-in and custom tools are refused by name). `stream: true` is supported. Of the built-in tools, `web_search` runs and is billed per search on top of tokens — the rate is on each model in `GET /client/models` (`builtinTools`), and each call shows its searches in the usage log. The other built-in tools (`file_search`, `code_interpreter`, `hosted_shell`, `image_generation`, `computer_use`) are refused. Function and custom tools work normally. Requires `inference`.'
responses:
'200':
description: The response object
'400':
description: A stored-conversation field the model cannot serve, or a fee-bearing built-in tool
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Missing or invalid key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
operationId: postV1Responses
x-operation-id-source: derived
/v1/messages:
post:
tags:
- Gateway
summary: Create a message (Anthropic format)
description: 'Anthropic''s Messages API on your Roar key, so Claude Code and the Anthropic SDKs work unchanged: set `ANTHROPIC_BASE_URL` to this API''s address and use your key as `ANTHROPIC_API_KEY` (sent as `x-api-key`) or `ANTHROPIC_AUTH_TOKEN` (sent as `Authorization: Bearer`). Claude models only — any other model returns 404 naming `/v1/chat/completions`. The request is passed through as you send it: `anthropic-beta` and `anthropic-version` headers, `cache_control`, thinking, tools and new fields included. Dated model ids are accepted. `stream: true` returns Anthropic''s event stream. Errors use Anthropic''s error format. Not available: `speed`, a regional `inference_geo`, and the code execution and advisor tools, which return 400. Requires `inference`.'
responses:
'200':
description: 'The message, or an event stream when `stream: true`'
'400':
description: Invalid request, or an option this API does not offer
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Missing or invalid key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: Not a Claude model
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: Rate limited — wait for `retry-after` seconds
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
operationId: postV1Messages
x-operation-id-source: derived
/v1/messages/count_tokens:
post:
tags:
- Gateway
summary: Count tokens (Anthropic format)
description: How many input tokens a Messages request would use, without running it. Free, and not counted against your token rate, budget or balance. Same body as `POST /v1/messages`, without `max_tokens`. Requires `inference`.
responses:
'200':
description: '`{ "input_tokens": n }`'
'400':
description: Invalid request
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Missing or invalid key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: Not a Claude model
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
operationId: postV1MessagesCountTokens
x-operation-id-source: derived
/v1/images/generations:
post:
tags:
- Gateway
summary: Generate an image
description: OpenAI-compatible. Name an image model from `GET /v1/models` — the ones whose `roar_modalities` include image output. Requires `inference`.
responses:
'200':
description: The generated image(s)
'400':
description: Bad prompt, size or model
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Missing or invalid key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
operationId: postV1ImagesGenerations
x-operation-id-source: derived
/v1/images/edits:
post:
tags:
- Gateway
summary: Edit an image
description: 'OpenAI-compatible. `multipart/form-data` with `model`, `prompt` and one to 16 images in `image` (or `image[]`), and an optional `mask`; JSON with `images` as data URLs is accepted too. Use an image model whose `roar_pricing` carries `imageInputPer1M`: the images you send bill at that rate and the prompt at `inputPer1M`. The whole request may be up to 10MB. Does not stream. Requires `inference`.'
responses:
'200':
description: The edited image(s)
'400':
description: Bad prompt, image or size, or a model that cannot edit images
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Missing or invalid key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'413':
description: The images are larger than the request limit
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
operationId: postV1ImagesEdits
x-operation-id-source: derived
/v1/files:
post:
tags:
- Gateway
summary: Upload a file
description: 'OpenAI-compatible. `multipart/form-data`. Files are what a batch reads its requests from — upload with `purpose: batch`, then name the returned id in `POST /v1/batches`. Requires `inference`.'
responses:
'200':
description: The stored file
'400':
description: Bad upload
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Missing or invalid key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
operationId: postV1Files
x-operation-id-source: derived
/v1/files/{id}:
get:
tags:
- Gateway
summary: One file
description: Metadata for a file you uploaded. Requires `inference`.
parameters:
- name: id
in: path
required: true
schema:
type: string
format: uuid
responses:
'200':
description: The file
'401':
description: Missing or invalid key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: No such file
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
operationId: getV1FilesById
x-operation-id-source: derived
/v1/files/{id}/content:
get:
tags:
- Gateway
summary: A finished batch's results, by output_file_id
description: The results file a completed batch names as its `output_file_id` — what the OpenAI SDK's `files.content()` fetches. The same lines as `/v1/batches/{id}/content`. An uploaded input file is not kept for download. Requires `inference`.
parameters:
- name: id
in: path
required: true
schema:
type: string
format: uuid
responses:
'200':
description: The results
'401':
description: Missing or invalid key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: No such file, or the batch has not finished
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
operationId: getV1FilesByIdContent
x-operation-id-source: derived
/v1/batches:
get:
tags:
- Gateway
summary: List batches
description: Your batch jobs, newest first. Requires `inference`.
responses:
'200':
description: Batches
'401':
description: Missing or invalid key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
operationId: getV1Batches
x-operation-id-source: derived
post:
tags:
- Gateway
summary: Create a batch
description: OpenAI-compatible. Runs many completions offline from an uploaded file, on most models at a lower rate than live traffic. Only models whose `roar_batch` is true are accepted — check `GET /v1/models`. Requires `inference`.
responses:
'200':
description: The queued batch
'400':
description: Bad file, or a model that does not accept batches
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Missing or invalid key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
operationId: postV1Batches
x-operation-id-source: derived
/v1/batches/{id}:
get:
tags:
- Gateway
summary: One batch
description: Status and counts for a batch. THIS is the polling endpoint, and it spends the same request-rate allowance as inference — a client that polls hard has less of its minute left for model calls, which is the trade-off to make knowingly. Requires `inference`.
parameters:
- name: id
in: path
required: true
schema:
type: string
format: uuid
responses:
'200':
description: The batch
'401':
description: Missing or invalid key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: No such batch
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
operationId: getV1BatchesById
x-operation-id-source: derived
/v1/batches/{id}/cancel:
post:
tags:
- Gateway
summary: Cancel a batch
description: Stops a batch that has not finished. Work already done is still billed. Requires `inference`.
parameters:
- name: id
in: path
required: true
schema:
type: string
format: uuid
responses:
'200':
description: The cancelled batch
'401':
description: Missing or invalid key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: No such batch
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
operationId: postV1BatchesByIdCancel
x-operation-id-source: derived
/v1/batches/{id}/content:
get:
tags:
- Gateway
summary: A finished batch's results
description: The output file, once the batch has completed. Requires `inference`.
parameters:
- name: id
in: path
required: true
schema:
type: string
format: uuid
responses:
'200':
description: The results
'401':
description: Missing or invalid key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: No such batch, or it has not finished
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
operationId: getV1BatchesByIdContent
x-operation-id-source: derived
/v1/embeddings:
post:
tags:
- Gateway
summary: Create embeddings
description: OpenAI-compatible vector embeddings. Requires `inference`.
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/EmbeddingsRequest'
responses:
'200':
description: Embedding vectors
'401':
description: Missing or invalid key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
operationId: postV1Embeddings
x-operation-id-source: derived
/v1/evaluate:
post:
tags:
- Gateway
summary: Evaluate state against typed questions
description: 'Evaluation models: shared `state` plus typed `questions` in, calibrated probabilities out. A `boolean` answers with a probability, a `choice` with the selected option and a probability per option, a `score` with an interpolated value and a probability per rung. Several questions are answered in one round trip against the same state. NOT an OpenAI-compatible shape — there is no `messages` and no completion. Billed on input tokens. Requires `inference`.'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/EvaluateRequest'
responses:
'200':
description: An answer per question key
'400':
description: Malformed question, or a model that is not an evaluation model
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Missing or invalid key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
operationId: postV1Evaluate
x-operation-id-source: derived
components:
schemas:
EvaluateRequest:
type: object
required:
- model
- state
- questions
properties:
model:
type: string
state:
description: What is being judged. A string, an object or an array — passed through as given.
oneOf:
- type: string
- type: object
- type: array
items: {}
questions:
type: object
description: 'Each key names an answer in the response. `criteria` differs per type: an optional true/false gloss for `boolean`, a record of option name to description for `choice` (two or more), an ordered array lowest-to-highest for `score` (two or more).'
additionalProperties:
type: object
required:
- type
- instructions
properties:
type:
type: string
enum:
- boolean
- choice
- score
instructions:
type: string
criteria:
oneOf:
- type: object
- type: array
items:
type: string
Error:
type: object
required:
- error
properties:
error:
type: object
required:
- message
- type
- code
- param
properties:
message:
type: string
type:
type: string
code:
type: string
nullable: true
param:
type: string
nullable: true
ChatCompletionRequest:
type: object
required:
- model
- messages
properties:
model:
type: string
description: A model id from /v1/models
messages:
type: array
items:
type: object
properties:
role:
type: string
content:
type: string
stream:
type: boolean
default: false
temperature:
type: number
tools:
type: array
items:
type: object
FeatureSupport:
type: string
enum:
- 'yes'
- 'no'
- unknown
ModelPricing:
type: object
properties:
inputPer1M:
type: number
outputPer1M:
type: number
cachedInputPer1M:
type: number
cacheWriteInputPer1M:
type: number
cacheWrite1hInputPer1M:
type: number
priorityInputPer1M:
type: number
priorityOutputPer1M:
type: number
batchInputPer1M:
type: number
batchOutputPer1M:
type: number
flexInputPer1M:
type: number
flexOutputPer1M:
type: number
imageInputPer1M:
type: number
description: Input images on an image edit, per 1M tokens. The prompt text bills at `inputPer1M`.
longContextThresholdTokens:
type: integer
description: Above this many input tokens the whole request reprices. Absent means the model has no long-context tier.
longContextInputMultiplier:
type: number
description: Applied to input, cached input and cache writes past the threshold.
longContextOutputMultiplier:
type: number
description: Applied to output past the threshold.
EmbeddingsRequest:
type: object
required:
- model
- input
properties:
model:
type: string
input:
oneOf:
- type: string
- type: array
items:
type: string
ModelList:
type: object
required:
- object
- data
properties:
object:
type: string
data:
type: array
items:
$ref: '#/components/schemas/Model'
Model:
type: object
required:
- id
- object
- created
- owned_by
- roar_modalities
- roar_batch
properties:
id:
type: string
description: The model name to send as `model`
object:
type: string
created:
type: integer
description: Unix seconds
owned_by:
type: string
roar_modalities:
type: array
items:
type: string
roar_batch:
type: boolean
description: Accepted by `POST /v1/batches`
roar_image_input:
$ref: '#/components/schemas/FeatureSupport'
description: Chat/completion models only
roar_tool_calling:
$ref: '#/components/schemas/FeatureSupport'
description: Chat/completion models only
roar_json_output:
$ref: '#/components/schemas/FeatureSupport'
description: Chat/completion models only
roar_structured_output:
$ref: '#/components/schemas/FeatureSupport'
description: Chat/completion models only
roar_reasoning:
$ref: '#/components/schemas/FeatureSupport'
description: Chat/completion models only
roar_pricing:
$ref: '#/components/schemas/ModelPricing'
description: Absent when no rate beyond base in/out is published
roar_notes:
type: string
description: Absent when there is no note
securitySchemes:
BearerAuth:
type: http
scheme: bearer
bearerFormat: roar_live_…
description: A scoped Roar API key.
externalDocs:
description: Guides and the interactive reference
url: https://roar-ai.com/docs