cURL
curl --request POST \ --url https://api.example.com/api/v1/openai/embeddings \ --header 'Authorization: Basic <encoded-value>' \ --header 'Content-Type: application/json' \ --data ' { "model": "<string>", "input": [ "<string>" ], "encoding_format": "float" } '
{ "detail": [ { "loc": [ "<string>" ], "msg": "<string>", "type": "<string>", "input": "<unknown>", "ctx": {} } ] }
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Basic <encoded-value>
<encoded-value>
username:password
Corresponds to the arguments for OpenAI client.embeddings.create(...).
client.embeddings.create(...)
float
base64
Successful Response