Skip to main content
Glama

Image generation, generate image from a text prompt: create a picture from a description with an AI image model

image
Read-only

Text-to-image generation with FLUX.1 schnell. Send a prompt, get a 1024x1024 JPEG back as base64 in a few seconds. Use for illustrations, thumbnails, mockups, avatars and social media images. Optional steps parameter (1-8, default 4) trades speed for detail. Example: prompt=a lighthouse on a cliff at sunset, watercolor. Price $0.03/call via x402 USDC or a card key (/credits); failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "prompt": "<prompt>"
    },
    "name": "image"
  }
}

Input Schema

NameRequiredDescriptionDefault
stepsNoDiffusion steps, 1-8 (default 4)
promptYesWhat the image should show (3-800 characters)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / steps / maximum
      Previous value: -9007199254740991New value: +8
    • changedInput schema / properties / steps / minimum
      Previous value: --9007199254740991New value: +1
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations declare readOnlyHint=true, destructiveHint=false and idempotentHint=false, but the description goes well beyond them: return format and dimensions, latency ('a few seconds'), pricing ($0.03/call via x402 USDC or card key), the fact failed calls are free, and the explicit warning that repeats are not free because each call is charged. That cost-per-call disclosure is exactly the kind of context annotations cannot carry.

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

Conciseness4/5

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

Front-loaded with purpose, model, output and latency before the cost caveat; nearly every sentence carries distinct information. The clause 'Reads or computes only and changes nothing' restates readOnlyHint and is the one redundant line.

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

Completeness5/5

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

With no output schema available, the description supplies the return contract (base64 JPEG, 1024x1024) plus timing and billing behavior, so an agent knows both what it gets back and what it costs. Nothing material is missing for a two-parameter generation call.

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?

Schema coverage is 100%, so range and default for 'steps' are already documented in the schema. The description still adds meaning by framing the parameter as a speed-versus-detail tradeoff and by giving a concrete example prompt, which clarifies the expected content and style of the required field.

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?

States a specific verb and resource ('Text-to-image generation with FLUX.1 schnell') and pins down the exact output ('1024x1024 JPEG back as base64'), which no sibling tool provides. An agent can distinguish this from image_metadata or the text-only AI siblings without opening the schema.

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

Usage Guidelines4/5

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

Gives concrete use contexts ('illustrations, thumbnails, mockups, avatars and social media images') plus a worked example prompt. It stops short of explicit when-not guidance or naming an alternative, but no sibling competes for text-to-image work, so the gap is small.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources