AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Piapi

skill-wesleysimplicio-piapi-skills-cursor · by wesleysimplicio

PiAPI inference gateway — image, video, music, 3D, audio, and LLM generation through one async-task envelope and an OpenAI-compatible LLM proxy.

No reviews yet
0 installs
37 views
0.0% view→install

Install

$ agentstack add skill-wesleysimplicio-piapi-skills-cursor

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-wesleysimplicio-piapi-skills-cursor)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
3mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Piapi? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

PiAPI (Cursor)

Single envelope:

POST /api/v1/task    { model, task_type, input, config? }
GET  /api/v1/task/{task_id}
DELETE /api/v1/task/{task_id}     # only while status is pending
POST /v1/chat/completions          # OpenAI-compatible LLM

Auth header (lowercase): x-api-key: .

When to invoke

User asks for media generation (Midjourney, Suno, Kling, Luma, Hailuo, Flux, Veo 3, Gemini Nano Banana, Seedance, Hunyuan, MMAudio, F5-TTS, Trellis, Faceswap), or for an OpenAI-compatible LLM call routed through PiAPI, or for PiAPI webhook verification.

Setup

export PIAPI_API_KEY="pk-..."
export PIAPI_WEBHOOK_SECRET="..."   # optional
piapi-cli --help

There is no official PiAPI SDK. The CLI uses pure HTTP via requests.

Cheatsheet

# Generic
piapi-cli submit  --model  --task-type  --input ''
piapi-cli result  
piapi-cli wait     --timeout 1800 --poll-interval 2
piapi-cli cancel  
piapi-cli run     --model  --task-type  --input ''

# Shortcuts
piapi-cli imagine "prompt" --aspect-ratio 16:9 --process-mode fast --wait
piapi-cli flux    --prompt "..." --model Qubico/flux1-schnell --wait
piapi-cli kling   --image-url URL --prompt "..." --duration 5 --wait
piapi-cli suno    --prompt "lofi instrumental" --wait
piapi-cli faceswap --target-url T --swap-url F --wait

# LLM
piapi-cli llm --model gpt-4o-mini \
  --message 'system:You are concise.' --message 'user:Hello.'

# Webhook verify (no HMAC — string compare against echoed secret)
piapi-cli verify-webhook --header-secret "$RAW_HEADER" --expected "$PIAPI_WEBHOOK_SECRET"

Status enum drift

Lowercase the status field before comparing.

Terminal-success: completed, complete, success, succeeded. Terminal-failure: failed, failure, error, canceled, cancelled, rejected.

Common model · task_type

| Family | model | task_type | |---|---|---| | Midjourney | midjourney | imagine, upscale, variation, inpaint, blend, describe | | Flux | Qubico/flux1-schnell / Qubico/flux1-dev | txt2img, img2img, inpaint, controlnet-lora | | Kling | kling | text2video, image2video, extend, lipsync, effects | | Luma | luma | text2video, image2video, extend | | Hailuo | hailuo | text2video, image2video, subject2video | | Veo 3 | veo3 | txt2vid, img2vid | | Seedance | seedance | text-to-video, image-to-video | | Suno | music-u | generate_music, generate_music_custom, extend, concat | | Hunyuan | Qubico/hunyuan | txt2video-lora, img2video-lora | | MMAudio | Qubico/mmaudio | video2audio | | Faceswap | Qubico/image-toolkit / Qubico/video-toolkit | face-swap, multi-face-swap | | Trellis | Qubico/trellis | image-to-3d | | F5-TTS | Qubico/f5-tts | txt2speech | | Gemini Image | gemini | nano-banana-text-to-image, nano-banana-edit |

Refs

  • https://piapi.ai/docs/overview
  • https://piapi.ai/docs/llm-api
  • https://piapi.ai/pricing

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.