Quorum Deliberation API

Convene a panel, or price one first.

GitHub OpenAPI

Operations 2

POST /v1/chat/completions Convene the panel #
POST /v1/estimate Price a question without running it #

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/quorum-dog:quorum-dog-deliberation-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

quorum-dog-deliberation-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Quorum Deliberation API
  version: 1.0.0
  summary: Route a question through a panel of frontier models and get one deliberated answer.
  description: 'Quorum''s HTTP API. `POST /v1/chat/completions` is OpenAI-shaped, so most SDKs work by changing the base URL and the model name — the `model` field selects a Quorum **mode** (a configured panel) rather than a single model. An additive `quorum` block on every response carries what the OpenAI shape has no vocabulary for: which engines actually answered, how many rounds ran, whether they converged, and what it cost.


    This document is written from the handler source, not from memory. Where the API does not do something — token streaming, for one — it is marked here rather than left implied.


    Three things that surprise people:


    1. **Requests carrying a browser `Origin` header are rejected with 403.** This API is server-to-server. A real key presented from a browser is treated as a leaked key, not a legitimate call.

    2. **`stream: true` returns 400, not a stream.** Provider token streaming is not implemented; failing loudly beats returning a plain body to a client that is waiting for SSE.

    3. **A deliberation is slow by design.** Measured on production 2026-08-20: p50 28.5s, p90 88.2s, p99 229.3s across 3,845 deliberations. Set your client timeout accordingly, and use `POST /v1/estimate` — free — to decide whether a question is worth the wait before spending it.'
  contact:
    name: Quorum
    url: https://www.quorumllm.com/help
  license:
    name: Proprietary
    url: https://www.quorumllm.com/terms.html
servers:
- url: https://www.quorumllm.com
  description: Production
security:
- ApiKeyAuth: []
tags:
- name: Deliberation
  description: Convene a panel, or price one first.
paths:
  /v1/chat/completions:
    post:
      operationId: createChatCompletion
      tags:
      - Deliberation
      summary: Convene the panel
      description: 'Runs a real deliberation and bills for it. Seconds, not milliseconds — see the timing note on this document.


        Send an `Idempotency-Key` header on anything a retry could duplicate. A repeat of a succeeded key replays the original answer with `quorum.replayed: true`; it is not re-run and not re-billed. A repeat of a key still in flight returns 409.'
      parameters:
      - name: Idempotency-Key
        in: header
        required: false
        schema:
          type: string
        description: Deduplicates retries. If omitted, one is derived from org, key, model and messages — so an identical repeat is deduplicated whether you asked for it or not.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ChatCompletionRequest'
            examples:
              basic:
                summary: A question worth a panel
                value:
                  model: QRUM:STAN
                  messages:
                  - role: user
                    content: We are choosing between Postgres row-level security and application-layer authorisation for a multi-tenant SaaS. Which, and what breaks either way?
      responses:
        '200':
          description: The panel answered.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ChatCompletion'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/ModelNotFound'
        '409':
          description: A request with this `Idempotency-Key` is already running. Wait for it rather than retrying.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '413':
          description: The prompt exceeds this key's `max_input_tokens` (8,000 unless raised).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/ServerError'
        '503':
          $ref: '#/components/responses/Unavailable'
  /v1/estimate:
    post:
      operationId: estimate
      tags:
      - Deliberation
      summary: Price a question without running it
      description: 'Classifies the prompt — depth, difficulty, task type — and returns what a real call would cost. Always free: `billed_usd` is `0`.


        It runs the same classifier a real deliberation runs, so the classification is the one that would actually apply, not a second implementation of it. Measured at roughly 0.9 s and about $0.00006 of real cost per call, which is why it is free — but it is still authenticated and still rate-limited, because tiny multiplied by unlimited automated volume is not tiny.


        This is the front half of the escalation pattern: classify everything, deliberate only what earns it. Where that threshold sits is your decision, not ours.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EstimateRequest'
      responses:
        '200':
          description: Classification and projected price.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Estimate'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/ModelNotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/ServerError'
        '503':
          $ref: '#/components/responses/Unavailable'
