CreateEmbeddingsUsage - Python SDK

CreateEmbeddingsUsage method reference

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

Token usage statistics

Fields

FieldTypeRequiredDescriptionExample
costOptional[float]Cost of the request in credits0.0001
prompt_tokensint✔️Number of tokens in the input8
prompt_tokens_detailsOptional[operations.PromptTokensDetails]Per-modality token breakdown. Only present when the input contains 2+ modalities (e.g. text + image) and the upstream provider returns modality-level usage data. Only non-zero modality counts are included.
total_tokensint✔️Total number of tokens used8