6 个工具 · 6 个可使用平台 key · 0 个仅自有 key
PiAPI API:6 个工具,按次付费
通过 Toolswitch 使用 PiAPI 工具。
常见任务:video-gen.task.status, image-gen.gemini-3-pro-image.generate, image-gen.gpt-image-2.generate。
能做什么
Read a task's status (Pending, Processing, Completed, Failed, Staged) and its output URLs.
Generate images with GPT Image 2.5 through PiAPI's OpenAI-shaped async route, metered by quality and size.
Generate images with GPT Image 2 (medium quality only) through PiAPI's OpenAI-shaped async route.
在 Agent 里使用
通过 MCP 将这些工具提供给 Agent,或使用 HTTP 将调用接入你的工作流。
- MCP: 通过 MCP 连接 Agent,以发现和使用工具。
- HTTP: 通过 HTTP API 在应用中调用工具。
为什么通过 Toolswitch 调用?
无需供应商账号
使用平台 key 的工具无需单独注册供应商账号。
按次付费
按实际使用量付费,无需供应商订阅。
价格透明
调用前即可查看工具价格与计费单位。
全部 6 个工具
Image generation · 3 个工具
Generate images with GPT Image 2.5 through PiAPI's OpenAI-shaped async route, metered by quality and size.
piapi.image-gen.gpt-image-2-5Generate images with GPT Image 2 (medium quality only) through PiAPI's OpenAI-shaped async route.
piapi.image-gen.gpt-image-2Generate or edit an image with Gemini 3 Pro Image at 1K, 2K or 4K from a prompt and up to 14 reference images.
piapi.image-gen.gemini-3-pro-image
Video generation · 3 个工具
Read a task's status (Pending, Processing, Completed, Failed, Staged) and its output URLs.
piapi.task.getCreate a Seedance 2.5 video task from a prompt with optional image, video and audio references (default content filter).
piapi.video-gen.seedance-2-5Less Restriction: the same Seedance 2.5 model on PiAPI's relaxed filter, where a real person's face may drive the video; the default row refuses real faces. Face images must first pass the connected account's Private Asset Library review; other references are used as-is. 10% dearer than the default row.
piapi.video-gen.seedance-2-5.less-restriction
限制与计费
Generation is asynchronous: POST /api/v1/task answers with data.task_id; poll GET /api/v1/task/{task_id} every 10 seconds. Errors arrive as HTTP 200 with a non-200 `code`. Output URLs are temporary; download promptly. Reference image URLs must return raw image bytes with an image/* content-type, not an HTML file page.
官方定价 ↗