Create chat completion (OpenAI-compatible)
Changed onCreate a chat completion. Compatible with the OpenAI Chat Completions API. Not end-to-end encrypted — use /rvenc/chat/completions for that.
Request
- Base URLhttps://gateway.prem.io
- AuthHTTP bearer and API key in header Authorization
Headers
Maximum seconds the request may wait in the inference queue when no capacity is free (decimals allowed). 0 never queues: a saturated model answers 429 immediately. Values above the server budget (10s) are capped; the header can only shorten the wait, never extend it. Invalid values are ignored. A request that cannot be admitted in time gets 429 with Retry-After.
Request body
Response
A chat completion, or a server-sent events stream when stream is true.
Changes
- warning
added the new
405.00enum value to the/response property for the response status - warning
added the new
405.00enum value to the/response property for the response status - warning
added the new
405.00enum value to the/response property for the response status - warning
added the new
405.00enum value to theresponse property for the response status - warning
added the new
405.00enum value to theresponse property for the response status - warning
added the new
405.00enum value to theresponse property for the response status - warning
added the new
405.00enum value to theresponse property for the response status - warning
added the new
409.00enum value to the/response property for the response status - warning
added the new
409.00enum value to the/response property for the response status - warning
added the new
409.00enum value to the/response property for the response status - warning
added the new
409.00enum value to theresponse property for the response status - warning
added the new
409.00enum value to theresponse property for the response status - warning
added the new
409.00enum value to theresponse property for the response status - warning
added the new
409.00enum value to theresponse property for the response status - warning
added the new
500.00enum value to the/response property for the response status - warning
added the new
500.00enum value to the/response property for the response status - warning
added the new
500.00enum value to the/response property for the response status - warning
added the new
500.00enum value to theresponse property for the response status - warning
added the new
500.00enum value to theresponse property for the response status - warning
added the new
500.00enum value to theresponse property for the response status - warning
added the new
500.00enum value to theresponse property for the response status - info
added the new optional
headerrequest parameterX-Queue-Timeout - info
removed the pattern
^[a-z0-9][a-z0-9-]*$from the request property
- warning
- info
endpoint added
- info