Models
Create completion
Legacy text completion (proxied to inference-gateway): a chat completion with one user message, answered as text_completion.
Authorizations
Authorizationstringheaderrequired
Bearer token:
Authorization: Bearer ozk_…. ozk_ platform API key (Authorization: Bearer ozk_…)Authorizationstringheaderrequired
Bearer token:
Authorization: Bearer sk-ocean-…. Legacy sk-ocean- inference key: still accepted on the money plane until the sk-ocean- sunset; new integrations use the ozk_ keyBody
application/jsonmodelstringrequired
promptstringrequired
One string; arrays answer 400 unsupported_parameter.
max_tokensinteger
streamboolean
Response
Text completion
application/json
idstring
objectenum<string>
Available options: text_completion
choicesobject[]
usageobject
unsupported_parameter — prompt must be a single string
application/json
errorobjectrequired
Missing/invalid key
application/json
errorobjectrequired