diff --git a/embd_res/kcpp_docs.embd b/embd_res/kcpp_docs.embd index 92234c19d..ed44c09f9 100644 --- a/embd_res/kcpp_docs.embd +++ b/embd_res/kcpp_docs.embd @@ -2849,6 +2849,87 @@ "responses": {"default": {"description": ""}} } }, + "/v1/images/generations": { + "post": { + "summary": "Generates images from a text prompt. Please refer to OpenAI documentation", + "description": "Creates images from a text prompt.\n\n This is an OpenAI compatibility endpoint.\n\n Please refer to OpenAI documentation at [https://developers.openai.com/docs/api-reference/images/create](https://developers.openai.com/docs/api-reference/images/create).", + "requestBody": { + "content": { + "application/json": { + "example": {"model":"kcpp","prompt": "picture of a kobold, high quality HD render", "n": 1, "size": "512x512", "response_format": "b64_json"}, + "schema": { + "properties": { + "model": { + "type": "string", + "description": "Model identifier. Use kcpp for the currently loaded image model." + }, + "prompt": { + "type": "string", + "description": "Text prompt describing the image to generate." + }, + "n": { + "type": "integer", + "description": "Number of images to generate.", + "minimum": 1 + }, + "size": { + "type": "string", + "description": "Requested image size, such as 512x512 or 1024x1024." + }, + "response_format": { + "type": "string", + "description": "Response image format. b64_json returns base64 encoded image data." + } + }, + "required": [ + "prompt" + ], + "type": "object" + } + } + }, + "required": true + }, + "tags": [ + "v1" + ], + "responses": { + "200": { + "content": { + "application/json": { + "example": {"created": 1710000000, "data": [{"b64_json": "base64_image_data"}]}, + "schema": { + "properties": { + "created": { + "type": "integer", + "description": "Unix timestamp for the generation request." + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "b64_json": { + "type": "string", + "description": "Base64 encoded image data." + }, + "url": { + "type": "string", + "description": "Image URL, if URL responses are supported." + } + } + } + } + }, + "type": "object" + } + } + }, + "description": "Successful request" + } + } + } + }, "/v1/models": { "get": { "summary": "List and describe the various models available in the API. Please refer to OpenAI documentation",