Skip to main content
Glama

generate_image

Create AI-generated images using models like Flux and Stable Diffusion. Provide a text prompt and valid payment ID to generate custom visuals.

Instructions

Generate images using AI models like Flux, Stable Diffusion, etc. Requires a valid paid payment ID.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paymentIdYesValid payment ID (must be paid)
promptYesText prompt describing the image to generate
modelIdYesThe AI model database ID (see Model IDs Reference)
amountNoNumber of images to generate
imageBase64NoOptional base64 image for img2img generation

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/cnghockey/sats4ai'

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