Workspace/API documentation
Redeem credits
STATION WORKSPACE

API documentation

Back to home

Anthropic Messages

Use your platform API key with a protocol currently supported by the model.

Request endpoint

Playground

POST

https://www.aiglobalsite.com/v1/messages

Request headers

{
  "Content-Type": "application/json",
  "x-api-key": "YOUR_PLATFORM_API_KEY",
  "anthropic-version": "2023-06-01"
}

JSON request body

{
  "model": "YOUR_MODEL",
  "max_tokens": 1024,
  "messages": [
    {
      "role": "user",
      "content": "Hello, please introduce yourself."
    }
  ],
  "stream": true
}

Replace YOUR_MODEL with a connected model your key can access. Use the platform model name; the gateway handles upstream aliases.

Call from Windows CMD

Save the JSON below as a UTF-8 file named request.json, then run the command in that directory. Replace the platform key. For local development you can also use http://127.0.0.1:8080. A CMD continuation line ends with ^ and no trailing spaces.

request.json

{
  "model": "YOUR_MODEL",
  "max_tokens": 1024,
  "messages": [
    {
      "role": "user",
      "content": "Hello, please introduce yourself."
    }
  ],
  "stream": true
}

Windows CMD

set "STATION_BASE_URL=https://www.aiglobalsite.com"
set "STATION_API_KEY=YOUR_PLATFORM_API_KEY"
curl.exe -N -i -X POST "%STATION_BASE_URL%/v1/messages" ^
  -H "x-api-key: %STATION_API_KEY%" ^
  -H "anthropic-version: 2023-06-01" ^
  -H "Content-Type: application/json" ^
  --data-binary "@request.json"
Quickstart, errors and billing

Compatibility

Native JSON and SSE responses are supported. Tool calls and multimodal fields are forwarded according to the selected protocol, with capabilities determined by the upstream model. Requests route only to enabled providers that declare support for that protocol; formats are not forcibly converted.

GET /v1/models lists models available to your key with supported_protocols; Gemini clients can use GET /v1beta/models. Send the full context with each request. Maximum request size: 1 MiB. Maximum text output: 32,768 tokens.

Credits are reserved before each request and settled when usage is returned. Missing usage, interrupted streams or usage beyond the reservation requires review. Use X-Request-ID to find logs. Reusing an Idempotency-Key with the same API key returns 409 without sending another upstream request.