Skip to main content
The Spatius Console API runs at the host below. Call it from your backend when you need to mint short-lived Session Tokens for Direct Mode clients. See Regions for the full endpoint reference and override options.

Obtain a session token

Call the endpoint POST /v1/console/session-tokens on your console host.

Request parameters

  • Body
    • expireAt: int, expiration timestamp in seconds. Range: now < expireAt < now + 24 hours
    • modelVersion: string, optional model version override
  • Header
    • X-API-Key: your API key

Request example

Response example

The response returns the token in sessionToken.