Models
Create embeddings
Turn a string or a list of strings into embedding vectors (OpenAI-compatible).
Examples verified against code, not live (TI-78). The models plane takes the same ozk_ key as every other plane ($PLUNGE_API_KEY). Errors carry error.code in the body, never an X-Error-Code header.
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/jsonMoney plane, ozk_ auth. Same guardrail/cache enforcement as chat completions.
Response
Embeddings result
application/json
Response headers
The body failed validation; error.code is in the body (no X-Error-Code on the models plane).
Error code: invalid_request_errorfrom code
Missing or invalid API key
application/json
byok_required
Error code: insufficient_balancefrom code
application/json
model_not_allowed or content_blocked
application/json
rate_limit_exceeded or spend_cap_exceeded
Error code: insufficient_quotafrom code
application/json
money_plane_unavailable — INFERENCE_GATEWAY_SERVICE not bound on this tier
application/json