Skip to main content
Glama

generate_image

Create images from text descriptions using Stable Diffusion on Mac. Save generated images to disk with customizable parameters like dimensions and model selection.

Instructions

Generate an image from a text prompt using the Draw Things app. The image will be saved to disk and the file path returned.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
promptYesText description of the image to generate
negative_promptNoElements to exclude from the generated image
widthNoWidth of the generated image in pixels (default: 512)
heightNoHeight of the generated image in pixels (default: 512)
stepsNoNumber of inference steps (default: 20)
cfg_scaleNoClassifier-free guidance scale (default: 7.5)
seedNoRandom seed for reproducibility (-1 for random)
modelNoModel filename to use for generation (use list_models to see available models)
output_pathNoCustom file path to save the generated image

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/james-see/mcp-drawthings'

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