Inference API
Call your prompts and chains programmatically with a pv_live_ API key, selecting the version slot to run.
API keys
Create an API key in Settings → API Keys. Keys are prefixed pv_live_, shown once at creation, and hashed at rest. You can scope a key to specific prompts and providers.
Calling a prompt
Send a POST to /inference with your key as a Bearer token. Use prompt_id (or chain_id for a chain) and choose the version slot — live/prod, staging, dev, or latest.
In Python
In JavaScript
Slots and A/B tests apply
The
version field resolves through your deployment slots, and an active A/B test can intercept prod/live calls and route a share to variant B — automatically.