Skip to main content
Glama

generate_image

Create images from text descriptions using Stable Diffusion technology. Configure performance settings, aspect ratios, and select from hundreds of styles to generate custom visuals.

Instructions

Generate an image using Fooocus Stable Diffusion API. Args: prompt: Text description of the image to generate performance: Performance setting (Speed, Quality, Extreme Speed) custom_styles: Comma-separated list of custom styles (optional, will auto-select if not provided) aspect_ratio: Image aspect ratio (default: 1024*1024) Returns: Dictionary containing generation result with image URLs

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
promptYes
performanceNoSpeed
custom_stylesNo
aspect_ratioNo1024*1024

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/raihan0824/mcp-fooocus-api'

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