
Muapi Platform
- 958 installs
- 4k repo stars
- Updated August 4, 2026
- samuraigpt/generative-media-skills
muapi-platform is an integration skill that teaches developers to poll and retrieve long-running generative media and prediction job results from muapi.ai using bundled shell scripts.
About
muapi-platform is an integration skill for developers calling muapi.ai asynchronous generative media and prediction APIs who need reliable result polling from shell or agent workflows. The bundled check-result.sh script accepts a REQUEST_ID and supports --once for single checks, --timeout with a default of 600 seconds, --json for machine-readable output, and --jq for filtering response fields with jq expressions. Reach for muapi-platform when your pipeline submits muapi.ai jobs and must wait for completion, surface failures, or pipe structured JSON into downstream automation without writing custom retry loops. The skill fits agent tooling that generates images, video, or model predictions where latency spans minutes and idempotent polling is required. It assumes bash, curl-style API access, and optional jq for parsing—focused narrowly on result retrieval rather than job submission, media editing, or webhook-based completion callbacks.
- CLI for checking and waiting on muapi.ai prediction results with --id, --once, --timeout, --json and --jq options
- Automated polling with wait command that exits on completion or timeout
- Platform setup commands for adding API keys, showing config, and testing authentication
- Supports both one-shot result fetch and continuous polling modes
- JSON output and jq filtering for easy integration into agent workflows
Muapi Platform by the numbers
- 958 all-time installs (skills.sh)
- +42 installs in the week ending Aug 5, 2026 (Skillselion tracking)
- Ranked #252 of 1,335 Generative Media skills by installs in the Skillselion catalog
- Security screen: HIGH risk (skills.sh audit)
- Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/samuraigpt/generative-media-skills --skill muapi-platformAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 958 |
|---|---|
| repo stars | ★ 4k |
| Security audit | 2 / 3 scanners passed |
| Last updated | August 4, 2026 |
| Repository | samuraigpt/generative-media-skills ↗ |
How do you poll muapi.ai for async prediction results?
Reliably poll and retrieve results from long-running generative media and prediction jobs via the muapi.ai platform.
Who is it for?
Developers integrating muapi.ai async generative jobs who need bash polling with configurable timeout and JSON output.
Skip if: Synchronous REST calls, non-muapi generative APIs, or workflows that do not require long-running job polling.
When should I use this skill?
The user polls muapi.ai predictions, waits on generative media jobs, or needs check-result.sh timeout and jq parsing options.
What you get
Completed prediction JSON, timed polling logs, and jq-filtered result payloads from muapi.ai jobs.
- Prediction result JSON
- Polling script invocation
By the numbers
- check-result.sh default --timeout is 600 seconds
Files
⚙️ MuAPI Platform Utilities
Setup and polling utilities for the muapi.ai platform.
Configure your API key, verify connectivity, and poll for async generation results.
Available Scripts
| Script | Description |
|---|---|
setup.sh | Configure API key, show config, test key validity |
check-result.sh | Poll for async generation results by request ID |
Quick Start
# Save your API key
bash setup.sh --add-key "YOUR_MUAPI_KEY"
# Show current configuration
bash setup.sh --show-config
# Test API key validity
bash setup.sh --test
# Poll for a result (waits for completion)
bash check-result.sh --id "your-request-id"
# Check once without polling
bash check-result.sh --id "your-request-id" --onceRequirements
curl
#!/bin/bash
# muapi.ai Check Prediction Result
# Usage: ./check-result.sh --id REQUEST_ID [--once] [--timeout 600] [--json] [--jq EXPR]
set -e
REQUEST_ID=""
ONCE=false
TIMEOUT=600
JSON_ONLY=false
JQ_EXPR=""
while [[ $# -gt 0 ]]; do
case $1 in
--id) REQUEST_ID="$2"; shift 2 ;;
--once) ONCE=true; shift ;;
--timeout) TIMEOUT="$2"; shift 2 ;;
--json) JSON_ONLY=true; shift ;;
--jq) JQ_EXPR="$2"; shift 2 ;;
--help|-h)
echo "Usage: ./check-result.sh --id REQUEST_ID [--once] [--timeout N] [--json] [--jq EXPR]"
exit 0 ;;
*) shift ;;
esac
done
if [ -z "$REQUEST_ID" ]; then echo "Error: --id is required" >&2; exit 1; fi
ARGS=()
[ "$JSON_ONLY" = true ] && ARGS+=(--output-json)
[ -n "$JQ_EXPR" ] && ARGS+=(--jq "$JQ_EXPR")
if [ "$ONCE" = true ]; then
muapi predict result "$REQUEST_ID" "${ARGS[@]}"
else
muapi predict wait "$REQUEST_ID" --timeout "$TIMEOUT" "${ARGS[@]}"
fi
#!/bin/bash
# muapi.ai Platform Setup
# Usage: ./setup.sh --add-key [KEY] | --show-config | --test
set -e
case "${1:-}" in
--add-key)
if [ -n "${2:-}" ]; then
MUAPI_API_KEY="$2" muapi auth configure --api-key "$2"
else
muapi auth configure
fi ;;
--show-config)
muapi auth whoami ;;
--test)
muapi auth whoami > /dev/null && echo "API key is valid!" ;;
--help|-h)
echo "muapi.ai Platform Setup"
echo ""
echo "Usage:"
echo " ./setup.sh --add-key [KEY] Save API key"
echo " ./setup.sh --show-config Show current configuration"
echo " ./setup.sh --test Test API key validity" ;;
*)
echo "Usage: ./setup.sh --add-key [KEY] | --show-config | --test" ;;
esac
Related skills
How it compares
Pick muapi-platform over hand-rolled curl loops when muapi.ai jobs need standardized bash polling with json and jq filtering.
FAQ
What is the default timeout in muapi-platform check-result.sh?
muapi-platform's check-result.sh defaults to a 600-second --timeout when polling muapi.ai prediction jobs, overridable per invocation for longer generative media runs.
How does muapi-platform return structured results?
muapi-platform documents check-result.sh --json for raw prediction payloads and --jq EXPR to filter fields for agent or CI pipelines consuming muapi.ai responses.
When should developers use --once in muapi-platform?
Use check-result.sh --once for a single status check without looping; omit --once when muapi-platform should wait until the muapi.ai job completes or hits --timeout.
Is Muapi Platform safe to install?
skills.sh reports 2 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.