Quick Start
Make your first API call in minutes — curl, TypeScript, or Python.
Authentication
Get your API key and learn how to authenticate every request.
API Reference
Full endpoint reference with request and response examples.
TypeScript SDK
Install
@pi-api/sdk and start calling APIs with type safety.What you can build
Brand Intelligence
Extract brand DNA from any URL and project it into structured context for your app.
Visual Commerce
Generate campaign-grade static ads and avatars with AI in a single API call.
Voice Agents
Configure reusable voice agents and start real-time LiveKit sessions.
Health & Neuro
Point-of-care triage, clinical decision support, EEG decoding, and wellness APIs.
Surveillance
Programmable video intelligence with real-time SSE incident streams.
Robotics
Agentic robotics runs with behavior orchestration and live event streams.
How Pi works
Get your API key
Obtain a Bearer token (e.g.
pi_live_...) from your account. All requests use Authorization: Bearer <key>.Submit a job
POST to any creation endpoint. Pi returns
202 Accepted with a job_id immediately — no blocking.Poll for completion
Call
GET /api/v1/jobs/:id with wait_for_completion=true to long-poll until status is completed or failed.Pi follows OpenAI-compatible conventions — Bearer auth, consistent JSON envelopes, and async job patterns — so it integrates naturally alongside existing AI tooling.