📚API Reference/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.
Legacy completions endpoint (non-chat format). Included for OpenRouter compatibility.
Request
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
}'
Same auth, routing, and settlement as chat completions. Same error codes apply.