艾赛尔.聚算塔艾赛尔.聚算塔
API Reference

Claude and Gemini-compatible routes

Selected multi-protocol routes for clients that require Claude Messages or Gemini-compatible shapes.

Gateway Base URL

https://token.jusuanta.com

POST/messagesAdvanced

Claude Messages

Method

POST

Path

/messages

Auth

x-api-key: <API_KEY> with anthropic-version, or Authorization: Bearer <API_KEY>

Request

Send Claude Messages shape only after administrators enable Claude-compatible channels.

Response

Returns Claude-compatible message output from a matching adapter.

Error cases

Invalid key, missing channel, unsupported model, balance shortage, or upstream failure.

Notes

The gateway maps x-api-key to bearer auth for this route.

GET/v1beta/modelsAdvanced

Gemini model list

Method

GET

Path

/v1beta/models

Auth

x-goog-api-key, key query parameter, or Authorization: Bearer <API_KEY>

Request

No body. Use for Gemini-compatible clients after confirming gateway support.

Response

Returns models in Gemini-compatible list shape.

Error cases

Invalid key, no visible models, or access policy denial.

Notes

Use OpenAI-compatible /models for the default onboarding path.

POST/v1beta/models/{model}:generateContentAdvanced

Gemini generate content

Method

POST

Path

/v1beta/models/{model}:generateContent

Auth

x-goog-api-key, key query parameter, or Authorization: Bearer <API_KEY>

Request

Send Gemini contents/parts shape to a configured Gemini-compatible route.

Response

Returns Gemini-compatible generated content.

Error cases

Invalid key, unsupported model, route unavailable, balance shortage, or upstream failure.

Notes

The gateway token middleware accepts key and x-goog-api-key for Gemini-compatible routes.

On this page