{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/telnyx/main/json-schema/telnyx-open-aiembedding-response-schema.json", "title": "OpenAIEmbeddingResponse", "x-generated": "2026-10-08", "x-method": "derived", "x-generator": "derive-json-schema.py", "x-source": "openapi/telnyx-openai-embeddings-api-openapi.yml#/components/schemas/OpenAIEmbeddingResponse", "properties": { "data": { "description": "List of embedding objects", "items": { "$ref": "#/$defs/OpenAIEmbeddingData" }, "type": "array" }, "model": { "description": "The model used for embedding", "type": "string" }, "object": { "default": "list", "description": "The object type, always 'list'", "type": "string" }, "usage": { "$ref": "#/$defs/OpenAIEmbeddingUsage" } }, "required": [ "object", "data", "model", "usage" ], "type": "object", "$defs": { "OpenAIEmbeddingData": { "properties": { "embedding": { "description": "The embedding vector", "items": { "type": "number" }, "type": "array" }, "index": { "description": "The index of the embedding in the list of embeddings", "type": "integer" }, "object": { "default": "embedding", "description": "The object type, always 'embedding'", "type": "string" } }, "required": [ "object", "embedding", "index" ], "title": "OpenAIEmbeddingData", "type": "object" }, "OpenAIEmbeddingUsage": { "properties": { "prompt_tokens": { "description": "Number of tokens in the input", "type": "integer" }, "total_tokens": { "description": "Total number of tokens used", "type": "integer" } }, "required": [ "prompt_tokens", "total_tokens" ], "title": "OpenAIEmbeddingUsage", "type": "object" } } }