Skip to main content
Glama

generate_image

Create images from detailed text prompts using NVIDIA NIM FLUX models. Select from high-quality or fast generation to match your needs.

Instructions

Generate an image from a text prompt using NVIDIA NIM FLUX models. Returns the file path of the saved image. Use 'flux-1-dev' for high quality or 'flux-1-schnell' for speed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
seedNoRandom seed for reproducibility. Use 0 for random. Same seed + same prompt = same image.
modelNoModel to use. 'flux-1-dev' = high quality (30 steps), 'flux-1-schnell' = fast (4 steps).flux-1-dev
stepsNoNumber of inference steps. More steps = higher quality but slower. Default: 30 for flux-1-dev, 4 for flux-1-schnell.
promptYesText description of the image to generate. Be detailed and specific. Example: 'A futuristic cityscape at sunset with flying cars and neon lights, photorealistic, high detail, cinematic lighting'
cfg_scaleNoClassifier-free guidance scale (1-20). Higher = more faithful to prompt, lower = more creative. Default: 5.
negative_promptNoThings to exclude from the image. Example: 'blurry, low quality, watermark, text'
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 discloses the core behavior (generation, saving, and returning a file path), but omits details about where the file is saved, whether it overwrites existing files, or network/API dependencies (e.g., NIM service). This is adequate but leaves gaps for a tool with side effects.

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 two sentences long, front-loaded with the primary action and return value. It avoids redundancy and every sentence contributes useful information, making it highly concise and easy to parse.

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?

Given the full schema and no output schema, the description covers the essential context: what the tool does, what it returns, and model selection tradeoffs. It does not explain where the saved image is stored or how to access it, but the schema covers parameter semantics sufficiently, so the description is largely complete for an agent to invoke the tool.

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 already provides detailed descriptions for all six parameters (100% coverage), including examples and defaults. The description's mention of model quality duplicates the schema's 'model' parameter description, adding no new semantic meaning beyond what the schema already offers.

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 'Generate an image from a text prompt using NVIDIA NIM FLUX models', specifying a concrete action and resource. It also distinguishes the tool from siblings (list_models and edit_image) by focusing on creation rather than listing or modifying images.

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?

The description provides clear in-tool guidance on model selection ('Use 'flux-1-dev' for high quality or 'flux-1-schnell' for speed'), which helps agents choose the right model. However, it does not explicitly compare when to use generate_image versus the sibling tools (list_models, edit_image), so it lacks exclusions or alternative tool references.

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/Tech-86/NIMGEN'

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