API reference · Schema
PlaygroundToken
objectstringrequiredAlways `playground_token`: the type of this object
One of
playground_tokenidstringrequiredUnique ID (`pgt_…`)
ID with prefix pgt_
project_idstringrequiredProject it belongs to
ID with prefix prj_
tokenstringrequiredBearer token for the inference API. Short-lived; never store it.
expires_atstring (date-time)requiredWhen it expires (null: never) (ISO 8601, UTC)
Example
{
"object": "playground_token",
"id": "pgt_01jc5zq4m8k3v6x9t2w7r0b1e4",
"project_id": "prj_01jc5zq4m8k3v6x9t2w7r0b1e4",
"token": "pg_eyJ2IjoxLC…",
"expires_at": "2026-01-01T00:00:00.000Z"
}Used by
- Mint a short-lived playground token for the inference API (signed-in users only)
POST /v1/playground-tokens