Models
Configuration driven
List and retrieve model IDs from the current token168 deployment.
GET /v1/models
Returns the OpenAI-compatible model list visible to the API key. Availability still depends on account group, token model limits, and deployment configuration.
list OpenAI-compatible models
curl https://www.token168.cc/v1/models \
-H "Authorization: Bearer $TOKEN168_API_KEY"
GET /v1/models/{model}
Retrieves one OpenAI-compatible model record by model ID. Use this before hard-coding a model into production clients.
retrieve one model
curl "https://www.token168.cc/v1/models/<MODEL_ID>" \
-H "Authorization: Bearer $TOKEN168_API_KEY"
GET /v1/models with Claude headers
When the request uses Claude-compatible headers, token168 lists Anthropic / Claude-compatible models for the configured deployment.
list Claude-compatible models
curl https://www.token168.cc/v1/models \
-H "x-api-key: $TOKEN168_API_KEY" \
-H "anthropic-version: 2023-06-01"
GET /v1beta/models and /v1beta/openai/models
/v1beta/models returns Gemini-compatible models. /v1beta/openai/models returns OpenAI-compatible model metadata through the Gemini-compatible namespace.
list Gemini-compatible models
curl https://www.token168.cc/v1beta/models \
-H "Authorization: Bearer $TOKEN168_API_KEY"
curl https://www.token168.cc/v1beta/openai/models \
-H "Authorization: Bearer $TOKEN168_API_KEY"
| Method | Path | Status |
|---|---|---|
| GET | /v1beta/models | Active |
| GET | /v1beta/openai/models | Active |