Embeddings
Create embeddings
Changed onCreates an embedding vector for the provided input text. OpenAI-compatible endpoint.
post/v1/embeddings
Request
- Base URL/ (relative, and the document was published on a file host, not at the API’s origin)
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"model": "text-embedding-ada-002"
}Response
Embedding created successfully
Changes
- info
endpoint added
- info
- breaking
api path removed without deprecation
- breaking