CreateEmbeddingsRequestBody - Python SDK

CreateEmbeddingsRequestBody method reference

The Python SDK and docs are currently in beta. Report issues on GitHub.

Embeddings request input

Fields

FieldTypeRequiredDescriptionExample
dimensionsOptional[int]The number of dimensions for the output embeddings1536
encoding_formatOptional[operations.EncodingFormat]The format of the output embeddingsfloat
inputoperations.InputUnion✔️Text, token, or multimodal input(s) to embedThe quick brown fox jumps over the lazy dog
input_typeOptional[str]The type of input (e.g. search_query, search_document)search_query
modelstr✔️The model to use for embeddingsopenai/text-embedding-3-small
providerOptionalNullable[components.ProviderPreferences]N/A{"allow_fallbacks": true}
userOptional[str]A unique identifier for the end-useruser-1234