muapi-media
できること
このエージェントは、MuAPIを使って画像や動画を作成します。あなたに最適なモデルを選び、APIキーを安全に扱い、出力結果をダウンロードします。
使う場面
- ✓MuAPIを使って画像や動画を作成するよう明示的に依頼したとき。
- ✓すでにメディア作成のワークフローを使っていて、MuAPIを組み込む必要があるとき。
- ✓ワークフローを変えずに、メディア生成モデルを比較したり切り替えたりしたいとき。
スキルのリンク
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/muapi-media/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“MuAPIを使って、パーティーハットをかぶった猫の画像を作成してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
まず、MuAPIで利用できる画像・動画モデルを確認します。次に、選んだモデルの具体的な手順を取得し、あなたのリクエストを送信します。最後に、画像や動画の準備ができるまで状態を繰り返し確認し、ダウンロードできるようにします。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
MuAPI Media
Overview
Use MuAPI's unified asynchronous API for image and video generation when a workflow needs model choice without a separate integration for every provider. The catalog and each model's input schema are authoritative; this skill does not guess fields, bundle an SDK, or hide a billable generation request. For a capability overview, see the MuAPI AI video API.
When to Use This Skill
- Use when the user explicitly asks to generate an image or video with MuAPI.
- Use when an existing media workflow needs a hosted asynchronous API and can send an authorized HTTPS request.
- Use when the user needs to compare or switch among current media models without changing the surrounding submit-and-poll workflow.
- Do not use this skill for text chat or for a provider whose current schema has not been fetched and checked.
Preconditions
- Confirm that the user is authorized to send the prompt and any reference media to a third-party service.
- Explain that generation may be billable and obtain approval immediately before the generation request.
- Require
MUAPI_API_KEYin the environment. Never ask the user to paste it into chat, source files, command history, or logs. - Confirm the requested media type, output location, and whether the user wants a single generation or an explicitly approved batch.
API Contract
| Operation | Method and endpoint |
|---|---|
| List current models | GET https://api.muapi.ai/api/v1/models |
| Read one model's schema | GET https://api.muapi.ai/api/v1/models/{model} |
| Submit a generation | POST https://api.muapi.ai/{catalog endpoint} |
| Poll a prediction | GET https://api.muapi.ai/api/v1/predictions/{request_id}/result |
Generation and prediction requests use:
x-api-key: $MUAPI_API_KEY
Content-Type: application/json
The catalog returns a model name, category, endpoint, and other metadata. The
endpoint value already includes /api/v1/; append it to https://api.muapi.ai
without adding a second version prefix. Model input and output fields vary, so
read the selected model's schema immediately before preparing a request.
How It Works
1. Discover and validate a model
Use a temporary directory for response files and keep credentials out of every file. The catalog lookup is read-only:
workdir=$(mktemp -d "${TMPDIR:-/tmp}/muapi-media.XXXXXX")
curl --fail --silent --show-error \
--header "Accept: application/json" \
"https://api.muapi.ai/api/v1/models" \
--output "$workdir/models.json"
jq -r '
.models[]
| select(((.category // "") | ascii_downcase | test("image|video|audio|3d")))
| [.name, .category, .endpoint]
| @tsv
' "$workdir/models.json"
Select a model from the current catalog, then fetch its detailed schema. Do not copy a payload from a different model just because the names look similar:
export MUAPI_MODEL="<model name from the catalog>"
curl --fail --silent --show-error \
--header "Accept: application/json" \
"https://api.muapi.ai/api/v1/models/${MUAPI_MODEL}" \
--output "$workdir/model.json"
jq '.input_schema.schemas.input_data' "$workdir/model.json"
Check required fields, types, enum values, size limits, and the output schema. If the model requires an image or video input, use the exact documented field and an authorized HTTPS input URL; do not invent an upload contract.
2. Prepare one reviewed request
Set the key only in the environment and stop before submission if it is absent:
test -n "${MUAPI_API_KEY:-}" || {
echo "Set MUAPI_API_KEY before generation." >&2
exit 1
}
export MUAPI_PROMPT="A small paper boat crossing a calm pond at sunrise, steady camera"
# Add only fields confirmed by model.json. This example uses a prompt field;
# many models also require duration, resolution, aspect ratio, or an input URL.
jq -n \
--arg prompt "$MUAPI_PROMPT" \
'{prompt: $prompt}' \
> "$workdir/request.json"
Review the model, requested parameters, destination, and estimated cost with
the user. Do not put MUAPI_API_KEY in request.json.
3. Submit exactly once
Resolve the catalog endpoint and make one POST. Do not automatically retry a generation POST after a timeout: the original task may have been accepted.
model_endpoint=$(jq -er --arg name "$MUAPI_MODEL" '
.models[]
| select(.name == $name)
| .endpoint
| select(type == "string" and startswith("/api/v1/"))
…
よくある質問
これを使うには費用がかかりますか?
メディア生成は有料のサービスになる場合があります。生成を依頼する前に、料金を必ず確認することが大切です。
MuAPIはどのモデルを使えばよいか、どうやって判断するのですか?
MuAPIはモデルのカタログを管理しています。このエージェントはそのカタログを参照して、あなたの依頼に最も合ったモデルを探します。
APIキーはどこに保存されますか?
APIキーはシステムの環境変数に設定され、あなたに直接共有されたり、目に見える場所に保存されたりすることはありません。
詳細
作者による元の説明
Generate images and videos with MuAPI's schema-driven asynchronous media API while protecting keys, polling, and output downloads.
人気
- GitHubのスター
- 48k
- ランキング
- #5254
- ライセンス
- MIT
- 更新日
- 2026/10/15
コメント
- …
このリポジトリの他のスキル
00-andruia-consultant
48kエージェントがAIプロジェクトの立ち上げや改善を支援します。コードを分析し、ツールを提案し、スペイン語で行動計画を作成します。
007
48kエージェントがセキュリティ監査と脅威モデリングを行えるようにします。攻撃や脆弱性からプロジェクトを守るのに役立ちます。
10-andruia-skill-smith
48kエージェントがAIツールの作成や改善を支援します。ツールの動作を定義し、ドキュメントを書き、構造を検証します。
20-andruia-niche-intelligence
48kエージェントが特定の業界に関する要約を作成できるようにします。信頼できる情報源を使って、プロジェクトの背景、ルール、利用パターン、リスクを把握するのに役立ちます。
似ているスキル
add-model-provider
394k安全なセットアップコマンドで新しいAIモデルプロバイダーをOpenClawに接続し、APIキーを平文で残さず、ライブテストを行うようエージェントを支援します。
acp-router
394kClaude CodeやCursorなどのコーディングアシスタントに、OpenClaw経由でタスクを渡し、その作業がそのツール内で行われるようエージェントを支援します。
browser-automation
394kログイン、タブ、応答しなくなったページからの復旧を含め、Webページを段階的に操作するようエージェントに教えます。