Skip to content
OtherReal-timeUpdated May 2026
P

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.

0triggers
5actions
≈ 2 minto set up
Freetier · no card
Actions

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.

ActionWhat it does
PiAPI Fetch TaskPolls 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 ImageGenerates 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 VideoGenerates video via Kuaishou's Kling model through PiAPI's gateway. Returns task ID for polling.
PiAPI Midjourney ImagineThe 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 MusicGenerates 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.
Recipes

Pre-built PiAPI workflows.

Clone any recipe and customize it in one click. Every recipe is fully editable.

Before you build

Three things worth knowing.

Filter at the trigger

Tiny Command counts a run the moment a trigger fires. Filtering early means only matching events spend your usage budget.

Authorize once, reuse anywhere

Connect PiAPI once and every workflow on your account can use its triggers and actions. You don't have to re-auth per workflow.

No JSON to read

Every PiAPI field shows up in the visual picker for downstream nodes. The raw payload is there for power users, optional for everyone else.

FAQ

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?
Open the Tiny Command workflow builder, drop in a PiAPI node, and click Connect. Authorize PiAPI once and any workflow on your account can use its triggers and actions. Most teams finish the connection in under two minutes.
What PiAPI triggers does Tiny Command support?
Tiny Command focuses on outbound actions for PiAPI today. Use Tiny Command's universal Webhook or Schedule trigger to start PiAPI workflows, then run any PiAPI action you need.
What PiAPI actions can I run from a workflow?
5 PiAPI actions are available out of the box, covering other operations like "PiAPI Fetch Task". Every action accepts dynamic inputs from upstream nodes, whether that's a search result, an AI output, or a form field.
Is the PiAPI integration real-time?
PiAPI actions execute synchronously inside your workflow. Tiny Command waits for PiAPI's API to confirm before continuing to the next step, so downstream nodes can rely on the result.
Do I need to write code to use PiAPI with Tiny Command?
No. Every PiAPI trigger and action is fully configurable from the visual workflow builder. For edge cases that aren't covered, drop in a custom HTTP node and call any PiAPI API endpoint directly.
How much does the PiAPI integration cost?
There's a free tier you can start on without a credit card. Higher run volumes and team features come with paid plans. The PiAPI integration itself has no per-app surcharge.
Related

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.