opencode
Skill
muapi-platform
Setup and utility scripts for muapi.ai — configure API keys, test connectivity, and poll for async generation results
Virus-scanned
Reviewed automatically before listing.
Download
samuraigpt-generative-media-skills-core_platform-74df8cb.zip · 1 KB
Install
skills CLI
npx skills add https://github.com/SamurAIGPT/Generative-Media-Skills/tree/main/core/platform
Claude Code
claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install samuraigpt-generative-media-skills@llmmart
Git
git clone https://github.com/SamurAIGPT/Generative-Media-Skills.git
The skills CLI installs just this skill, for any of its supported agents. Claude Code installs the whole samuraigpt/generative-media-skills collection as a plugin from our marketplace. Git is the plain clone.
Skill manifest
⚙️ 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" --once
Requirements
curl
Files (generative-media-skills)
-
check-result.sh 1004 B
#!/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 -
setup.sh 819 B
#!/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 -
SKILL.md 950 B
--- name: muapi-platform version: 0.1.0 description: Setup and utility scripts for muapi.ai — configure API keys, test connectivity, and poll for async generation results --- # ⚙️ 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 ```bash # 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" --once ``` ## Requirements - `curl`
Comments (0)
Sign in to join the conversation.
Reviews (0)
No reviews yet.
No comments yet.