Compat
Create completion
Legacy text completion (proxied to inference-gateway): a chat completion with one user message, answered as text_completion.
Authorizations
Authorization: Bearer ozk_…. ozk_ platform API key (Authorization: Bearer ozk_…)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/jsonExample: "openai/gpt-4o-mini"
Example: "Say hi in three words"
Example: 16
Response
Text completion
application/json
Available options: text_completion
invalid_json — body is not valid JSON; unsupported_parameter — prompt must be a single string
application/json
Missing/invalid key
application/json
model_not_found — no such model in the catalog
application/json
method_not_allowed — the path serves one method: the Allow header names it, plus OPTIONS
application/json