mcp-imagegen-openai mcp
v1.0.0 · MCP Tool · ai · registry.pascalai.org
Generate images using OpenAI DALL-E 2 and DALL-E 3 models via the OpenAI Images API.
dalleopenaiimagegenaiimages
Input Parameters
| Parameter | Type | Description |
| api_keyrequired |
string |
|
| modeloptional |
string |
One of: dall-e-3, dall-e-2. Default: dall-e-3. |
| promptrequired |
string |
|
| noptional |
integer |
Default: 1. |
| sizeoptional |
string |
One of: 256x256, 512x512, 1024x1024, 1792x1024, 1024x1792. Default: 1024x1024. |
| qualityoptional |
string |
One of: standard, hd. Default: standard. |
| styleoptional |
string |
One of: vivid, natural. Default: vivid. |
| response_formatoptional |
string |
One of: url, b64_json. Default: url. |
| output_pathoptional |
string |
|
Output Fields
| Field | Type | Description |
| images |
array[string] |
|
| model |
string |
|
| revised_prompt |
string |
|
Examples
Generate HD image with DALL-E 3
// Input
{
"api_key": "sk-xxx",
"model": "dall-e-3",
"prompt": "A cyberpunk city with neon lights and flying cars at night",
"quality": "hd",
"size": "1792x1024"
}
// Output
{
"images": [
"https://oaidalleapiprodscus.blob.core.windows.net/..."
],
"model": "dall-e-3",
"revised_prompt": "A bustling cyberpunk metropolis..."
}
Install & Discovery
Install
ppm install mcp-imagegen-openai
Get JSON Schema
GET /v1/packages/mcp-imagegen-openai/1.0.0/schema
Discover by keyword
GET /v1/mcp/discover?q=dalle
Discovery hint: Install with ppm install mcp-imagegen-openai or invoke remotely via POST /v1/invoke/mcp-imagegen-openai on the MCP Service.
PascalAI Usage
uses toolslib;
var Tool := LoadTool('mcp-imagegen-openai');
var R := Tool.Call(JsonObj([]));
Writeln(R.ToJSON);