Create an embedding vector for input text.
Generate high-dimensional vector embeddings for text with nRouter. Fully compatible with OpenAI embeddings endpoints for semantic search, clustering, and RAG.
Authorization
NRouterApiKey AuthorizationBearer <token>
Your nRouter virtual key (sk-nrouter-…). Sent as Authorization: Bearer sk-nrouter-….
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/embeddings" \ -H "Content-Type: application/json" \ -d '{ "model": "string", "input": "string" }'{ "object": "list", "model": "text-embedding-3-small", "data": [ { "object": "embedding", "index": 0, "embedding": [ 0.0023, -0.009, 0.015 ] } ], "usage": { "prompt_tokens": 5, "total_tokens": 5 }}Was this page helpful?