NEXT_PUBLIC_ or embed it in browser code.
Set up today
- Create a scoped key in the PyAI console. Speech
generation needs
speak:synthesize; transcription needshear:transcribe. - Add
PYAI_API_KEYin your Vercel project’s environment variables. Select the deployment environments that should have access. - Redeploy the application. Existing deployments do not inherit new variables.
- Read the key as
process.env.PYAI_API_KEYinside server code.
Account connection preview
The automated account connection is being qualified. A public Vercel Marketplace
listing is not yet approved. Manual environment-variable setup above remains
available.
PYAI_API_KEY in Production and Preview. It does not overwrite an existing
variable. This initial version connects one Vercel project per installation.
Use an owner or admin account in the PyAI organization.
Disconnect and recover
- Open the connection with the PyAI account that created it and confirm Disconnect PyAI. This revokes the integration key; deployed applications using it lose access.
- Removing the integration in Vercel also revokes its key when the signed removal event is delivered. Transferring the installation to another Vercel team revokes the existing PyAI access.
- If an install fails after sending the environment variable, its new key is
revoked. Check Vercel for a remaining
PYAI_API_KEYvariable before trying again; the integration never silently overwrites it. - If cleanup cannot reach Vercel, the console reports that the variable still needs removal. Revoked keys remain unusable.
- Remove the old integration from Vercel before starting a new installation.