Account login
For clients supporting Streamable HTTP and OAuth, add the server URL above, choose Connect / Authenticate, then sign in to MeiGen in your browser and approve the requested permissions. No API key or shared client secret is needed. Clients identify themselves through public client metadata (CIMD) or dynamic registration (DCR). This flow supports public-client authentication (none) with S256 PKCE.
Check the app name, client identifier and return address on the consent page. Self-registered names are not verified by MeiGen. Authorization lasts up to 30 days and can be revoked in Connected apps. Paid calls use purchased credits only, never daily free credits or Web free attempts.
Codex
bearer_token_env_var when switching that entry to OAuth. Keep other servers. See the official Codex guide.
Claude
/mcp. See the official Claude guide. No preconfigured MeiGen client ID is required for automatic registration.
OpenClaw
Install MeiGen from ClawHub using a current OpenClaw release with native HTTP MCP and OAuth (validated with 2026.9.9):mcp.servers.meigen entry even when the plugin supplies the server; the saved entry overrides the bundle default without duplicating tools. If meigen exists, add refuses to overwrite it. Reuse a matching OAuth connection; do not blindly run mcp set.
Run openclaw mcp doctor meigen --probe, then ask MeiGen to list the available Skills and their prices.
ClawHub plugin 4.0 changes the default from local npm/stdio to remote OAuth. Back up your existing configuration before updating. Saved local, wrapper or BYOK entries are not migrated and still override the default. Choose whether to retain local capabilities or deliberately replace the active entry with OAuth; preserve old credentials privately and keep one active MeiGen connection. Remote MCP cannot directly read local files and does not offer local preferences, prompt enhancement or BYOK. Legacy compatibility.
Cursor and other HTTP clients
Add the URL using your client’s Streamable HTTP connection form, then choose Connect / Authenticate. For clients usingmcpServers JSON, the minimal entry is:
"type": "http". New users need an OAuth-capable host; local npm is retained for existing legacy/BYOK integrations.
ChatGPT custom connections
If your account/workspace offers Developer mode and custom MCP connections, add the URL above with OAuth and use automatic registration when offered. Complete the MeiGen account consent flow. Follow OpenAI’s current setup. Do not put a MeiGen API key in the OAuth client-secret field. This manual connection is separate from the official ChatGPT plugin, which provides result cards in your conversation. Availability depends on your plan and workspace. With No Authentication, only public tools work; uploads, generation, requestId recovery and private Skill results require authorization. The manual CLI and plugin use different configuration flows; a chat instruction cannot install npm inside ChatGPT web.Moving an existing local connection to OAuth
To switch an existing API-key connection to OAuth, remove its fixed Authorization header, then sign in through the client. If you need BYOK or local files, see local setup.Tools
Use the tool list in your connected client to check availability. If tools are missing, refresh the list and check the permissions you granted.Private library
search_favorites, list_boards, search_history, get_library_item and save_favorite require OAuth. Approve meigen:library:read to read your library and meigen:library:write to save favorites; existing connections need consent for these additional permissions. Local npm and all API keys are excluded. The official ChatGPT plugin supports these tools too; their display depends on refreshed host discovery and permission consent.
Lists return promptExcerpt (at most 500 Unicode code points), promptLength and promptTruncated. get_library_item takes the original contentType / sourceId, promptOffset (default 0) and promptLimit (default 8000, maximum 16000). All offsets and lengths count Unicode code points. prompt.length is the total safe prompt length; nextOffset=null marks the final page. Detailed data is returned once in structuredContent. Saving requires explicit intent, preserves existing notes and never publishes content; favorites_limit_reached means the account’s favorite entitlement is full, not a generation-credit shortage.
Balance and saved characters
get_credit_balance returns the purchased balance available to this integration, excluding daily free credits. list_characters requires separate meigen:characters:read consent. Select an existing character, use its exact referenceToken in the prompt, and check the chosen model’s capabilities.characters first. Existing grants do not gain this permission automatically. Creating characters is not supported; API keys and local npm cannot read or use private characters.
First successful check
Reconnect, then ask: “List MeiGen’s available Skills and current prices.” Verify that an actual tool call succeeds; registration alone is not connection proof. It does not generate or spend credits. Then supply the required material and request one of the five workflows. Skills return after submission and usecheck_skill; generic generation recovery uses check_generation.
Gallery search
Remote MCP returns up to 3 results per page and allows anonymous search with rate limits. The ChatGPT plugin returns up to 6 and requires themeigen:search permission. A new authorized search uses the account’s daily search allowance. To continue without using another search, keep query, limit and snapshotId, and pass nextOffset as offset. Stop when hasMore is false. If the snapshot expires, start a new search.
Midjourney controls
UsemodelId: "midjourney-v8.1" for Midjourney V8.2. Set referenceType to content or style, and place Midjourney quality and style settings in niji7Options. For the ChatGPT plugin, upload external reference and style images with upload_skill_image and use the returned URL. Standard remote MCP accepts public HTTPS style URLs. Local npm requires 3.3.3 or later for advanced controls and accepts file paths only in referenceImages. See generation parameters.
GPT Image 2.5 options
Whenlist_models includes gpt-image-2.5, generate_image accepts all five quality levels and modelVariant: "sunburst" (quality priority, default) or "flare" (speed priority). The two variants have the same credit price. Example tool arguments:
referenceImages for editing or visual guidance. The UUID shown is illustrative: allocate and persist your own requestId once per logical attempt, then reuse it only with the exact inputs for recovery. wait: false returns after submission. Use check_generation with requestId or generationId after an interruption. Legacy attemptId remains accepted; new integrations should use requestId. See model pricing for the full matrix.
Reference video and audio
Useupload_reference_media with kind: "video" or "audio", the selected modelId, optional tier, and a direct HTTPS sourceUrl. With the user’s permission, import the selected material and pass its returned url to referenceVideos / referenceAudios. Remote tools cannot read local paths; host attachments need an accessible download URL (the official ChatGPT plugin accepts its attachment shape directly). Existing local npm can also prepare local files. An arbitrary external URL passed straight to generation is rejected before charging.
Preparing a reference is free and requires a positive purchased-credit balance. Check the model’s file size, format and duration limits. The returned link is public and expires seven days after upload; keep the original file.
Use firstFrame / lastFrame for endpoint frames and contentReferenceImages for content/style/identity. Pass an empty content array for endpoint-only requests. Check capabilities.videoInputs, including tier overrides, for supported roles, counts and mutual exclusions. A last frame requires a first frame; saved characters use content slots and cannot be mixed with strict endpoint frames.
capabilities.videoInputs.referenceMentionSyntax for the model’s binding syntax; numbering is 1-based within each media kind. Use pricingMode and capabilities.video.billing for the quote: input-video seconds are added only when the model declares that billing mode. output_only bills only output. Audio seconds are not charged, but audio/content images can select a reference rate. 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’s text and content-reference rates are equal for each resolution; reference video bills output seconds plus each input video’s rounded-up seconds. Preserve the original requestId and exact references during recovery.
Image Formats and Editing
Refresh the tool list after connecting. Usegenerate_image for GIF/SVG, not generate_video. Select the matching model from list_models and read its imageOutput and prices. For an existing local integration, update to npm 3.4.0; these options apply to the MeiGen provider, not BYOK.
aspectRatio and resolution, since GIF dimensions come from frameSize. Optional image guides belong in referenceImages; saved characters on remote OAuth share the live guide limit (currently two). Local npm accepts ordinary reference file paths, but saved characters require the remote connection.
For SVG, select gpt-image-2.6-svg, set outputFormat: "svg", omit gifOptions, and choose a supported aspectRatio or auto. The result’s vectorOutput.url is the SVG original; imageUrl / urls contain the PNG preview. GIF URLs retain animation. Local downloads save the requested artifact.
For transparent stills, select gpt-image-2.6, outputFormat: "png" or "webp", and imageBackground: "transparent". imageComplexity is available when advertised and currently adds no credits. Annotated still edits use either imageMask or imageMarkup, with the exact original as referenceImages[0]; use public HTTPS source/annotation URLs, not local annotated source files or saved characters. See limits and examples.
To continue editing an existing GIF/SVG, use the MeiGen editor. Keep the original request ID when checking or recovering a task. A failed generation’s creditsStatus reports settlement; do not automatically start a paid replacement.