Transform a simple idea into a professional image generation prompt. Use when the user provides a brief description (e.g., "a cat in a garden") and needs a detailed, high-quality prompt. Combine with gallery inspiration for best results. Free, no API key needed.
Search AI image prompts with semantic understanding — finds visually and conceptually similar results, not just keyword matches. Results include image URLs — render them as markdown images () so users can visually browse and pick styles. Use when users need inspiration, want to explore styles, or say "generate an image" without a specific idea.
List available AI image generation models and their capabilities. For up-to-date pricing, see https://www.meigen.ai/model-comparison.
Get the full prompt and all image URLs for a gallery entry. Show the images to the user as visual examples. The prompt can be used directly with generate_image(), and image URLs can be passed as referenceImages for style transfer.
Check a MeiGen generation by ID — the follow-up for interrupted generate_image / generate_video polling (the error message includes the Generation ID). Returns result URLs when done. The server keeps jobs alive well beyond a single tool call; if still processing, retry later instead of re-submitting (re-submitting costs credits again).
Read or update user preferences: default style, aspect ratio, model, style notes, and favorite prompts. Call with action "get" at conversation start to load preferences.
Manage ComfyUI workflow templates: list, view parameters, import from file, modify settings, or delete.
Generate an image using AI. Supports MeiGen platform, local ComfyUI, or OpenAI-compatible APIs. Tip: get prompts from get_inspiration() or enhance_prompt(), and use gallery image URLs as referenceImages for style guidance. For Midjourney V8.1, an optional style reference can be passed by appending `--sref <code>` at the end of the prompt — only when the user provides a Midjourney style code (numeric or text). Do NOT pass URLs or local paths via --sref; for any image-based reference, use the referenceImages parameter instead.
Generate a video using a required MeiGen model ID. Model lineup, tiers, resolutions, output-duration enum/range and reference-video range are live capabilities served by list_models; do not rely on snapshots. The server validates and prices every combination before dispatch. Video generation is slow and costs credits — confirm before submitting and never run videos in parallel.