Embeddings
Create embeddings
ModelsExpand Collapse
CreateEmbeddingResponse = object { data, model, object, usage }
The list of embeddings generated by the model.
The list of embeddings generated by the model.
The embedding vector, which is a list of floats. The length of vector depends on the model as listed in the embedding guide.
The index of the embedding in the list of embeddings.
The object type, which is always "embedding".
The name of the model used to generate the embedding.
The object type, which is always "list".
usage: object { prompt_tokens, total_tokens } The usage information for the request.
The usage information for the request.
The number of tokens used by the prompt.
The total number of tokens used by the request.
Embedding = object { embedding, index, object } Represents an embedding vector returned by embedding endpoint.
Represents an embedding vector returned by embedding endpoint.
The embedding vector, which is a list of floats. The length of vector depends on the model as listed in the embedding guide.
The index of the embedding in the list of embeddings.
The object type, which is always "embedding".