Create embeddings for text using various AI models
cURL
curl --request POST \ --url https://router.requesty.ai/v1/embeddings \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "input": "<string>", "model": "openai/text-embedding-3-small", "dimensions": 123, "encoding_format": "float", "user": "<string>" }'
{ "data": [ { "embedding": [ 123 ], "index": 123, "object": "<string>" } ], "model": "<string>", "object": "<string>", "usage": { "prompt_tokens": 123, "total_tokens": 123 } }
API key for authentication
Embedding response
The response is of type object.
object