POST /v1/completions
Changed onCreates a completion for the provided prompt. This endpoint is available on a best-effort basis for legacy compatibility, and performance may be less consistent than /v1/chat/completions because not all upstream providers support the legacy completions API.
Request
- Base URLhttps://nano-gpt.com/api
- URLhttps://nano-gpt.com/api/v1/completions
- AuthHTTP bearer
Headers
Optional explicit provider override for supported open-source models (case-insensitive). Explicit provider selection is billed pay-as-you-go at the selected provider's price, including provider-selection markup; for subscription users it bypasses subscription coverage for that request.
Optional billing override to force pay-as-you-go without an explicit provider, or to apply saved provider preferences to subscription-included traffic (e.g., paygo). Header name is case-insensitive.
Request body
Example request
{
"model": "minimax/minimax-m2.7"
}Response
Text completion response
Changes
- breaking
the
request property's min was increased to0.00 - info
the
request property default value1was added
- breaking