Core concepts

How routing works

Cisoma separates the model your application requests from the upstream connection that ultimately serves it.

Request lifecycle

Every inference request moves through the same eligibility and settlement pipeline.

  1. 1

    Eligibility

    Filter supply by requested model, account group, key restrictions, enabled state, and provider compatibility.

  2. 2

    Capacity and health

    Exclude disabled connections, exhausted offer or connection limits, open circuits, and established routes below the reliability floor.

  3. 3

    Risk-adjusted fair selection

    Compare price adjusted for reliability and latency, retain the best two-percent band, and run a seller-level weighted lottery.

  4. 4

    Relay, fallback, and settle

    Reserve capacity, relay the request, retry a distinct eligible route when safe, then atomically settle actual usage and release the reservation.

Routing guarantees

One model contract
Applications request a model, not a seller or upstream credential.
Health-aware supply
Unavailable or capacity-constrained marketplace offers are removed before selection.
Competitive and fair
Only price-competitive sellers enter the lottery, and under-served sellers receive a bounded fairness boost.
Fallback continuity
Operator-managed channels remain available after eligible marketplace candidates.

Seller, connection, and key boundaries

Fairness and failure isolation operate at different levels.

  • A seller receives one lottery entry per model, even when that seller publishes multiple connections.
  • A connection is a failure domain and may publish a separate offer for each supported model.
  • Multiple credentials inside one connection are pooled for that connection; they do not create extra lottery entries.
  • A request makes at most two seller attempts before using an eligible operator-managed fallback.

Retries and streaming

Streaming changes the response transport, not the route-selection contract.

Design your client for routing

  • Discover model IDs with GET /v1/models for each API key.
  • Set request timeouts appropriate to the model and response size.
  • Retry 429 and transient 5xx responses with exponential backoff and jitter.
  • Log the gateway request ID so usage and failures can be traced.