LLM Broker · Schema

ChatCompletionRequest

Company

Properties

Name Type Description
frequency_penalty number
max_completion_tokens integer Same as max_tokens
max_tokens integer
messages array
model string Our products (james, elliot, taylor, james-direct) or any market model id from GET /api/v1/broker/models (vendor/model) — served by the cheapest eligible provider.
presence_penalty number
response_format object {"type": "json_object"} or {"type": "json_schema", "json_schema": …}
routing object
seed integer
stop object
stream boolean
temperature number
tool_choice object
tools array
top_p number
View JSON Schema on GitHub

JSON Schema

llm-broker-net-chat-completion-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/llm-broker-net/json-schema/llm-broker-net-chat-completion-request-schema.json",
  "title": "ChatCompletionRequest",
  "x-generated": "2026-11-17",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/llm-broker-net-openapi.json#/components/schemas/ChatCompletionRequest",
  "properties": {
    "frequency_penalty": {
      "type": "number"
    },
    "max_completion_tokens": {
      "description": "Same as max_tokens",
      "type": "integer"
    },
    "max_tokens": {
      "type": "integer"
    },
    "messages": {
      "items": {
        "type": "object"
      },
      "type": "array"
    },
    "model": {
      "description": "Our products (james, elliot, taylor, james-direct) or any market model id from GET /api/v1/broker/models (vendor/model) — served by the cheapest eligible provider.",
      "type": "string"
    },
    "presence_penalty": {
      "type": "number"
    },
    "response_format": {
      "description": "{\"type\": \"json_object\"} or {\"type\": \"json_schema\", \"json_schema\": …}",
      "type": "object"
    },
    "routing": {
      "$ref": "#/$defs/BrokerRouting"
    },
    "seed": {
      "type": "integer"
    },
    "stop": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        }
      ]
    },
    "stream": {
      "default": false,
      "type": "boolean"
    },
    "temperature": {
      "type": "number"
    },
    "tool_choice": {
      "oneOf": [
        {
          "enum": [
            "auto",
            "none",
            "required"
          ],
          "type": "string"
        },
        {
          "type": "object"
        }
      ]
    },
    "tools": {
      "items": {
        "type": "object"
      },
      "type": "array"
    },
    "top_p": {
      "type": "number"
    }
  },
  "required": [
    "model",
    "messages"
  ],
  "type": "object",
  "$defs": {
    "BrokerRouting": {
      "description": "Narrows which offer serves the request. Never loosens product guarantees. No matching offer → 409 no_matching_offer.",
      "properties": {
        "capabilities": {
          "description": "Every chosen provider must support all of these",
          "oneOf": [
            {
              "enum": [
                "reasoning",
                "structured_output",
                "tools",
                "vision"
              ],
              "type": "string"
            },
            {
              "items": {
                "enum": [
                  "reasoning",
                  "structured_output",
                  "tools",
                  "vision"
                ],
                "type": "string"
              },
              "type": "array"
            }
          ]
        },
        "category": {
          "description": "Use case for level, min_score and sort=score|value",
          "enum": [
            "coding",
            "instruction_following",
            "math",
            "reasoning"
          ],
          "type": "string"
        },
        "family": {
          "description": "Model family: vendor (anthropic), name start (claude, qwen3) or id prefix (deepseek/deepseek-v4). New generations are included automatically.",
          "type": "string"
        },
        "level": {
          "description": "Needs category. solid/strong/top = the threshold of that level; best = only the offer with the highest measured score in category (within all other filters). Not together with min_score. Also for taylor (overrides the key's level for this request).",
          "enum": [
            "solid",
            "strong",
            "top",
            "best"
          ],
          "type": "string"
        },
        "max_price": {
          "description": "Customer price cap in CHF per 1M tokens (incl. our margin)",
          "properties": {
            "input": {
              "type": "number"
            },
            "output": {
              "type": "number"
            }
          },
          "type": "object"
        },
        "min_context": {
          "description": "Minimum context window (tokens)",
          "minimum": 1,
          "type": "integer"
        },
        "min_score": {
          "description": "Only offers whose score in category (our own measurement) is at least this",
          "maximum": 1,
          "minimum": 0,
          "type": "number"
        },
        "region": {
          "description": "Execution location of the provider (eu includes ch)",
          "oneOf": [
            {
              "enum": [
                "ch",
                "eu",
                "us",
                "asia",
                "global"
              ],
              "type": "string"
            },
            {
              "items": {
                "enum": [
                  "ch",
                  "eu",
                  "us",
                  "asia",
                  "global"
                ],
                "type": "string"
              },
              "type": "array"
            }
          ]
        },
        "sort": {
          "default": "price",
          "description": "cheapest · best score per CHF · highest throughput · highest score",
          "enum": [
            "price",
            "value",
            "speed",
            "score"
          ],
          "type": "string"
        }
      },
      "title": "BrokerRouting",
      "type": "object"
    }
  }
}

Work with this as data

Every JSON Schema 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 schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • 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 JSON Schema
curl "https://apis.io/api/v1/json-schemas/llm-broker-net-chat-completion-request"
All schemas
curl "https://apis.io/api/v1/json-schemas?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.