LLM Broker Account API

The Account API from LLM Broker — 2 operation(s) for account.

GitHub OpenAPI

Operations 2

POST /api/v1/broker/feedback Report whether a request worked #
GET /api/v1/broker/usage Spend of the key's account today (UTC) #

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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/llm-broker-net:llm-broker-net-account-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

llm-broker-net-account-api-openapi.yml Raw ↑
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 Account API
  version: 1.0.0
servers:
- url: https://api.llm-broker.net
  variables: {}
security: []
tags:
- name: Account
paths:
  /api/v1/broker/feedback:
    post:
      callbacks: {}
      deprecated: false
      description: '`request_id` is `broker.receipt.request_id` of the answer. One report per request.'
      operationId: reportOutcome
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              properties:
                outcome:
                  enum:
                  - success
                  - failure
                  type: string
                reason:
                  type: string
                request_id:
                  type: string
              required:
              - request_id
              - outcome
              type: object
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                properties:
                  status:
                    enum:
                    - recorded
                    type: string
                type: object
          description: Recorded
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BrokerError'
          description: Missing or invalid fields
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BrokerError'
          description: Missing or invalid API key
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BrokerError'
          description: Needs the key of a broker account
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BrokerError'
          description: Unknown request
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BrokerError'
          description: This request already has an outcome
      security:
      - apiKeyAuth: []
      summary: Report whether a request worked
      tags:
      - Account
  /api/v1/broker/usage:
    get:
      callbacks: {}
      deprecated: false
      operationId: getUsage
      parameters: []
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  currency:
                    example: CHF
                    type: string
                  object:
                    enum:
                    - usage
                    type: string
                  today:
                    properties:
                      cost:
                        example: '0.012300'
                        type: string
                      date:
                        format: date
                        type: string
                      requests:
                        type: integer
                    type: object
                type: object
          description: Usage today in CHF
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BrokerError'
          description: Missing or invalid API key
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BrokerError'
          description: Needs the key of a broker account (not the shared trial key)
      security:
      - apiKeyAuth: []
      summary: Spend of the key's account today (UTC)
      tags:
      - Account
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