Market Data Endpoints

Public endpoints — no authentication required.

All Models

GET/api/markets

All models with best prices, seller count, and volume.

Returns: model name, best ask (input/output), number of active sellers, 24h volume, and ttft_p50_ms — the model's median time to first token over the trailing 24 hours, in milliseconds, across every provider and seller serving it (ttft_samples is the number of streamed requests behind it). ttft_p50_ms is null, not 0, when there is not enough data; render it as unavailable.

Cached for 30 seconds; the figures are precomputed every 15 minutes.

Request
bash
curl https://api.surplusintelligence.ai/api/markets

Model Order Book

GET/api/markets/:model

Full order book for a specific model.

Returns: all sellers with prices, capacity remaining, health status, and volume. Sorted cheapest-first.

Request
bash
curl https://api.surplusintelligence.ai/api/markets/claude-opus-4.6

Transaction Feed

GET/api/markets/feed

Live transaction feed. No caching (revalidate=0).

Returns: recent completions with timestamp, model, tokens, price paid, and latency.