bnrouter Chat Completions API

The Chat Completions API from bnrouter — 1 operation(s) for chat completions.

Operations 1

POST /v1/chat/completions POST /v1/chat/completions #

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/bnrouter-chat-completions-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

bnrouter-chat-completions-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: bnrouter Chat API
  version: '2026-09-27'
  description: 'GENERATED FROM DOCUMENTATION by API Evangelist on 2026-09-27: 2 operation(s) read from 9 public documentation page(s) (each operation names its page in x-source). This is not the provider''s published contract; bnrouter has published no machine-readable contract that the pipeline could find. Engine: local.'
  x-evidence-tiers:
    code-example: 2
    documentation: 0
    pages-with-code: 9
    pages-read: 9
  x-generated-from: documentation
  x-provenance: generated
  x-authored-by: API Evangelist
  x-generated: '2026-09-27'
  x-generator: generate-contract-from-docs.py
  x-engine: local
  x-sources:
  - https://www.bnrouter.com/en/docs/image-video
  - https://www.bnrouter.com/en/docs/getting-started
  - https://www.bnrouter.com/ms/docs/getting-started
  - https://www.bnrouter.com/ru/docs/getting-started
  - https://www.bnrouter.com/ja/docs/image-video
  - https://www.bnrouter.com/ko/docs/image-video
  - https://www.bnrouter.com/ms/docs/image-video
  - https://www.bnrouter.com/ru/docs/image-video
  - https://www.bnrouter.com/zh/docs/image-video
servers:
- url: https://YOUR-BASE-URL
security:
- bearer: []
tags:
- name: Chat Completions
paths:
  /v1/chat/completions:
    post:
      operationId: post_v1_chat_completions
      tags:
      - Chat Completions
      summary: POST /v1/chat/completions
      x-source: https://www.bnrouter.com/en/docs/getting-started
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostV1ChatCompletionsRequest'
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl. curl curl https://YOUR-BASE-URL/v1/chat/completions  -H \"Authorization: Bearer sk-your-api-key\"  -H \"Content-Type: application/json\"  -d '{\n \"model\": \"your-model-id\",\n \"messages\": [{\"role\": \"user\", \"content\": \"Hello!\"}]\n }' bn - router bnrouter is an AI API gateway that routes, meters, and monetizes access to large-model providers through one compatible endpoint. Product Open app Console Pri"
components:
  schemas:
    PostV1ChatCompletionsRequest:
      type: object
      properties:
        model:
          type: string
        messages:
          type: array
          items:
            type: object
            properties:
              role:
                type: string
              content:
                type: string
  securitySchemes:
    bearer:
      type: http
      scheme: bearer