计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
muapi-media【效率与协作】Discover current MuAPI image models and run one explicitly confirmed asynchronous image generation request with bounded polling. Use when an agent needs hosted image generation without hard-coding stale model endpoints or request IDs.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use the bundled scripts/muapi_media.py CLI to discover current MuAPI image models and submit
one explicitly confirmed image-generation request. The CLI uses the live catalog's name,
category, and already-versioned endpoint fields, then polls the standard prediction result
endpoint. It does not assume that the catalog contains an inline request schema; add model-specific
fields only from the current model contract.
This skill covers text-to-image and image-to-image workflows. Do not use it for MuAPI video, audio, 3D, chat, or model-training requests.
Set the API key in the environment. Never pass it as a CLI argument or commit it:
export MUAPI_API_KEY="your-api-key"
MUAPI_BASE_URL is optional and defaults to https://api.muapi.ai. Use it only for an approved
compatible deployment.
python3 scripts/muapi_media.py models --category image --query flux
The public catalog currently returns a top-level models array. Image-generation entries use
categories such as Text to Image and Image to Image; their endpoint values already include
the /api/v1/ prefix. Choose an exact model from this output immediately before generation.
{
"prompt": "A clean product photograph on a neutral background",
"aspect_ratio": "1:1"
}
Keep only fields supported by the selected model's current request contract. The catalog is a model directory, not a guarantee that every model accepts the same parameters. A prompt is required for this skill.
python3 scripts/muapi_media.py generate \
flux-dev \
--params-file request.json \
--confirm-paid
--confirm-paid is mandatory. The CLI sends exactly one generation POST, never retries an
ambiguous POST, and polls only GET requests with a finite budget. The model argument may be the
catalog model name or its exact /api/v1/... endpoint path.
Use --output to download the first completed artifact without sending the API key to the output
host:
python3 scripts/muapi_media.py generate \
flux-dev \
--params-file request.json \
--confirm-paid \
--output ./muapi-output.png
MUAPI_API_KEY server-side and out of logs, prompts, screenshots, and committed files.--max-polls./api/v1/ to an endpoint that already has it.Commands write structured JSON to stdout. A successful generation includes the selected model, request ID, terminal status, output URLs, and—when requested—the local artifact path.