Skip to main content
Glama

Generate image from text prompt: AI image generation, a JPEG in seconds

image_generate
Read-only

Generate an image from a text prompt with FLUX.1 schnell: send a prompt, get a 1024x1024 JPEG back as base64 in a few seconds, with an optional steps setting (1-8) for more detail. Use for illustrations, thumbnails, mockups, avatars, product shots and social media images inside an agent workflow. 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.

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. Added

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations it discloses latency ('a few seconds'), return encoding (base64 JPEG), pricing ($0.03/call via x402 USDC or card key), that failed calls are free, and that repeats are charged — consistent with idempotentHint=false. The 'reads or computes only and changes nothing' line restates readOnlyHint, but the pricing and cost-on-repeat details are substantive additions an agent could not infer.

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 value proposition and output format are front-loaded and every sentence carries information (cost, latency, example). It is a single dense block, and the closing 'reads or computes only and changes nothing' partly duplicates the annotations, so a little trimming is possible.

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?

For a two-parameter generation tool with no output schema, the description covers what comes back (base64 JPEG, 1024x1024), how long it takes, what it costs, and what prompts work well. An agent has everything needed to call it correctly and budget for it.

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 the baseline is 3; the description nonetheless adds meaning by explaining that `steps` buys 'more detail' and that the prompt is a free-text description, plus a concrete example. It does not resolve the mismatch between the schema's unbounded integer maximum and the stated 1-8 range, which would have been useful.

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?

The description names a specific verb and resource ('Generate an image from a text prompt'), the underlying model (FLUX.1 schnell), and the exact output (1024x1024 JPEG as base64). Nothing in the sibling list (ai_speech, ai_tts, ai_translate, ai_answer) could be confused with it.

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 concrete use cases ('illustrations, thumbnails, mockups, avatars, product shots and social media images inside an agent workflow') and a worked example prompt, so an agent knows the intended context. It stops short of stating when NOT to use it or naming an alternative sibling such as `image`, which leaves a small ambiguity.

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