Skip to main content
Glama

Text-to-image (FLUX.1 schnell)

ai_image

Use when an agent needs a picture it can hand straight to the next step: a 1024x1024 JPEG from a text prompt with FLUX.1 [schnell] in about 2 seconds. Returns a hosted image URL valid for 24 hours that you can hand straight to the next tool; add inline=true to also get the base64. Choose 1-8 diffusion steps (default 4). You are only charged if the image is delivered. No API key, no account. $0.02 per call, paid over x402 (USDC).

Input Schema

NameRequiredDescriptionDefault
stepsNoDiffusion steps, 1-8. More is sharper and slower. Default 4.
inlineNoAlso return the JPEG as base64. Default false.
promptYesWhat to draw, up to 2048 characters. English works best.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so well: it discloses latency (~2 seconds), output format, 24-hour URL validity, optional base64 return, pricing ($0.02 per call), charging only on delivery, payment via x402/USDC, and no API key/account requirement. These are meaningful behavioral details beyond the schema.

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?

The description is dense and front-loads the main usage scenario and output format. It has slight redundancy in repeating 'hand straight to the next step/tool', but overall it remains efficient and appropriately sized.

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?

Given no annotations and no output schema, the description fully explains the return value (hosted URL valid 24 hours, optional base64), model, image size/format, cost, auth/payment, and latency. An agent has enough information to call it and understand the result.

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

Parameters3/5

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

Schema coverage is 100%, so the schema already documents prompt, steps, and inline. The description reinforces steps 1-8/default 4 and inline=true/base64, but this mostly duplicates schema semantics rather than adding new parameter meaning.

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

Purpose4/5

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

The description states a specific verb and resource: generate a 1024x1024 JPEG from a text prompt using FLUX.1 [schnell]. It is clearly a text-to-image tool rather than an edit/describe/styled sibling, but it does not explicitly name or contrast those alternatives.

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?

It gives clear usage context: use when an agent needs a picture it can pass directly to the next step, and it explains when to add inline=true for base64. It lacks explicit when-not guidance or named alternatives such as ai_image_edit or ai_image_styled.

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