Completions

POST/v1/completions

Minimum-discount routing: Prefix the path with a min{N} segment (e.g. /min30/v1/completions) to require marketplace seller offers to meet a minimum estimated buyer discount before routing. Buyer-owned providers are not covered. See Minimum-Discount Routing.

Request

Legacy completions endpoint (non-chat format). Included for OpenRouter compatibility.

Same auth, routing, and settlement as chat completions. Same error codes apply.

Request
bash
curl https://api.surplusintelligence.ai/v1/completions \
  -H "Authorization: Bearer inf_xxx" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "claude-opus-4.6",
    "prompt": "Once upon a time",
    "max_tokens": 100
  }'