艾赛尔.聚算塔艾赛尔.聚算塔
Usage guide

Quickstart

Create an API Key, confirm the Base URL, call the first model, and list visible models.

Gateway Base URL

https://token.jusuanta.com

The gateway is OpenAI-compatible first. Start with the OpenAI-compatible Base URL, then use selected Claude or Gemini-compatible routes only after the administrator confirms matching channels.

Five-minute path

  1. Log in to the console and open API Keys.
  2. Create an API Key and store it in a secret manager.
  3. Copy the Base URL from this page or confirm it with the administrator.
  4. Choose MODEL_ID_FROM_MODEL_DIRECTORY from Model Directory or /models.
  5. Call POST /chat/completions, then use GET /models to verify visible models.

List models

export GATEWAY_API_KEY="sk-..."
export GATEWAY_BASE_URL="https://token.jusuanta.com"
export GATEWAY_MODEL="MODEL_ID_FROM_MODEL_DIRECTORY"
export GATEWAY_EMBEDDING_MODEL="EMBEDDING_MODEL_ID"
export GATEWAY_RERANK_MODEL="RERANK_MODEL_ID"

curl "$GATEWAY_BASE_URL/models" \
  -H "Authorization: Bearer $GATEWAY_API_KEY"

First chat completion

export GATEWAY_API_KEY="sk-..."
export GATEWAY_BASE_URL="https://token.jusuanta.com"
export GATEWAY_MODEL="MODEL_ID_FROM_MODEL_DIRECTORY"
export GATEWAY_EMBEDDING_MODEL="EMBEDDING_MODEL_ID"
export GATEWAY_RERANK_MODEL="RERANK_MODEL_ID"

curl "$GATEWAY_BASE_URL/chat/completions" \
  -H "Authorization: Bearer $GATEWAY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "'"$GATEWAY_MODEL"'",
    "max_tokens": 256,
    "messages": [
      {
        "role": "user",
        "content": "Please summarize this model API gateway integration checklist in three concise sentences."
      }
    ]
  }'

Model IDs are deployment-specific

Do not hard-code provider model names unless the model appears in Model Directory or /models for your API Key.

On this page