mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-07-10 01:18:32 +00:00
docs
This commit is contained in:
parent
73cc7d9287
commit
a5019767c3
1 changed files with 81 additions and 0 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue