A valid request URL is required to generate request examples
{ "object": "list", "data": [ { "object": "embedding", "embedding": [ 123 ], "index": 123 } ], "model": "<string>", "usage": { "prompt_tokens": 123, "completion_tokens": 123, "total_tokens": 123, "prompt_tokens_details": { "cached_tokens": 123 }, "completion_tokens_details": { "reasoning_tokens": 123, "accepted_prediction_tokens": 123, "rejected_prediction_tokens": 123 }, "cache_creation_input_tokens": 123, "cache_read_input_tokens": 123 } }
Creates an embedding vector representing the input text.
API key passed as a Bearer token.
Model identifier.
Text to embed — a single string or array of strings.
float
base64
Embedding response
"list"
Show child attributes
Was this page helpful?