mcp-imagegen-a1111 mcp
v1.0.0 · MCP Tool · ai · registry.pascalai.org
Generate images using Automatic1111 Stable Diffusion WebUI API (txt2img, img2img, inpainting).
a1111automatic1111stablediffusionimagegenlocal
Input Parameters
| Parameter | Type | Description |
| hostoptional |
string |
Default: http://localhost:7860. |
| operationrequired |
string |
One of: txt2img, img2img, inpaint, upscale, get_models, get_samplers, get_loras. |
| promptoptional |
string |
|
| negative_promptoptional |
string |
Default: . |
| modeloptional |
string |
SD model checkpoint name. |
| sampleroptional |
string |
Default: DPM++ 2M Karras. |
| stepsoptional |
integer |
Default: 20. |
| cfg_scaleoptional |
number |
Default: 7.0. |
| widthoptional |
integer |
Default: 512. |
| heightoptional |
integer |
Default: 512. |
| seedoptional |
integer |
Default: -1. |
| n_iteroptional |
integer |
Default: 1. |
| init_imageoptional |
string |
Base64 init image. |
| denoising_strengthoptional |
number |
Default: 0.75. |
| output_pathoptional |
string |
|
Output Fields
| Field | Type | Description |
| images |
array[string] |
|
| seed |
integer |
|
| info |
object |
|
| models |
array[string] |
|
Examples
Generate image txt2img
// Input
{
"host": "http://localhost:7860",
"operation": "txt2img",
"prompt": "detailed portrait of a wizard, fantasy art",
"steps": 25,
"width": 512,
"height": 768
}
// Output
{
"images": [
"data:image/png;base64,..."
],
"seed": 42
}
Install & Discovery
Install
ppm install mcp-imagegen-a1111
Get JSON Schema
GET /v1/packages/mcp-imagegen-a1111/1.0.0/schema
Discover by keyword
GET /v1/mcp/discover?q=a1111
Discovery hint: Install with ppm install mcp-imagegen-a1111 or invoke remotely via POST /v1/invoke/mcp-imagegen-a1111 on the MCP Service.
PascalAI Usage
uses toolslib;
var Tool := LoadTool('mcp-imagegen-a1111');
var R := Tool.Call(JsonObj([]));
Writeln(R.ToJSON);