action openai_create_embedding { label: "Creates an embedding vector representing the input text." provider: openai method: POST path: "/embeddings" encoding: json input: { type: "object" required: ["input", "model"] properties: { input: { description: "Input text to get embeddings for, encoded as a string or array of tokens. To get embeddings for multiple inputs in a single request, pass an array of strings or array of token arrays. Each input must not exceed 8192 tokens in length.\n" type: "object" } model: { type: "string" description: "ID of the model to use. You can use the [List models](/docs/api-reference/models/list) API to see all of your available models, or see our [Model overview](/docs/models/overview) for descriptions of them." } user: { type: "string" description: "A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](/docs/guides/safety-best-practices/end-user-ids).\n" } } additionalProperties: false } output: { type: "object" required: ["data", "model", "object", "usage"] properties: { data: { type: "array" items: { type: "object" required: ["index", "object", "embedding"] properties: { embedding: { type: "array" items: { type: "number" } } index: { type: "integer" } object: { type: "string" } } } } model: { type: "string" } object: { type: "string" } usage: { type: "object" required: ["prompt_tokens", "total_tokens"] properties: { prompt_tokens: { type: "integer" } total_tokens: { type: "integer" } } } } } }