Pruna API Dev Portal
Access Pruna's Performance Models, just one API call away
Get started
Getting Started with Pruna API
1. Log in
- Go to dashboard.pruna.ai.
- Log in with the email and temporary password we sent you.
- The password we provided is temporary — once you’re in, go to your "profile" then "security settings" and change it.
2. Set up your workspace & team (optional but useful)
-
In the Team tab:
- Invite teammates by email.
- They’ll get an invite and can create their own API keys.
- As an admin, you can remove members and see pending invitations.
3. Create your API key
- Go to the API Keys tab.
-
Click “Create API key”, give it a name
(e.g.
prod-backend,staging,alex-local). - Copy it immediately — you won’t see it again after closing the popup.
-
If you lose it:
- Use “Rotate”: this invalidates the old key and issues a new one (no need to delete + recreate from scratch).
-
Use it in your requests as an HTTP header:
- Header name:
apikey(lowercase, no spaces) - Value: your API key
- You also need this header when downloading generated images/videos from the
generation_url.
- Header name:
4. Read the Quickstart in the docs
- From the dashboard, click “Docs” (top-right).
-
Go to Quickstart:
- How to call the
/predictionsendpoint - The difference between synchronous (
try-sync: true) and asynchronous (polling a status route) - How to upload images for edit/video models
- How to call the
5. Choose and use the model you want
-
In Docs → Models, you’ll see all available models:
P-Image— flagship text-to-imageP-Image-edit— flagship image editing- Other performance models
-
Each model page contains:
- A minimal code snippet for calling the API
- The list of parameters (aspect ratio, guidance, frames for video, etc.)
- The pricing per request
Recommended defaults:
-
For fast models (like
P-Image):
→ You can usetry-sync: true(synchronous) for a simple integration. -
For heavier models (video, big resolutions):
→ Use asynchronous flow: send request, then poll the status endpoint until it returnssucceeded, then download fromgeneration_url.
QuickstartModelsAPI docs
Access the Fastest Models
Experience Performance Models: blazing-fast, high-quality models at an unbeatable cost. Each one is uniquely optimized by Pruna for outstanding performance.
A single API call to access all image models.
One API, All Models: just change a line to select the model you want!
Pay-Per Use
Just transparent, usage-based pricing. No hidden fees. Cancel anytime.
Get the Latest Models, First
Stay ahead and receive optimized versions pushed to your API endpoints within days of their release.