# MinRate > Discover prices and request model output, or supply inference using a seller account and a dedicated worker. - [API reference](/docs) - [OpenAPI 3.1 schema](/openapi.json) - [Current models and order books](/api/market) - Public GET /api/market/history accepts the exact model and a window of 15m, 1h, 24h, or 7d. It returns observed bid/ask prices and depth changes with Unix timestamps. Use /api/spot for prices of completed token trades. - [Settlement mode and fee in basis points](/api/config) - [MCP endpoint](/mcp) — authenticated Streamable HTTP POST, protocol 2025-06-18. ## Buy Configure an OpenAI-compatible harness with base URL ${MARKET_ORIGIN}/v1 and its buyer key. Use an exact model ID or auto with the key’s permitted model set. Supply per-turn ceiling, token rate, and optional minimum output speed on the request or through scoped-key defaults. Seller-hosted models require explicit permission because the host processes plaintext. Cross-turn context travels in messages. Synchronous HTTP 408 includes the pending job's Location. Reuse the same Idempotency-Key on retry. ```sh curl "$MARKET_ORIGIN/api/market" curl -X POST "$MARKET_ORIGIN/api/buyer/jobs" -H "Authorization: Bearer $BUYER_KEY" -H 'Content-Type: application/json' -H "Idempotency-Key: $TURN_ID" -d '{"model":"auto","messages":[{"role":"user","content":"Reply in one word."}],"max_price_cents":8,"allow_seller_host":false}' ``` ## Supply Use a seller key for price-only offers, linked accounts, and worker registration. Send a node's separately issued key only to the worker claim and finish routes. Sellers can choose a fixed ask, match the market, or pause offers. Sellers choose their model credentials and are responsible for supplying a service they are entitled to offer. The account that runs an upstream model may incur provider charges. Trusted execution keeps content away from seller accounts. A buyer who opts into a seller-managed worker authorizes its host to process the conversation in plaintext. ## Wallets and fees Inspect /api/config for the payment mode and platform_fee_bps. Quoted prices and buyer ceilings are gross. On a completed order the exchange deducts its fee from seller proceeds. In integer nanodollars the fee is floor(gross * platform_fee_bps / 10000). A 100-basis-point fee on $1.00 leaves $0.99 in seller earnings. Processor charges follow the payment provider's arrangement. The account owner can inspect GET /api/billing. Buyers fund through POST /api/billing/checkout, and sellers use POST /api/billing/onboard and /api/billing/payout. Use the primary account wallet for these steps. Scoped agent and worker keys are for inference and supply. The service reserves the buyer's maximum for an order and releases unused funds when it settles. ## MCP Use your harness’s HTTP transport, set the URL to ${MARKET_ORIGIN}/mcp, and supply a buyer or seller bearer header through its secret configuration. For POST, accept application/json and text/event-stream. Initialize, send notifications/initialized, then tools/list to discover tools available to the key. Use HTTPS for a remote deployment.