LLM Broker Open AI Compatible API
The OpenAI-compatible API from LLM Broker — 4 operation(s) for openai-compatible.
The OpenAI-compatible API from LLM Broker — 4 operation(s) for openai-compatible.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/llm-broker-net:llm-broker-net-openai-compatible-api"
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.
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: 3.2.0
info:
description: 'One OpenAI-compatible key for our own models and the market; each request is routed to the cheapest offer that meets its `routing` criteria. The `/v1/...` prefix is an alias of `/api/v1/...`. Docs: https://llm-broker.net/llms.txt'
title: LLM Broker Open AI Compatible API
version: 1.0.0
servers:
- url: https://api.llm-broker.net
variables: {}
security: []
tags:
- name: OpenAI-compatible
paths:
/api/v1/audio/speech:
post:
callbacks: {}
deprecated: false
description: Streams audio. Unknown `voice` answers 400 `unknown_voice` with the list of voices.
operationId: createSpeech
parameters: []
requestBody:
content:
application/json:
schema:
properties:
input:
type: string
language:
type: string
response_format:
default: mp3
enum:
- mp3
- opus
- aac
- flac
- wav
- pcm
type: string
voice:
type: string
required:
- input
type: object
required: true
responses:
'200':
content:
audio/mpeg:
schema:
format: binary
type: string
description: Audio (mp3 by default; wav/pcm stream)
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/BrokerError'
description: Invalid request
'401':
content:
application/json:
schema:
$ref: '#/components/schemas/BrokerError'
description: Missing or invalid API key
'402':
content:
application/json:
schema:
$ref: '#/components/schemas/BrokerError'
description: Insufficient balance
security:
- apiKeyAuth: []
summary: Text to speech (OpenAI-compatible)
tags:
- OpenAI-compatible
/api/v1/audio/transcriptions:
post:
callbacks: {}
deprecated: false
description: multipart/form-data with `file`. `response_format=text` returns plain text, otherwise `{text, language, duration, model}`.
operationId: createTranscription
parameters: []
requestBody:
content:
multipart/form-data:
schema:
properties:
file:
format: binary
type: string
language:
type: string
response_format:
enum:
- json
- text
type: string
required:
- file
type: object
required: true
responses:
'200':
content:
application/json:
schema:
type: object
description: Transcript
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/BrokerError'
description: Invalid request
'401':
content:
application/json:
schema:
$ref: '#/components/schemas/BrokerError'
description: Missing or invalid API key
'402':
content:
application/json:
schema:
$ref: '#/components/schemas/BrokerError'
description: Insufficient balance
security:
- apiKeyAuth: []
summary: Speech to text (OpenAI-compatible)
tags:
- OpenAI-compatible
/api/v1/embeddings:
post:
callbacks: {}
deprecated: false
description: '`input` is a string or an array of strings; returns `data[].embedding`.'
operationId: createEmbedding
parameters: []
requestBody:
content:
application/json:
schema:
properties:
input:
oneOf:
- type: string
- items:
type: string
type: array
model:
type: string
required:
- input
type: object
required: true
responses:
'200':
content:
application/json:
schema:
type: object
description: Embeddings
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/BrokerError'
description: Invalid request
'401':
content:
application/json:
schema:
$ref: '#/components/schemas/BrokerError'
description: Missing or invalid API key
'402':
content:
application/json:
schema:
$ref: '#/components/schemas/BrokerError'
description: Insufficient balance
security:
- apiKeyAuth: []
summary: Embeddings (OpenAI-compatible)
tags:
- OpenAI-compatible
/api/v1/images/generations:
post:
callbacks: {}
deprecated: false
description: Returns `data[].b64_json`. Charged per image after delivery.
operationId: createImage
parameters: []
requestBody:
content:
application/json:
schema:
properties:
n:
minimum: 1
type: integer
prompt:
type: string
response_format:
enum:
- b64_json
type: string
size:
example: 1024x1024
type: string
required:
- prompt
type: object
required: true
responses:
'200':
content:
application/json:
schema:
type: object
description: Images
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/BrokerError'
description: Invalid request
'401':
content:
application/json:
schema:
$ref: '#/components/schemas/BrokerError'
description: Missing or invalid API key
'402':
content:
application/json:
schema:
$ref: '#/components/schemas/BrokerError'
description: Insufficient balance
security:
- apiKeyAuth: []
summary: Generate images (OpenAI-compatible)
tags:
- OpenAI-compatible
components:
schemas:
BrokerError:
properties:
error:
properties:
code:
example: invalid_request
type: string
message:
type: string
param:
description: The offending field, if any
type:
- string
- 'null'
request_id:
description: Quote it when contacting support
type:
- string
- 'null'
type:
description: invalid_request_error | authentication_error | rate_limit_error | server_error …
example: invalid_request_error
type: string
required:
- message
- type
- code
type: object
required:
- error
title: BrokerError
type: object
securitySchemes:
apiKeyAuth:
description: 'API key as Bearer token: customer keys `ast_sk_…` (account page or POST /api/v1/broker/accounts); internal/CLI keys `acore_…` (legacy `mgpt_…` still accepted)'
in: header
name: Authorization
type: apiKey
bearerAuth:
bearerFormat: JWT
description: JWT access token obtained via POST /auth/login
scheme: bearer
type: http