Skip to main content
Glama

Generate Image

generate_image

Generate images from text prompts using the flux-2-klein model. Returns the saved image file path and URL.

Instructions

Generate an image with flux-2-klein (NaN API). Returns the saved image file path and its URL.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nNoNumber of images to generate (1-4). Default 1
seedNoBase seed for reproducibility
sizeNoImage size "WxH" divisible by 16, e.g. 1024x1024, 1536x1024, 1024x1536. Default 1024x1024
promptYesTextual description of the image to generate
guidanceNoFLUX guidance scale
outputNameNoOptional base name for the output file(s)
Behavior3/5

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

With no annotations, the description carries the transparency burden. It does disclose the return value ('saved image file path and its URL'), which adds useful behavioral context. However, it does not mention potential side effects like file persistence, overwriting behavior, or cost implications of generating images.

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

Conciseness5/5

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

The description is a single, focused sentence that immediately states the core function, model, and return behavior. Every word adds value, with no fluff or redundancy.

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

Completeness4/5

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

For a straightforward generation tool, the description covers the essential aspects: what it does, the model used, and what it returns. The schema covers parameters comprehensively, and the lack of an output schema is mitigated by the explicit return description. It could mention file storage details, but this is not critical for basic usage.

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?

The input schema provides descriptions for all 6 parameters (100% coverage), so the description does not need to elaborate. The description adds no new parameter-level details beyond what the schema already states, which aligns with the baseline score of 3 for high schema coverage.

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 clearly states the action ('Generate an image'), the specific model ('flux-2-klein'), and the API ('NaN API'). It distinguishes from sibling tools like edit_image by focusing on generation rather than editing or other audio/text operations.

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

Usage Guidelines2/5

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

The description does not provide any guidance on when to use this tool versus alternatives. It neither mentions exclusions nor suggests conditions for use, leaving the agent to infer that it's for image generation. While the purpose is clear, there is no explicit usage context or comparison with siblings.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/luciferfran/nan-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server