muapi-platform
Setup and utility scripts for muapi.ai — configure API keys, test connectivity, and poll for async generation results
By samuraigpt · 1,051 installs
npx skills add samuraigpt/generative-media-skills --skill muapi-platform
Source repository · Upstream listing
muapi.ai Platform
Platform utilities for API key management, file upload, and prediction status checking.
Scripts
Script Purpose
setup.sh Configure MUAPI KEY and show current config
check result.sh Poll a prediction by request ID until complete
Setup
Configure API Key
This saves MUAPI KEY to your .env file for persistent use across all muapi scripts.
Getting your API key:
1. Go to [muapi.ai/dashboard](https://muapi.ai/dashboard)
2. Navigate to API Keys
3. Create a new key
Check Result
Poll a previously submitted prediction until it completes.
Examples
Arguments
Argument Description Default
id Request ID to poll (required) —
once Check once and return (no polling) —
timeout Max wait seconds 600
json Raw JSON output —
Output
Pending:
Complete:
Failed:
API Reference
Base URL: https://api.muapi.ai/api/v1
Authentication: All requests require the header:
Common Endpoints:
Endpoint Method Description
/predictions/{id}/result GET Poll generation result
/upload file POST Upload file (multipart/form data)
/get upload url?filename=... GET Get presigned upload URL
Result Response:
Status values: pending , processing , completed , failed
Environment Variables
Variable Description
MUAPI KEY Your muapi.ai API key
Troubleshooting
Authentication Error (401)
Your API key is invalid or expired. Get a new key at [muapi.ai/dashboard](https://muapi.ai/dashboard).
Rate Limit (429)
You've exceeded your plan's rate limit. Wait a moment and retry.
Prediction Not Found (404)
The request id may be incorrect, or the result has expired. Results are typically available for 24 hours.