Skip to main content
Glama

Aigentra x402 API

images_generations

Read-only

Text-to-image generation, OpenAI-compatible images/generations response (data[0].b64_json), $0.008 per image, no API key. FLUX.1 [schnell] model, 1024x1024 JPEG returned as base64. POST {prompt, steps} or GET ?prompt=. Good for thumbnails, illustrations, concept art, social images. Price $0.008 USDC per call (x402, Base).

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": "images_generations"
  }
}

Input Schema

NameRequiredDescriptionDefault
stepsNoDiffusion steps 1-8, default 4
promptYesImage description, max 2,000 chars

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only declare readOnlyHint and openWorldHint; the description goes well beyond by disclosing cost ($0.008 per image / USDC per call via x402 on Base), that no API key is needed, the exact output encoding, and the model/resolution behind the result. Cost and payment mechanism are exactly the operational facts an agent needs before invoking a paid generation endpoint.

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?

Dense but well front-loaded — capability and response format come first, then model, then price and invocation options. The only waste is the price being stated twice ('$0.008 per image' and 'Price $0.008 USDC per call'), a minor redundancy in an otherwise efficient string.

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?

No output schema exists, and the description compensates fully by specifying the response path (data[0].b64_json), the format (base64 JPEG at 1024x1024), and the model used. For a 2-parameter paid generation tool, nothing an agent needs in order to call it or parse the result is missing.

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%: 'prompt' (max 2,000 chars) and 'steps' (1-8, default 4) are already documented in the schema. The description only restates the shape '{prompt, steps}' without adding range, format, or prompt-engineering guidance beyond it, so the baseline 3 applies.

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+resource ('Text-to-image generation'), names the model (FLUX.1 [schnell]), resolution (1024x1024 JPEG) and the response shape (OpenAI-compatible data[0].b64_json). This clearly separates it from siblings like chat_completions or embeddings, which have different output contracts.

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 usage contexts ('Good for thumbnails, illustrations, concept art, social images') and both invocation styles (POST body vs GET query), which tells an agent how to call it. It stops short of explicit when-not-to-use guidance or naming an alternative image tool, so it is strong but not a full routing rule.

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.