Compat
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.
Example: "openai/text-embedding-3-small"
Example: "The quick brown fox jumps over the lazy dog"
Response
Embeddings result
application/json
Response headers
invalid_json — body is not valid JSON
Error code: invalid_request_errorfrom code
application/json
Missing or invalid API key
application/json
byok_required
Error code: insufficient_balancefrom code
application/json
model_not_allowed or content_blocked
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
Response headers
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