ChatGPT
- Open MeiGen in the official ChatGPT store and select Install.
- Sign in to your MeiGen account and complete the connection. No API key or Node.js is needed.
- Select or mention MeiGen in a conversation, then ask it to find inspiration or create an image or video.
GitHub Repository
View source code, report issues, and contribute.
Compose inside another workflow
Keep the upstream script, prompt, model/provider, count and approved budget. Creative helpers are optional. Use persistent UUIDrequestId, wait: false, structured results and check_generation to submit frames/videos and resume them without re-approving every step. The caller owns bounded scheduling, previews and downloads. See the complete workflow contract and examples.
What is MCP?
Model Context Protocol (MCP) is an open standard that allows AI assistants to use external tools. When you install MeiGen as an MCP server, your AI assistant gains the ability to generate images and videos, run semantic search across the MeiGen community prompt gallery, and enhance prompts — all through natural language. Standard remote MCP and local npm support anonymous public search; the official ChatGPT plugin requires account authorization for search. Prompt enhancement is local. In 3.0.0, inspiration search uses the online gallery only, without an offline fallback; unavailable services return an error.Five dedicated image workflows
Ask for a cutout, product detail images, a marketing poster, a new background or image enhancement. The agent should inspectlist_skills, prepare the actual materials, submit the matching tool and use check_skill for results. It generates request UUIDs itself. A specified count/quality is already your instruction; only unresolved scope or an Upscale warning needs a decision.
Skills use purchased credits only, with no free attempts or daily credits. BYOK do not supply these workflows. See the complete Skills API and material guide.
For posters, put visible copy in
content; use extraNotes or customStyle for design directions. autoCopy: false preserves supplied wording, with selected-language translation still possible. See poster field roles and a complete MCP call.
Choose a connection
ChatGPT users should install the official plugin. Other new users should connect with remote OAuth athttps://www.meigen.ai/api/mcp, then sign in to MeiGen and approve access in the host. No API key or Node.js is needed. Use a compatible host if OAuth is unavailable.
Local npm retains existing API-key compatibility for generation, public search and Skills, BYOK, local file preparation, prompt enhancement and local preferences. It has no OAuth login or private-library tools. API keys are not offered as another new-user authentication method. OpenClaw users can install the ClawHub plugin and connect with OAuth. Existing local Claude/OpenClaw connections remain a separate compatibility path; avoid duplicate tools when switching.
The 3.0.0 local image providers are MeiGen (existing legacy key) and OpenAI-compatible APIs, in that priority order. ComfyUI is removed. Skills and video remain MeiGen Cloud features; use list_models and list_skills for current models and prices.
Tools
These 16 shared tools include reference-media preparation. Local npm 3.3.0 has 18 tools, including two local helpers. Standard remote MCP and the official ChatGPT adapter each expose 23 tools, adding credit balance, saved characters and the five private-library tools. Refresh cached tool discovery after an update; access still depends on the host and the permissions you approve.
Local additionally provides
enhance_prompt and manage_preferences without a MeiGen account. Version 3.0.0 removes comfyui_workflow and offline prompt fallback.
Authorized searches use the account’s daily search allowance, not generation credits. Starting a search uses that allowance; continuation pages do not count again. Standard remote MCP and local 3.0.0 support pagination; the official ChatGPT adapter also offers a next-batch card when the host loads its current tools. To see another batch, preserve the returned query and snapshot ID and pass
nextOffset as offset; stop when hasMore is false. A different direction starts a new query. Keep original generation request IDs during recovery; a timeout is not permission for a new paid task.
Midjourney controls
generate_image supports these controls on standard remote MCP, the official ChatGPT plugin, and local npm 3.3.0 or later with the MeiGen provider. Refresh hosted tools or update the local package pin and restart. Use model ID midjourney-v8.1 for Midjourney V8.2; the stable ID has not changed.
For example, these are ordinary
generate_image tool arguments; submitting them is a paid action, not a connection check. Replace the sample requestId with a new persisted UUID for each newly authorized job:
niji7Options; top-level quality is a separate image-model setting. Prefer structured options over prompt flags. sref accepts numeric codes, random, or image URLs; profile accepts alphanumeric codes separated by spaces or commas. The official ChatGPT plugin requires direct images.meigen.ai asset URLs for reference images and image-valued sref; upload external images first. Standard remote MCP and local npm accept public HTTPS sref image URLs. Local file paths belong in local npm referenceImages, never sref.
Remote saved characters require the existing character-read permission and exact referenceToken from list_characters; check capabilities.characters and reference limits before combining inputs. Prompt translation and long-prompt compression continue in the backend. During recovery, keep the original requestId, reference role, and all option values unchanged. See the full parameter reference.
Private library through remote OAuth
Standard remote MCP providessearch_favorites, list_boards, search_history, get_library_item and save_favorite. Connect with OAuth and approve the separate library read/write permissions when requested; existing connections do not gain them automatically. Local npm and API keys cannot access these tools. The official ChatGPT adapter provides the same library functions; reconnect or refresh its tools if they are missing.
Lists contain prompt excerpts of at most 500 Unicode code points. Use get_library_item for a selected user prompt in pages of 8000 code points by default, up to 16000; internal Skill prompts are never returned. Saving requires an explicit request or prior opt-in, preserves existing notes on repeat calls and only supports owned private board destinations. Favorites are context for preferences, not a replacement for current instructions.
Video capabilities differ by model — quality tiers, available durations and resolutions, audio, reference-video continuation, and whether a first frame is required. Some models are image-to-video only. Call
list_models for the current lineup, or see the model comparison.Seedance 2.5 uses model ID seedance-2-5, supports 4–30 second 480p/720p/1080p output and reference-video continuation, and has no tier option.generate_video requires an explicit model. Use firstFrame / lastFrame for endpoint frames and contentReferenceImages for content, identity or style. Pass contentReferenceImages: [] for endpoint-only requests. Follow list_models.capabilities.videoInputs and its tier overrides; do not mix first/last frames with content references or saved characters when the model forbids it.Use upload_skill_image for images and upload_reference_media for selected direct HTTPS video/audio URLs, then pass the returned MeiGen URL to referenceVideos / referenceAudios. The official plugin also supports accessible host attachments. Remote tools cannot open local paths; existing local npm integrations can still prepare local files. Preparation needs a positive purchased balance but does not deduct credits. Prepared video/audio links are public and temporary, with cleanup scheduled seven days after upload; reuse within that period and do not use this as permanent hosting.Use the live pricingMode and capabilities.video.billing to quote a job. Some models bill input-video plus output seconds; output_only bills only output. Audio seconds are not added, but audio or content images can select a different reference rate on models that advertise it. HeyGen is available; reference-video availability follows the live catalog. Honor capabilities.video.referenceAudio.canCombineWithVideo: when false, do not combine separate audio with video. Embedded audio is allowed. HeyGen bills output seconds plus each reference video’s rounded-up seconds at the reference rate.Balance and saved characters
Remote OAuth providesget_credit_balance for purchased credits available to MCP; daily free credits are excluded. list_characters reads existing saved characters with separate meigen:characters:read consent. Use the exact returned referenceToken in a supported model’s prompt, check capabilities.characters, and use the model’s referenceMentionSyntax for uploaded media. Character creation is not supported. Local npm and API keys cannot read or use private saved characters.
GPT Image 2.5
Calllist_models first to check availability. Local npm 3.0.0 supports model: "gpt-image-2.5" or its modelId alias, quality (low, medium, high, xhigh, max) and modelVariant: "sunburst" (default) or "flare". If both model and modelId are supplied, they must match. The remote MCP server and REST API use modelId with modelVariant. GPT Image 2 remains a separate model with its original pricing.
Next steps
- Remote OAuth setup for Claude, Cursor and compatible clients.
- Legacy local setup and BYOK for existing integrations.
- 3.0.0 migration notes for the ComfyUI/offline-library removal.