Skip to main content
Glama

ai.image.generate

Create custom images from text descriptions using Stable Diffusion. Specify style presets, aspect ratios, and negative prompts to generate base64 PNG images for various applications.

Instructions

Generate images from text prompts using Stable Diffusion — supports style presets (anime, cinematic, pixel-art, photographic...), aspect ratios, negative prompts. Returns base64 PNG data URI. Powered by Stability AI

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
promptYesText prompt describing the image to generate (e.g. "a futuristic city at sunset, cyberpunk style, detailed")
negative_promptNoWhat to exclude from the image (e.g. "blurry, low quality, text, watermark")
aspect_ratioNoImage aspect ratio (default "1:1")
style_presetNoStyle preset to guide generation
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full disclosure burden. It successfully documents the return format ('base64 PNG data URI') but omits critical operational details like synchronous/asynchronous behavior, rate limits, content restrictions, or whether images persist server-side.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The single dense sentence uses em-dashes to efficiently pack capabilities, return format, and provider attribution without redundancy. Information is front-loaded with the core action, and every clause earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Without an output schema, the description compensates by specifying the return format (base64 PNG data URI). Given the rich input schema coverage, the description is nearly complete, though it could benefit from mentioning error cases or generation latency for this computationally intensive operation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Despite 100% schema coverage (baseline 3), the description adds value by enumerating concrete style preset examples ('anime, cinematic, pixel-art, photographic') and introducing the 'negative prompts' concept, which helps users understand parameter intent beyond the schema's basic descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb ('Generate') and resource ('images'), clearly stating it uses Stable Diffusion for text-to-image creation. It effectively distinguishes from siblings like 'ai.ocr.extract' (text extraction) and 'media.pexels.search_photos' (searching existing images) by emphasizing AI generation with style presets.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

While the mention of 'Stable Diffusion' and 'style presets' implies creative/AI use cases versus stock photo retrieval, there are no explicit when-to-use guidelines, prerequisites (e.g., content policies), or named alternatives to guide selection over similar tools.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/whiteknightonhorse/APIbase'

If you have feedback or need assistance with the MCP directory API, please join our Discord server