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.
Requestbash
curl $SURPLUS_BASE_URL/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 }'