Skip to main content
Glama

ai_image_generator_create_image

Create an AI image with advanced model selection and quality controls.

MCP guidance:

  • This starts an async image generation job and returns id plus credits_charged immediately. If the user wants the finished result, call the wait_for_image_project helper with the returned id, or poll the matching GET /v1/image-projects/{id} endpoint until status is complete, error, or canceled. Completed projects include downloads with direct URLs. The custom wait helper also returns exact_download_urls separately from expiration metadata.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNoGive your image a custom name for easy identification.Ai Image - dateTime
modelNoThe AI model to use for image generation. Each model has different capabilities and costs. **Models:** - `default` - Use the model we recommend, which will change over time. This is recommended unless you need a specific model. This is the default behavior. - `flux-2-klein` - from 5 credits/image - Supported resolutions: 640px, 1k, 2k - Available for tiers: free, creator, pro, business - Image count allowed: 1 - `flux-schnell` - from 5 credits/image - Supported resolutions: 640px, 1k, 2k - Available for tiers: free, creator, pro, business - Image count allowed: 1, 2, 3, 4 - `gpt-image-2` - from 50 credits/image - Supported resolutions: 640px, 1k, 2k, 4k - Available for tiers: creator, pro, business - Image count allowed: 1, 2, 3, 4 - `nano-banana` - from 50 credits/image - Supported resolutions: 640px, 1k - Available for tiers: creator, pro, business - Image count allowed: 1, 2, 3, 4 - `nano-banana-2` - from 100 credits/image - Supported resolutions: 640px, 1k, 2k, 4k - Available for tiers: creator, pro, business - Image count allowed: 1, 4, 9, 16 - `nano-banana-2-lite` - from 50 credits/image - Supported resolutions: 640px, 1k - Available for tiers: creator, pro, business - Image count allowed: 1, 2, 3, 4 - `nano-banana-pro` - from 150 credits/image - Supported resolutions: 1k, 2k, 4k - Available for tiers: creator, pro, business - Image count allowed: 1, 4, 9, 16 - `seedream-v4` - from 40 credits/image - Supported resolutions: 640px, 1k, 2k, 4k - Available for tiers: creator, pro, business - Image count allowed: 1, 2, 3, 4 - `seedream-v5-pro` - from 75 credits/image - Supported resolutions: 640px, 1k, 2k - Available for tiers: creator, pro, business - Image count allowed: 1, 2, 3, 4 - `z-image-turbo` - from 5 credits/image - Supported resolutions: 640px, 1k, 2k - Available for tiers: free, creator, pro, business - Image count allowed: 1, 2, 3, 4 **Deprecated Enum Values:** - `seedream` - Use `seedream-v4` instead.
styleYesThe art style to use for image generation.
resolutionNoMaximum resolution (longest edge) for the output image. **Options:** - `640px` — up to 640px - `1k` — up to 1024px - `2k` — up to 2048px - `4k` — up to 4096px - `auto` — **Deprecated.** Mapped server-side from your subscription tier to the best matching resolution the model supports **Per-model support:** - `flux-2-klein` - 640px, 1k, 2k - `flux-schnell` - 640px, 1k, 2k - `gpt-image-2` - 640px, 1k, 2k, 4k - `nano-banana` - 640px, 1k - `nano-banana-2` - 640px, 1k, 2k, 4k - `nano-banana-2-lite` - 640px, 1k - `nano-banana-pro` - 1k, 2k, 4k - `seedream-v4` - 640px, 1k, 2k, 4k - `seedream-v5-pro` - 640px, 1k, 2k - `z-image-turbo` - 640px, 1k, 2k Note: Resolution availability depends on the model and your subscription tier.auto
image_countYesNumber of images to generate. Maximum varies by model.
aspect_ratioNoThe aspect ratio of the output image(s). If not specified, defaults to `1:1` (square).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesUnique ID of the image. Use it with the [Get image Project API](https://docs.magichour.ai/api-reference/image-projects/get-image-details) to fetch status and downloads.
credits_chargedYesThe amount of credits deducted from your account to generate the image. We charge credits right when the request is made. If an error occurred while generating the image(s), credits will be refunded and this field will be updated to include the refund.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

With no annotations provided, the description carries the full burden, and it delivers: it discloses the async job behavior, immediate return of id and credits_charged, how to obtain the finished result via the wait helper or polling until complete/error/canceled status, and that completed projects include downloads with direct URLs. It even notes the exact_download_urls distinction. This is thorough, accurate behavioral disclosure.

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 purpose statement is front-loaded in one concise sentence, followed by a well-organized MCP guidance block covering the async workflow. The guidance is earned content given the job-based nature of the tool. Minor inefficiency: it describes both the wait helper and the raw polling GET endpoint, where the wait helper alone would suffice for most agents.

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?

The output schema covers return values and the input schema covers all 6 parameters at 100% coverage, so the description only needs to convey the workflow — which it does completely. It tells the agent the job is async, what comes back immediately, how to wait for completion, the possible terminal statuses, and where download URLs live. Nothing essential is missing for correct invocation.

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 description coverage is 100%, so the baseline is 3. The description itself adds minimal parameter-level meaning beyond the schema, but the schema already documents each parameter richly (model enum with costs/resolutions/tiers, resolution per-model support, style tool enum). The description's mention of id and credits_charged adds return-context rather than parameter semantics. Baseline 3 is appropriate.

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 states a specific verb+resource ('Create an AI image') and adds 'advanced model selection and quality controls' which clearly distinguishes this general-purpose generator from the many specialized siblings (ai_clothes_changer, ai_face_editor, ai_headshot_generator, etc.). An agent can immediately tell this is the general/advanced tool rather than a niche one.

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 gives solid workflow guidance: it explicitly says this starts an async job, returns id plus credits_charged immediately, and tells the agent to call wait_for_image_project or poll the GET endpoint for completion. However, it does not explicitly state when to use this tool versus the many sibling image generators (when-not/alternatives routing is only implied by 'advanced model selection'). The async guidance is present but the sibling differentiation is absent.

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.

TDQS

A3.6/5.0
Disambiguation3/5

Most generation tools target distinct media types or effects (e.g., clothes changer, head swap, lip sync), but several boundaries blur: ai_image_editor_create_image is a generic edit tool that overlaps conceptually with ai_face_editor_edit_image, ai_image_upscaler_create_image, and background remover. The wait_for_*_project helpers also overlap functionally with the *_projects_retrieve_details status tools, and ai_voice_cloner_create_audio vs. ai_voice_generator_create_audio are easy to confuse by name.

Naming Consistency2/5

Naming conventions are mixed: many tools follow ai_<product>_create_<media>, but others are product-first (animation_create_video, body_swap_create_image) and resource-group tools follow a different noun_verb pattern (audio_projects_retrieve_details, video_projects_delete). Verbs are inconsistent too (create_image, edit_image, detect_faces, retrieve_details, wait_for, fetch), so an agent cannot reliably predict the next tool name.

Tool Count2/5

At 44 tools, the set is heavy: it includes 27 generation tools plus three wait helpers, three status retrieval tools, three delete tools, three fetch helpers, and upload/ping utilities. While the underlying product is broad, many helpers could be consolidated, and the overall surface exceeds the range where each tool earns a clear place.

Completeness3/5

The lifecycle is mostly covered for image, video, and audio projects: create, poll/retrieve, fetch download, delete, and file upload/presigned-URL generation are all present. However, there is no project listing or cancel operation, and face detection only has detect/details with no delete or wait helper, leaving some workflow gaps an agent must work around.