Submit an embedding request
Submits an embedding request to the embeddings router
Request body
Example request
{
"dimensions": 1536,
"input": "The quick brown fox jumps over the lazy dog",
"model": "openai/text-embedding-3-small"
}Response
Embedding response
Example response
{
"data": [
{
"embedding": [
0.0023064255,
-0.009327292,
0.015797347
],
"index": 0,
"object": "embedding"
}
],
"model": "openai/text-embedding-3-small",
"object": "list",
"usage": {
"prompt_tokens": 8,
"total_tokens": 8
}
}Changes
Changed in 40 of the 303 revisions of this API.314100
- ○
added the non-success response with the status
response-non-success-status-added
- ○
- ○
added the new optional request property
//////new-optional-request-property
- ○
added the new
Respanenum value to the request property//////////request-property-enum-value-added
- ○
added the new
Respanenum value to the request property//////////request-property-enum-value-added
- ○
added the new
Respanenum value to the request property//////////request-property-enum-value-added
- ○
- ○
added the new optional request property
//////new-optional-request-property
- ○
added the new
ScaleDownenum value to the request property//////////request-property-enum-value-added
- ○
added the new
ScaleDownenum value to the request property//////////request-property-enum-value-added
- ○
added the new
ScaleDownenum value to the request property//////////request-property-enum-value-added
- ○
- ○
added the new optional request property
/////new-optional-request-property
- ○
- ○
added the new
Unbiasedenum value to the request property//////////request-property-enum-value-added
- ○
added the new
Unbiasedenum value to the request property//////////request-property-enum-value-added
- ○
added the new
Unbiasedenum value to the request property//////////request-property-enum-value-added
- ○
- ○
added the new
TypeSafeenum value to the request property//////////request-property-enum-value-added
- ○
added the new
TypeSafeenum value to the request property//////////request-property-enum-value-added
- ○
added the new
TypeSafeenum value to the request property//////////request-property-enum-value-added
- ○
- ○
added the new optional request property
new-optional-request-property
- ○
- ○
added the new optional request property
new-optional-request-property
- ○
- ○
added the new
AssemblyAIenum value to the request property//////////request-property-enum-value-added
- ○
added the new
AssemblyAIenum value to the request property//////////request-property-enum-value-added
- ○
added the new
AssemblyAIenum value to the request property//////////request-property-enum-value-added
- ○
- ○
added the new
Near AIenum value to the request property//////////request-property-enum-value-added
- ○
added the new
Near AIenum value to the request property//////////request-property-enum-value-added
- ○
added the new
Near AIenum value to the request property//////////request-property-enum-value-added
- ○