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.
Account and authentication
Create a MeiGen key using a desktop browser at API Keys. In the same account, choose Top Up on Profile, or use the mobile premium page. Configure the secret in the host’s private credentials/headers settings:Codex CLI, IDE extension and local Codex desktop host
~/.codex/config.toml entry, with Skill timeouts:
.env.local is not automatically loaded. To verify public lookups before setting a key, omit the token flag/TOML field. If a desktop launch cannot inherit the variable, use its private Authorization-header setting when supported, or privately configure http_headers.Authorization and remove bearer_token_env_var. Preserve other servers and keep secrets out of shared configuration. See the official Codex MCP guide.
Claude Code and other HTTP hosts
For Claude Code, use its private local terminal/connection settings:ChatGPT web: public lookups only
For an account/workspace with custom MCP access, enable Developer mode, create a custom remote app/plugin for the URL above, and choose No Authentication. Follow OpenAI’s current setup. ChatGPT’s hosted client cannot send custom API keys; MeiGen has not provided the OAuth integration needed for authenticated use there. You can use public tools, includinglist_skills, list_models, gallery lookups and check_generation for a known generation ID. Generation, upload, requestId recovery and check_skill require a key and are unavailable through this ChatGPT web connection. Codex has a different configuration flow above. A chat instruction cannot install npm inside ChatGPT web.
Tools
The remote server exposes 14 tools: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.
Remote tools cannot read a local filesystem path. Use a public image URL or upload_skill_image with actual accessible bytes. For Upscale, pass the original URL directly or upload with purpose: "upscale"; do not downsize it as an ordinary reference first.
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.
Remote and local
Existing keys and the endpoint remain usable across server updates. Switching from local to remote is optional; local-only capabilities do not migrate. See local setup and upgrade notes.
upload_skill_image requires a positive purchased-credit balance and does not charge for generation. For Upscale attachments set purpose: "upscale". Every upscale_image MCP call, including the first, requires confirmedCredits from the current list_skills quote within the accepted user or upstream workflow budget; reuse explicit acceptance.