Workspace/API documentation
Redeem credits
STATION WORKSPACE

API documentation

Back to home

Account query APIs

These docs describe APIs implemented by this platform. Query the model catalog with your key to check current protocol availability.

Before your first request

  1. Contact support, pay by offline transfer, then redeem your credit code. Corporate bank transfers and corporate invoices are supported. Purchase and redeem
  2. Create a platform API key. Set model permissions, a credit limit and an expiry date. Upstream credentials are managed by the owner; customers use platform keys.
  3. Read the catalog, copy the exact model ID and choose a format listed in supported_protocols.

Keep secrets in server environment variables. Login cookies, account-query tokens and model API keys serve different purposes and are not interchangeable.

List models available to your key (CMD)

set "STATION_BASE_URL=https://www.aiglobalsite.com"
set "STATION_API_KEY=YOUR_PLATFORM_API_KEY"
curl.exe "%STATION_BASE_URL%/v1/models" -H "Authorization: Bearer %STATION_API_KEY%"

Read-only account access token

Create an access token in Account settings. Use Authorization: Bearer for GET /api/open/balance and GET /api/open/logs. This token cannot call models. Balance values use platform credits: balance is the current available balance and cost is the total settled usage. Logs accept page, size, model and status filters.

Windows CMD

set "STATION_ACCESS_TOKEN=YOUR_ACCOUNT_ACCESS_TOKEN"
curl.exe "https://www.aiglobalsite.com/api/open/balance" -H "Authorization: Bearer %STATION_ACCESS_TOKEN%"
curl.exe "https://www.aiglobalsite.com/api/open/logs?page=1&size=20" -H "Authorization: Bearer %STATION_ACCESS_TOKEN%"

Errors and billing

HTTPWhat to do
400Check JSON, model and parameters; the model may be under maintenance.
401 / 403Check the key, expiry, account status and model permissions.
402Account balance or key quota is insufficient. Contact support for a credit code.
409This API key already used the Idempotency-Key. The request is not forwarded again; the original response is not replayed.
413 / 429Maximum request body: 1 MiB. Back off when rate or concurrency limits are reached.
502 / 503Upstream failure or no available channel. Keep X-Request-ID and check logs before retrying.

Credits are reserved before a request and settled afterward. Explicit failures release the hold; missing usage or an uncertain submission requires review. Generation is not automatically retried. Use an Idempotency-Key of up to 128 characters to prevent duplicate submissions.