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 an sk-ocean- key ($PLUNGE_MODEL_KEY); an ozk_ key answers 401 invalid_api_key. Errors carry error.code in the body, never an X-Error-Code header.
Authorizations
Authorization: Bearer sk-ocean-…. sk-ocean- inference key (money plane, forwarded downstream)Body
application/jsonMoney plane, sk-ocean- 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/invalid sk-ocean- 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