$ piapi run flux-dev prompt="a corgi" aspect_ratio=16:9画像を生成
ターミナルから94のマルチモーダルAIモデルを利用
画像、動画、音声、3Dアセットの生成、LLMとのチャット——すべて1つのコマンドで。開発者、AIエージェント、自動化ワークフローに最適。
piapi model listを実行してすべてのモデルを参照
$ piapi run flux-dev prompt="a corgi astronaut"$ piapi run flux-dev prompt="a corgi" aspect_ratio=16:9画像を生成
$ piapi run gpt-4o prompt="hello" --streamストリーミングチャット
$ piapi run sora2-pro prompt="waves" --async動画を生成(非同期)
$ piapi run remove-bg image=@./photo.png --downloadアップロード&ダウンロード

Install PiAPI CLI, authenticate your API key, and run your first image or video generation command from the terminal.

Use PiAPI CLI as a command line AI tool to generate images from terminal prompts, save outputs locally, and automate repeatable image workflows.
PiAPI CLI is a command line interface for running PiAPI models from your terminal. It works as an AI CLI tool for image, video, audio, 3D, and chat generation workflows.
piapi auth login --api-key sk-xxxxxを実行。APIキーはPiAPIワークスペースから取得できます。共有マシンでは環境変数PIAPI_API_KEY=sk-...の使用を推奨。
Yes. Use piapi run flux-dev prompt="a corgi astronaut" or another image model to generate AI images from terminal commands. Add --download to save generated files locally.
入力に@プレフィックスを付けるとローカルファイルをアップロード。例:piapi run remove-bg image=@./photo.png
はい!PiAPI CLIはAIエージェント統合用に設計されています。npx skills add PiAPI-1/piapi-cliでスキルを追加。
CLI自体は無料でオープンソース(MITライセンス)。モデルの使用にはPiAPIアカウントが必要——新規アカウントには無料クレジット付与。
npmでグローバルインストール:npm install -g piapi-cli。pnpm、yarn、bunも使用可能。npx piapi-cli@latestでインストールせずに実行も可能。Node.js 18+が必要。
PiAPI CLIは94のマルチモーダルAIモデルをサポート:34の画像モデル、40の動画モデル、10の音声モデル、2つの3Dモデル、8つのLLMモデル。piapi model listで全モデルを確認。
Yes. Use video models such as Sora, Kling, Veo, Seedance, Hailuo, and Luma to generate AI videos from terminal workflows. Video jobs usually use --async so you can check task status later.
任意のコマンドに--downloadを追加すると自動保存。--out-dir ./outputでカスタム出力ディレクトリを指定。
LLMとgpt-image-2モデルは同期実行。動画と3Dモデルは--asyncフラグが必要で、ポーリング用のタスクIDを返します。