$ piapi run flux-dev prompt="a corgi" aspect_ratio=16:9Tạo hình ảnh
94 mô hình AI đa phương thức từ terminal
Tạo hình ảnh, video, âm thanh, tài sản 3D và trò chuyện với LLM — tất cả bằng một lệnh duy nhất. Hoàn hảo cho developers, AI agents và quy trình tự động hóa.
Chạy piapi model list để duyệt tất cả các model
$ piapi run flux-dev prompt="a corgi astronaut"$ piapi run flux-dev prompt="a corgi" aspect_ratio=16:9Tạo hình ảnh
$ piapi run gpt-4o prompt="hello" --streamChat với streaming
$ piapi run sora2-pro prompt="waves" --asyncTạo video (async)
$ piapi run remove-bg image=@./photo.png --downloadTải lên & tải xuống

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.
Chạy piapi auth login --api-key sk-xxxxx với API key PiAPI của bạn. Bạn có thể lấy API key từ workspace PiAPI.
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.
Thêm @ trước bất kỳ input nào để tải file local. Ví dụ: piapi run remove-bg image=@./photo.png.
Có! PiAPI CLI được thiết kế để tích hợp với AI agents. Thêm như skill: npx skills add PiAPI-1/piapi-cli.
CLI miễn phí và mã nguồn mở (giấy phép MIT). Bạn cần tài khoản PiAPI để sử dụng các mô hình — tài khoản mới được tặng credits miễn phí để dùng thử.
Cài toàn cục với npm: npm install -g piapi-cli. Bạn cũng có thể dùng pnpm, yarn hoặc bun. Hoặc chạy mà không cần cài: npx piapi-cli@latest. Yêu cầu Node.js 18+.
PiAPI CLI hỗ trợ 94 mô hình AI đa phương thức: 34 mô hình hình ảnh, 40 mô hình video, 10 mô hình âm thanh, 2 mô hình 3D và 8 mô hình LLM. Chạy piapi model list để xem tất cả.
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.
Thêm --download vào bất kỳ lệnh nào để tự động lưu file đã tạo. Dùng --out-dir ./output để chỉ định thư mục đầu ra.
Các mô hình LLM và gpt-image-2 chạy đồng bộ. Các mô hình video và 3D yêu cầu cờ --async và trả về task ID để polling.