Skip to main content
Glama

x402_llmimage_post_v1_image

Generate AI images via OpenRouter with pay-per-call USDC and no API key. Returns images inline.

Instructions

llmimage — Pay-per-call AI image generation via OpenRouter (Gemini, GPT-5 image models). Returns generated images inline. No API key needed. [POST /v1/image] $0.05-0.40 USDC on eip155:8453. Example: {"prompt":"..."} — $0.05

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "x402_llmimage_post_v1_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNoJSON body for POST/PUT/PATCH/DELETE
queryNoQuery parameters, e.g. {base:'USD', quote:'EUR'}
restartNoExplicitly re-run a previously failed/unknown operation. Never set for unknown outcomes unless you know the paid call did not complete.
operationIdNoDurable operation id for this intent. Supply a stable id (e.g. your job/run id) to dedupe retries; omit to derive one from the arguments.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden and does disclose meaningful behavior: payment of $0.05-0.40 USDC on eip155:8453, no API key required, and images returned inline. It stops short of the traits that matter most for a paid mutation-like call — whether a failed generation is still charged, refund semantics, and who selects the underlying model — leaving those to be inferred.

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?

Tight and front-loaded — provider, endpoint, payment, and example arrive in a single compact block with no filler sentences. The pricing is stated twice ($0.05-0.40 range, then a trailing "— $0.05") in a way that reads ambiguously rather than clarifying.

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

Completeness3/5

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

For a paid tool with no annotations and no output schema, the definition covers the essentials (cost, currency, chain, keyless auth, inline image return). It leaves notable gaps around model/tier selection and failure-or-refund behavior, which are precisely the unknowns an agent spending money needs resolved.

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 would be 3, but the opaque free-form `body` parameter (additionalProperties with no declared properties) is only made usable by the description's example {"prompt":"..."}, which reveals the actual payload shape. That is genuine added meaning beyond the schema, though query/restart/operationId are not addressed.

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?

States a specific verb and resource: pay-per-call AI image generation via OpenRouter with named model families (Gemini, GPT-5), plus the concrete endpoint POST /v1/image. It does not distinguish itself from the sibling image_pro and image_ultra tiers, which share the same verb and resource, so an agent cannot tell from this text alone which tier to pick.

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

Usage Guidelines3/5

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

The description implies usage well enough — a paid, keyless image-generation call with a cost range and a sample prompt — but gives no explicit when-to-use or when-not-to-use guidance, and never explains the relationship to the pro/ultra variants despite their identical naming pattern.

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

Deploy Server

Other Tools