mcp-imagegen mcp

v1.0.0 · MCP Tool · ai · registry.pascalai.org

Generate images using multiple AI providers (OpenAI DALL-E, Stability AI, Flux) with automatic provider selection.

imagegendallestabilityaiimages

Input Parameters

ParameterTypeDescription
providerrequired string One of: openai, stability, flux, replicate. Default: openai.
api_keyrequired string
promptrequired string
negative_promptoptional string
modeloptional string
widthoptional integer Default: 1024.
heightoptional integer Default: 1024.
stepsoptional integer Default: 20.
guidance_scaleoptional number Default: 7.5.
noptional integer Default: 1.
output_pathoptional string
output_formatoptional string One of: png, jpg, webp. Default: png.
seedoptional integer

Output Fields

FieldTypeDescription
images array[string]
model string
width integer
height integer
seed integer

Examples

Generate landscape image

// Input
{
  "provider": "openai",
  "api_key": "sk-xxx",
  "prompt": "A serene mountain lake at sunset with reflections, photorealistic",
  "width": 1024,
  "height": 1024
}

// Output
{
  "images": [
    "data:image/png;base64,..."
  ],
  "model": "dall-e-3"
}

Install & Discovery

Install

ppm install mcp-imagegen

Get JSON Schema

GET /v1/packages/mcp-imagegen/1.0.0/schema

Discover by keyword

GET /v1/mcp/discover?q=imagegen
Discovery hint: Install with ppm install mcp-imagegen or invoke remotely via POST /v1/invoke/mcp-imagegen on the MCP Service.

PascalAI Usage

uses toolslib;
var Tool := LoadTool('mcp-imagegen');
var R := Tool.Call(JsonObj([]));
Writeln(R.ToJSON);