Market Data Endpoints

Public endpoints — no authentication required.

GET /api/markets

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

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

Returns: model name, best ask (input/output), number of active sellers, 24h and all-time volume.

Cached for 60 seconds (ISR).

GET /api/markets/:model

Full order book for a specific model.

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

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

GET /api/markets/feed

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

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