cURL
curl --request POST \ --url https://api.orcarouter.ai/v1/embeddings \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "model": "text-embedding-3-small", "input": "<string>", "encoding_format": "float", "dimensions": 123, "user": "<string>" } '
{ "object": "list", "data": [ { "object": "embedding", "embedding": [ 123 ], "index": 123 } ], "model": "<string>", "usage": { "prompt_tokens": 123, "completion_tokens": 123, "total_tokens": 123 } }
OrcaRouter API keys look like sk-orca-.... Pass them in the Authorization: Bearer sk-orca-... header.
sk-orca-...
Authorization: Bearer sk-orca-...
"text-embedding-3-small"
float
base64
OK
list
Show child attributes