Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
The input to embed, can be a single string or a list of strings
Examples:
"Hello, world!"
["Hello, world!", "Hello, world!"]
The model to use for the embedding, if not provided, EmbeddingModel(hosting_provider='Azure', location='EU', identifier='azure/text-embedding-3-large', name='azure/text-embedding-3-large-1536', dimensions=1536, max_tokens=8191, credentials='azure-se', is_default=True, is_public=True, extra={'api_base': 'https://opperopenaiservice.openai.azure.com', 'api_version': '2023-05-15', 'dimensions': 1536})
will be used
Examples:
{
"extra_headers": {},
"name": "text-embedding-3-large",
"options": { "dimensions": 256 }
}
Response
Successful Response