muapi-media
Skill này làm gì
Agent này tạo ảnh và video bằng MuAPI. Nó chọn mô hình phù hợp cho bạn, xử lý khóa API một cách an toàn và tải kết quả về.
Khi nào nên dùng
- ✓Khi bạn yêu cầu rõ ràng tạo ảnh hoặc video bằng MuAPI.
- ✓Khi bạn đang dùng một quy trình media và cần tích hợp MuAPI.
- ✓Khi bạn muốn so sánh hoặc chuyển đổi giữa các mô hình tạo media mà không đổi quy trình.
Liên kết skill
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/muapi-media/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Tạo ảnh một con mèo đội mũ dự tiệc bằng MuAPI.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Đầu tiên, agent kiểm tra các mô hình ảnh/video có sẵn trong MuAPI. Sau đó, nó lấy hướng dẫn cụ thể cho mô hình được chọn và gửi yêu cầu của bạn. Cuối cùng, nó chờ đến khi ảnh hoặc video sẵn sàng để tải về.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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/"))
…
Câu hỏi thường gặp
Việc này có tốn phí không?
Tạo media có thể là dịch vụ tính phí. Bạn nên xác nhận giá trước khi thực hiện yêu cầu tạo.
MuAPI biết dùng mô hình nào bằng cách nào?
MuAPI duy trì một danh mục các mô hình. Agent này tham khảo danh mục đó để tìm mô hình phù hợp nhất với yêu cầu của bạn.
Khóa API được lưu ở đâu?
Khóa API được cấu hình trong môi trường hệ thống và không bao giờ được chia sẻ trực tiếp với bạn hay lưu ở nơi có thể nhìn thấy.
Chi tiết
Mô tả gốc của tác giả
Generate images and videos with MuAPI's schema-driven asynchronous media API while protecting keys, polling, and output downloads.
Độ phổ biến
- Sao GitHub
- 48k
- Vị trí xếp hạng
- #5254
- Giấy phép
- MIT
- Cập nhật
- 15/10/2026
Bình luận
- …
Thêm skill từ kho mã này
00-andruia-consultant
48kGiúp agent của bạn bắt đầu hoặc cải thiện các dự án AI. Phân tích mã, gợi ý công cụ và lập kế hoạch hành động bằng tiếng Tây Ban Nha.
007
48kCho phép agent của bạn thực hiện kiểm toán bảo mật và mô hình hóa mối đe dọa. Hữu ích để bảo vệ dự án khỏi các cuộc tấn công và lỗ hổng.
10-andruia-skill-smith
48kGiúp agent của bạn tạo hoặc cải thiện các công cụ AI. Xác định cách công cụ hoạt động, viết tài liệu và kiểm tra cấu trúc.
20-andruia-niche-intelligence
48kGiúp agent của bạn tạo bản tóm tắt về một ngành cụ thể. Hữu ích để hiểu bối cảnh, quy tắc, cách người dùng tương tác và rủi ro của dự án.
Skill tương tự
add-model-provider
394kGiúp agent của bạn kết nối nhà cung cấp mô hình AI mới với OpenClaw bằng lệnh an toàn, giữ API key khỏi văn bản thuần và chạy thử.
acp-router
394kGiúp agent của bạn gửi một tác vụ đến trợ lý lập trình như Claude Code hoặc Cursor qua OpenClaw, để công việc chạy ngay trong công cụ đó.
browser-automation
394kHướng dẫn agent của bạn điều khiển trang web từng bước, gồm đăng nhập, tab và cách khôi phục khi trang ngừng phản hồi.