Compat
Create embeddings
Embeddings on the OpenRouter-compatible /api/v1 base.
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
invalid_json — body is not valid JSON
application/json
Missing or invalid API key
application/json
byok_required
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
application/json