API Keys
Create and manage API keys to authenticate requests to the PicX Studio API.
Where to manage keys
Create, view, and revoke keys in your dashboard at picxstudio.com/api (Account → Developer API). You can hold up to 10 active keys.
Open the developer dashboard
Go to picxstudio.com/api and open the API Keys tab.
Create a key
Click New key, name it, choose scopes (images:generate, images:edit, videos:generate), and create.
Copy it once
The full key (pxsk_...) is shown only once. It is hashed on our servers and cannot be retrieved again.
Use it
Send it as an Authorization: Bearer header on every request.
curl -X POST https://api.picxstudio.com/v1/images/generate \
-H "Authorization: Bearer pxsk_your_key" \
-H "Content-Type: application/json" \
-d '{"prompt": "a cat in a spacesuit", "size": "1K"}'Scopes
Each key carries scopes that limit what it can do: images:generate, images:edit, videos:generate. Calling an endpoint outside a key's scopes returns 403.
Keep keys secret
Never expose keys in client-side code or public repos. If a key leaks, revoke it from the dashboard and create a new one — revocation is immediate.