action openai_create_image { label: "Creates an image given a prompt." provider: openai method: POST path: "/images/generations" encoding: json input: { type: "object" required: ["prompt"] properties: { n: { type: "integer" description: "The number of images to generate. Must be between 1 and 10." } prompt: { type: "string" description: "A text description of the desired image(s). The maximum length is 1000 characters." } response_format: { type: "string" description: "The format in which the generated images are returned. Must be one of `url` or `b64_json`." enum: ["url", "b64_json"] } size: { type: "string" description: "The size of the generated images. Must be one of `256x256`, `512x512`, or `1024x1024`." enum: ["256x256", "512x512", "1024x1024"] } 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" } } } output: { required: ["created", "data"] properties: { created: { type: "integer" } data: { type: "array" items: { type: "object" properties: { b64_json: { type: "string" } url: { type: "string" } } } } } } }