CreateEmbeddingsResponseBody - Go SDK

CreateEmbeddingsResponseBody type definition

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

Embeddings response containing embedding vectors

Fields

FieldTypeRequiredDescriptionExample
Data[]operations.CreateEmbeddingsData✔️List of embedding objects[
{"embedding": [0.0023064255,-0.009327292,0.015797347],"index": 0,"object": "embedding"}
]
ID*stringUnique identifier for the embeddings responseembd-1234567890
Modelstring✔️The model used for embeddingsopenai/text-embedding-3-small
Objectoperations.Object✔️N/A
Usage*operations.CreateEmbeddingsUsageToken usage statistics{"prompt_tokens": 8,"total_tokens": 8}