Inworld AI Router API

LLM Router configurations

Operations 6

GET /v1/routers List routers #
POST /v1/routers Create router #
GET /v1/routers/{id} Get router #
PATCH /v1/routers/{id} Update router #
DELETE /v1/routers/{id} Delete router #
POST /v1/chat/completions Create chat completion (OpenAI-compatible) #

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/inworld-router-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

inworld-router-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Inworld AI Models Router API
  description: 'REST API for Inworld AI''s voice and conversational AI platform, covering

    Text-to-Speech (synchronous and streaming), Speech-to-Text, voice

    management, models, and the LLM Router that fronts 220+ third-party

    models via the OpenAI-compatible chat completions endpoint.

    '
  version: '1.0'
  contact:
    name: Inworld AI
    url: https://docs.inworld.ai
servers:
- url: https://api.inworld.ai
  description: Production API
security:
- basicAuth: []
tags:
- name: Router
  description: LLM Router configurations
paths:
  /v1/routers:
    get:
      tags:
      - Router
      summary: List routers
      operationId: listRouters
      responses:
        '200':
          description: List of router configurations
          content:
            application/json:
              schema:
                type: object
                properties:
                  routers:
                    type: array
                    items:
                      $ref: '#/components/schemas/Router'
    post:
      tags:
      - Router
      summary: Create router
      operationId: createRouter
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Router'
      responses:
        '201':
          description: Router created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Router'
  /v1/routers/{id}:
    get:
      tags:
      - Router
      summary: Get router
      operationId: getRouter
      parameters:
      - $ref: '#/components/parameters/RouterId'
      responses:
        '200':
          description: Router configuration
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Router'
    patch:
      tags:
      - Router
      summary: Update router
      operationId: updateRouter
      parameters:
      - $ref: '#/components/parameters/RouterId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Router'
      responses:
        '200':
          description: Updated router
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Router'
    delete:
      tags:
      - Router
      summary: Delete router
      operationId: deleteRouter
      parameters:
      - $ref: '#/components/parameters/RouterId'
      responses:
        '204':
          description: Router deleted
  /v1/chat/completions:
    post:
      tags:
      - Router
      summary: Create chat completion (OpenAI-compatible)
      description: Route chat completion requests via the LLM Router.
      operationId: createChatCompletion
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - model
              - messages
              properties:
                model:
                  type: string
                messages:
                  type: array
                  items:
                    type: object
                    properties:
                      role:
                        type: string
                        enum:
                        - system
                        - user
                        - assistant
                      content:
                        type: string
                stream:
                  type: boolean
                temperature:
                  type: number
                max_tokens:
                  type: integer
      responses:
        '200':
          description: Chat completion response
          content:
            application/json:
              schema:
                type: object
components:
  parameters:
    RouterId:
      name: id
      in: path
      required: true
      schema:
        type: string
  schemas:
    Router:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        rules:
          type: array
          items:
            type: object
            properties:
              model:
                type: string
              weight:
                type: number
              conditions:
                type: object
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic
      description: 'Authentication uses HTTP Basic with the API key as the username

        (password empty), encoded as: `Authorization: Basic base64(apiKey:)`.

        Get an API key at https://platform.inworld.ai.

        '