AI & LLM
Embedding Vector Response JSON Example
A JSON example of an embeddings API response — includes the float vector, model, index, and token usage. Copy-ready for semantic search, RAG, and vector databases.
Field Reference
datarequiredarray<object>One embedding object per input string, in request orderdata[].indexrequiredintegerPosition of this embedding matching the input array indexdata[].embeddingrequiredarray<number>The dense float vector. Real vectors have 256–3072 dimensions (truncated here)modelrequiredstringEmbedding model used; determines the vector dimensionalityusage.total_tokensrequiredintegerTokens consumed embedding the input — used for billingVariants
Request bodySend one or many strings to embed in a single call.
Stored vector recordHow an embedding is typically persisted in a vector database with metadata.
Common Use Cases
- →Indexing documents for semantic search and retrieval-augmented generation (RAG)
- →Finding similar items by cosine similarity between vectors
- →Clustering or deduplicating text by embedding distance
embeddingsvectorsemantic searchragvector database
Validate or format this JSON
One click loads this exact example into the tool — no copy-paste needed. Format it, validate it, explore the tree, or generate TypeScript types instantly.
Frequently Asked Questions
Related JSON Examples
AI & LLMRAG Document ChunkA RAG chunk with text, source metadata, embedding reference, and relevance score.AI & LLMOpenAI Chat Completion ResponseOpenAI Chat Completions API response with choices, message, finish_reason, and usage.API DesignSearch API ResponseSearch API response JSON with scored hits, highlights, facets, and pagination.