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

Chat, Responses, Embeddings

Core OpenAI-compatible text and vector endpoints.

Gateway Base URL

https://token.jusuanta.com

POST/chat/completions

Chat Completions

Method

POST

Path

/chat/completions

Auth

Authorization: Bearer <API_KEY>

Request

Send model and messages. stream can be true when the selected model and channel support it.

Response

Returns OpenAI-compatible choices and usage when the upstream channel provides usage data.

Error cases

401 invalid API Key, 403 access denied, 429 rate limited, balance errors, or upstream failures.

Notes

This is the preferred first integration path for OpenAI-compatible clients.

POST/responses

Responses

Method

POST

Path

/responses

Auth

Authorization: Bearer <API_KEY>

Request

Use model and input for clients built around the newer response shape.

Response

Returns a Responses-compatible payload only after routing through a matching Responses-capable adapter.

Error cases

Same gateway authentication, balance, rate limit, and upstream error classes as chat completions; model_not_found when no Responses-capable channel is enabled.

Notes

Use only when the selected model, client, and upstream route have been verified for the Responses API. Use Chat Completions first for onboarding.

POST/embeddings

Embeddings

Method

POST

Path

/embeddings

Auth

Authorization: Bearer <API_KEY>

Request

Send model and input such as model routing, usage logs, account balance, API Key management.

Response

Returns embedding vectors and usage when the upstream adapter provides them.

Error cases

Model unavailable, missing embedding-capable channel, balance shortage, or upstream failure.

Notes

Confirm embedding-capable model IDs through Model Directory before using this endpoint.

On this page