POST
/
v1
/
embeddings
Create embedding
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
  }
}

Authorizations

Authorization
string
header
required

API key for authentication

Body

application/json

Response

200
application/json

Embedding response

The response is of type object.