- Integrations
- /
- PiAPI
PiAPI
PiAPI multi-model generative AI gateway
PiAPI is the unofficial API gateway for the major generative-AI models that don't have first-party APIs (or whose first-party APIs are gated). Tiny Command exposes five generation actions plus the unified Fetch Task action that polls any of them for completion: Midjourney Imagine (the no-Discord path to Midjourney v6.1 image generation), Flux Generate Image (Black Forest Labs' Flux dev and pro models — strong on photorealism and text-in-image), Kling Generate Video (Kuaishou's Kling text-to-video and image-to-video), Suno Generate Music (Suno v4 song generation from a prompt or lyrics + style), and Fetch Task (the polling endpoint — all generations are async and return a task_id immediately; Fetch Task returns the eventual result URL). The connection uses a PiAPI API key (pay-as-you-go credits, no subscription). Generation latency varies wildly by model — Flux finishes in 5-15 seconds, Midjourney in 30-90 seconds, Kling and Suno can take 2-10 minutes for longer outputs.
Do anything PiAPI can do, from a workflow.
Every action accepts dynamic inputs from upstream nodes, whether that's an AI output, a form field, or a search result.
| Action | What it does |
|---|---|
| PiAPI Fetch Task | Polls any PiAPI generation task (Midjourney, Flux, Kling, Suno, etc.) until complete. Result URL appears in output.image_url/video_url/audio_url depending on type. |
| PiAPI Flux Generate Image | Generates images using Flux (dev or pro) via PiAPI's unified gateway. For workflows that bundle multiple AI models behind one API key. |
| PiAPI Kling Generate Video | Generates video via Kuaishou's Kling model through PiAPI's gateway. Returns task ID for polling. |
| PiAPI Midjourney Imagine | The no-Discord path to Midjourney. PiAPI handles the Discord-bot interaction; you get a clean HTTP API. Returns task ID; poll for the finished image. |
| PiAPI Suno Generate Music | Generates a song from a prompt (style + optional lyrics). 30-90 second generation time. Returns task ID for polling. Useful for jingles, podcast intros, ad music. |
Pre-built PiAPI workflows.
Clone any recipe and customize it in one click. Every recipe is fully editable.
Three things worth knowing.
Tiny Command counts a run the moment a trigger fires. Filtering early means only matching events spend your usage budget.
Connect PiAPI once and every workflow on your account can use its triggers and actions. You don't have to re-auth per workflow.
Every PiAPI field shows up in the visual picker for downstream nodes. The raw payload is there for power users, optional for everyone else.
Questions about the PiAPI integration.
If we missed yours, ping support. We usually reply within an hour.
How do I connect PiAPI to Tiny Command?
What PiAPI triggers does Tiny Command support?
What PiAPI actions can I run from a workflow?
Is the PiAPI integration real-time?
Do I need to write code to use PiAPI with Tiny Command?
How much does the PiAPI integration cost?
More other apps people connect.
Same category as PiAPI, ordered by how often teams pair them. Hover the carousel to pause.
Do more with PiAPI.
Wire it to Slack, Notion, HubSpot, Stripe, or any of the other 438 apps in our catalog. Setup takes roughly two minutes. Free to try, no credit card.