components:
  responses:
    ModelNotFound:
      description: No mode with that id is exposed to this organisation. Call /v1/models to see what is.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    BadRequest:
      description: The request was malformed. `error.code` says how.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Forbidden:
      description: 'The key is real but not permitted: organisation suspended, key lacks the scope, or the request carried a browser `Origin` header.'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unavailable:
      description: A dependency was unreachable and the gate failed closed rather than letting the call through unchecked. Retryable.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    ServerError:
      description: Our fault. Safe to retry with the same `Idempotency-Key`.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    RateLimited:
      description: Rate or concurrency ceiling hit. Defaults are 60 requests/minute per key and 5 concurrent requests per organisation. A `Retry-After` header is sent; back off and retry.
      headers:
        Retry-After:
          schema:
            type: integer
          description: Seconds.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: Missing, invalid or revoked key. Not retryable — fix the key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    EstimateRequest:
      type: object
      required:
      - model
      - messages
      properties:
        model:
          type: string
          examples:
          - QRUM:STAN
        messages:
          type: array
          minItems: 1
          items:
            $ref: '#/components/schemas/Message'
    Error:
      type: object
      description: OpenAI's error envelope, plus `quorum.request_id` where one exists — so a failure is as traceable as a success.
      properties:
        error:
          type: object
          properties:
            message:
              type: string
            type:
              type: string
              enum:
              - invalid_request_error
              - authentication_error
              - permission_error
              - rate_limit_error
              - api_error
            code:
              type: string
              description: The stable identifier. Branch on this, not on `message`.
              enum:
              - invalid_api_key
              - revoked_api_key
              - org_suspended
              - browser_origin_not_allowed
              - insufficient_scope
              - invalid_model
              - invalid_messages
              - model_not_found
              - stream_not_supported
              - context_length_exceeded
              - request_in_progress
              - missing_request_id
              - receipt_not_found
              - invalid_buckets
              - invalid_bucket
              - invalid_bucket_count
              - too_many_questions
              - invalid_judges
              - method_not_allowed
              - concurrency_limit_exceeded
              - rate_limit_exceeded
              - service_unavailable
              - internal_error
            param:
              type:
              - string
              - 'null'
        quorum:
          type: object
          properties:
            request_id:
              type:
              - string
              - 'null'
    Message:
      type: object
      required:
      - role
      - content
      properties:
        role:
          type: string
          enum:
          - system
          - user
          - assistant
        content:
          type: string
    ChatCompletion:
      type: object
      description: OpenAI's shape, plus an additive `quorum` block. Nothing in the OpenAI-shaped part was renamed.
      properties:
        id:
          type: string
        object:
          type: string
          const: chat.completion
        created:
          type: integer
          description: Unix seconds.
        model:
          type: string
        choices:
          type: array
          items:
            type: object
            properties:
              index:
                type: integer
              message:
                $ref: '#/components/schemas/Message'
              finish_reason:
                type: string
                enum:
                - stop
                - length
                description: '`stop` means the answer is complete. The cost ceiling never stops a deliberation: it clamps the bill after the fact, and that is reported as `quorum.capped`, not here. (`cost_cap` was emitted for a clamped bill until 2026-10-02 and is no longer returned.) `length` ADDED 2026-09-17, ADDITIVE: the answer was CUT OFF by the model''s output limit and is incomplete — the same value api.openai.com uses, so an SDK already handles it. It is MEASURED, never inferred: it is set from the field the provider itself used to report the cut (Google `MAX_TOKENS`, Bedrock and Anthropic `max_tokens`, OpenAI and Groq `length`), never from the answer''s length or its shape. It describes THE CALL THAT PRODUCED THE TEXT YOU RECEIVED — the synthesis on a panel run, the winning seat when no synthesis ran — so a losing seat that was cut does not set it. ON AN IDEMPOTENT REPLAY (`replayed: true`) this value is READ FROM THE STORED REQUEST, so a retry reports what the first call reported — that was not true before 2026-09-17, when a replay always said `stop`. A replayed request made before that date recorded no truncation measurement and reports `stop` as this endpoint''s default rather than as a verified fact; it says so in `quorum.note` and omits `quorum.answer_truncated` entirely, which is how you tell the two apart.'
        usage:
          type: object
          properties:
            prompt_tokens:
              type: integer
            completion_tokens:
              type: integer
            total_tokens:
              type: integer
        quorum:
          type: object
          description: What the OpenAI shape has no field for.
          properties:
            request_id:
              type: string
              description: Pass to /v1/receipts/{request_id}.
            mode:
              type:
              - string
              - 'null'
              description: The Mode, by its ticker in COMPANY:MODE form (e.g. `QRUM:STAN`), the same name `model` takes. `null` when the Mode has no ticker or the name lookup fails; the call itself is unaffected.
            mode_config_hash:
              type: string
              description: Short hash of the mode's engine and deliberation config. A change here means the panel itself changed, as opposed to ordinary prompt-to-prompt variance.
            rounds:
              type: integer
              description: How many deliberation rounds actually ran. Most calls resolve in one; a second round means the panel disagreed enough to warrant it.
            seats:
              type: integer
              description: 'How many seats CONVENED for this request. Unchanged: it counts every seat the panel sat, including one that then produced nothing.'
            seats_answered:
              type:
              - integer
              - 'null'
              description: 'How many of those seats actually produced an answer. ADDED 2026-09-17, additive only. `seats_answered < seats` means the deliberation you paid panel price for was smaller than the panel that convened — a three-engine run can quietly become two, or none, and until now nothing in the response said so. A seat whose first attempt was cut and then RETRIED still counts here: the retry answered, so the seat contributed, and the discarded attempt is wasted cost rather than a missing panellist. `null` only when the run reported no seat array at all, which is not the same claim as zero. ON AN IDEMPOTENT REPLAY (`replayed: true`) this field is read from the stored request and is ABSENT — not null — when that request predates 2026-09-17 and never recorded it; absence there means "not recorded", while `0` still means no seat answered.'
            answer_truncated:
              type: boolean
              description: 'ADDED 2026-09-17, ADDITIVE. Present ONLY on an idempotent replay (`replayed: true`), where it is the truncation fact read from the stored request: `true` means the answer you are being handed was cut off by the model''s output limit, `false` means it was not. It is the same measurement that set `finish_reason` on the original call, so a retry reports what the first call reported instead of a hardcoded `stop`. On a first (non-replayed) call the equivalent fact is `finish_reason` itself, which is why the field does not appear there. IT IS ABSENT WHEN THE STORED REQUEST NEVER RECORDED IT — requests made before 2026-09-17 could not measure it — and absence is deliberate: those runs are unknown, not known-clean, and publishing `false` would state a measurement nobody took. A caller that must be certain the answer is whole should branch on `''answer_truncated'' in response.quorum` before trusting a replayed `finish_reason` of `stop`.'
            converged:
              type: boolean
              description: Whether the seats agreed. `false` is information, not failure — it is the signal that the question is genuinely contested.
            capped:
              type: boolean
            pricing_rule:
              type: string
              enum:
              - per_mtok
              description: '`per_mtok`: engines at actual cost, the platform fee, the Mode''s fee.'
            gateway_usd:
              type:
              - number
              - 'null'
              description: What the engines cost, billed at actual. A pass-through. `null` only when no figure is available.
            token_charge_usd:
              type: number
              description: The engines' part of the bill. It equals `gateway_usd`.
            surcharge_usd:
              type: number
              description: The Mode's fee. The field keeps its earlier name.
            platform_fee_usd:
              type: number
              description: 'The platform fee on this call: the sum of each seat''s fee on its source''s real cost. Never charged on the Mode''s fee. Per-seat lines are on the receipt.'
            billed_net:
              type: object
              description: The parts of the bill net of `cap_credit_usd`; they sum to `billed_usd`. Absent on an idempotent replay.
              properties:
                gateway_usd:
                  type:
                  - number
                  - 'null'
                token_charge_usd:
                  type:
                  - number
                  - 'null'
                platform_fee_usd:
                  type:
                  - number
                  - 'null'
                mode_fee_usd:
                  type:
                  - number
                  - 'null'
            cap_credit_usd:
              type: number
              description: 'The amount by which this call went over its per-call ceiling, credited back to you. The call is charged whole (the engines, `platform_fee_usd` and `surcharge_usd` as reported here), then this credit is applied, so `billed_usd` is that sum minus `cap_credit_usd`. `0` when the call stayed under the ceiling; `capped` is `true` whenever it is above `0`. Absent on an idempotent replay (`replayed: true`), like every money field on this block: the replay is not re-billed, and `/v1/receipts/{request_id}` carries the recorded figure.'
            billed_usd:
              type: number
            payer:
              type: string
              enum:
              - org
              - plan
              - turbo
              - plan+turbo
              - unbilled
              description: 'Who paid for this call, the same value `/v1/receipts/{request_id}` returns. `org`: billed to the organisation''s API account, which is every API-key call. A connected app (OAuth) bills the person''s plan at real cost with no Mode fee: `plan`, `turbo`, `plan+turbo` or `unbilled` (the charge could not be written). Absent on an idempotent replay (`replayed: true`).'
            latency_ms:
              type: integer
            engines:
              type: array
              items:
                type: string
              description: The provider families that actually answered. May differ from the mode's declared design when a seat fell back.
            persisted:
              type: boolean
            replayed:
              type: boolean
              description: 'Present and `true` only on an idempotent replay: the original answer, not re-run and not re-billed.'
    Estimate:
      type: object
      properties:
        request_id:
          type: string
        model:
          type: string
        mode:
          type:
          - string
          - 'null'
          description: The Mode, by its ticker in COMPANY:MODE form (e.g. `QRUM:STAN`), the same name `model` takes. `null` when the Mode has no ticker or the name lookup fails; the call itself is unaffected.
        depth:
          type: string
          enum:
          - light
          - medium
          - deep
          description: The classified depth of the prompt.
        difficulty_score:
          type: number
          description: '0–1. Production distribution as of 2026-08-20 (n=3,947): 45% light, 33% medium, 22% deep; mean 0.456.'
        task_type:
          type: string
        estimated_price_usd:
          type: number
          description: The Mode's fee in the quote, kept for older clients. `estimate.total_usd` is the whole call.
        estimate:
          type:
          - object
          - 'null'
          description: The quote for the whole call on your prompt, from the same formula the bill uses. The bill follows actual usage, so it can differ. `null` when no quote could be made.
          properties:
            rule:
              type: string
              enum:
              - per_mtok
              description: '`per_mtok`: engines at actual cost, the platform fee and the Mode''s fee.'
            gateway_usd:
              type:
              - number
              - 'null'
              description: Estimated engine cost. `null` only when no figure is available.
            platform_fee_usd:
              type: number
            token_charge_usd:
              type: number
            mode_fee_usd:
              type: number
              description: The Mode's fee.
            gross_usd:
              type: number
              description: Before the call ceiling.
            cap_credit_usd:
              type: number
            total_usd:
              type: number
              description: After the call ceiling.
            capped:
              type: boolean
            ceiling_usd:
              type: number
            tier:
              type: string
            depth:
              type:
              - string
              - 'null'
            basis:
              type: object
              description: 'What the quote rests on: `kind` is `recorded` (recorded calls of this Mode) or `rates` (its engines'' rates), with the sample size `n` and the gates applied.'
            per_mtok_by_tier:
              type:
              - object
              - 'null'
              description: The Mode's fee per tier in dollars per 1M tokens processed, the same rate and shape `/v1/models` publishes in `pricing.tiers`. A tier with no recorded calls yet carries null rates and a `reason`.
              additionalProperties:
                type: object
                properties:
                  input_usd_per_mtok:
                    type:
                    - number
                    - 'null'
                  output_usd_per_mtok:
                    type:
                    - number
                    - 'null'
                  n:
                    type: integer
                  basis:
                    type: string
                    enum:
                    - api_calls
                    - lab_runs
                  reason:
                    type: string
                    description: Present when the rates are `null`.
        billed_usd:
          type: number
          const: 0
          description: Always zero. This endpoint is free.
        timing_ms:
          type: object
          description: Returned so you can measure this round trip yourself rather than taking our word for it.
          properties:
            total:
              type: integer
            classify:
              type: integer
    ChatCompletionRequest:
      type: object
      required:
      - model
      - messages
      properties:
        model:
          type: string
          description: The id from /v1/models (a ticker such as QRUM:STAN) — a mode, not a single model.
          examples:
          - QRUM:STAN
        messages:
          type: array
          minItems: 1
          items:
            $ref: '#/components/schemas/Message'
        stream:
          type: boolean
          default: false
          description: Only `false` is accepted. `true` returns 400 `stream_not_supported` — provider token streaming is not implemented, and a silent non-stream would break an SDK waiting for SSE.
        quorum:
          type: object
          description: Optional per-call overrides, within what the mode and your key permit.
          additionalProperties: true
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      description: '`Authorization: Bearer qk_live_…` (or `qk_test_…`). Server-to-server only — a request carrying a browser `Origin` header is rejected with 403 `browser_origin_not_allowed`, because a real key sent from a browser is a leaked key.'
externalDocs:
  description: The library
  url: https://www.quorumllm.com/docs