Embeddings
Get a vector representation of a given input that can be easily consumed by machine learning models and algorithms.
Create embeddings
POST/embeddings
ModelsExpand Collapse
CreateEmbeddingResponse object { data, model, object, usage }
CreateEmbeddingResponse object { data, model, object, usage }
The list of embeddings generated by the model.
The list of embeddings generated by the model.
embedding: array of number or stringThe embedding vector, returned as a list of floats when encoding_format is float (the default), or as a base64-encoded string when encoding_format is base64. The length of the vector depends on the model as listed in the embedding guide.
embedding: array of number or string
The embedding vector, returned as a list of floats when encoding_format is float (the default), or as a base64-encoded string when encoding_format is base64. The length of the vector depends on the model as listed in the embedding guide.
Embedding object { embedding, index, object } Represents an embedding vector returned by embedding endpoint.
Embedding object { embedding, index, object }
Represents an embedding vector returned by embedding endpoint.
embedding: array of number or stringThe embedding vector, returned as a list of floats when encoding_format is float (the default), or as a base64-encoded string when encoding_format is base64. The length of the vector depends on the model as listed in the embedding guide.
embedding: array of number or string
The embedding vector, returned as a list of floats when encoding_format is float (the default), or as a base64-encoded string when encoding_format is base64. The length of the vector depends on the model as listed in the embedding guide.