TokenLab

Cốt lõi

Liệt kê các Model

Liệt kê các model hiện có trên TokenLab

GET
/v1/models

Danh mục model là công khai và không yêu cầu API key. Mỗi mục bao gồm tóm tắt về các khả năng, giá cả và định dạng API hiện tại. Hãy truy xuất một model cụ thể khi bạn cần thông tin chi tiết đầy đủ.

Query Parameters

categorystringquery

Lọc theo chat, image, video, audio, tts, stt, music, 3d, embedding, rerank, hoặc translation.

recommended_forstringquery

Trả về các đề xuất hiện tại cho một tác vụ như image, video, music, 3d, tts, stt, embedding, rerank, hoặc translation.

providerstringquery

Lọc theo nhà sản xuất model, ví dụ như openai, anthropic, google, hoặc deepseek.

tagstringquery

Lọc theo thẻ (tag) như chat, image, video, embedding, hoặc translation.

Response

objectstring
Luôn là list.
dataarray
Các model với id, owned_by, và tóm tắt tokenlab.

Các trường danh sách phổ biến trong tokenlab bao gồm:

  • tokenlab.aliases
  • tokenlab.capabilities
  • tokenlab.pricing và tokenlab.pricing_unit
  • tokenlab.max_input_tokens và tokenlab.max_output_tokens
  • tokenlab.category
  • tokenlab.lifecycle, tokenlab.commercial, và tokenlab.badges
  • tokenlab.request_format_summary
  • tokenlab.agent_preferences khi sử dụng recommended_for

Khi sử dụng recommended_for, kết quả có thể bao gồm trạng thái đề xuất và thời gian cập nhật. Hãy đọc phản hồi hiện tại thay vì cố định thứ tự.

Example

curl "https://api.tokenlab.sh/v1/models?category=video"
{
  "object": "list",
  "data": [
    {
      "id": "veo3.1",
      "object": "model",
      "owned_by": "google",
      "tokenlab": {
        "category": "video",
        "capabilities": ["text-to-video", "image-to-video"]
      }
    }
  ]
}

Xem Lấy thông tin Model để biết thông tin chi tiết đầy đủ.

curl -X GET "https://example.com/v1/models"
{  "object": "list",  "data": [    {      "id": "string",      "object": "model",      "created": 0,      "owned_by": "string",      "tokenlab": {        "aliases": [          "string"        ],        "deliveryAvailability": {          "verified": true,          "official": true,          "operations": {            "property1": {              "verified": true,              "official": true            },            "property2": {              "verified": true,              "official": true            }          }        },        "pricing": {},        "capabilities": [          "string"        ],        "providers": [          "string"        ],        "max_input_tokens": 0,        "max_output_tokens": 0,        "category": "string",        "pricing_unit": "string",        "cache_pricing": {},        "has_complex_pricing": true,        "pricing_summary": {},        "agent_preferences": {},        "lifecycle": {          "stage": "active",          "reason": "string",          "replacement_model": "string",          "released_at": "2019-08-24T14:15:22Z",          "deprecated_at": "2019-08-24T14:15:22Z",          "retired_at": "2019-08-24T14:15:22Z",          "sunset_at": "2019-08-24T14:15:22Z",          "latest": true,          "latest_source": "auto",          "latest_window_days": 0        },        "commercial": {          "user_charge_policy": "paid",          "free_reason": "platform",          "free_until": "2019-08-24T14:15:22Z"        },        "badges": [          {            "key": "free",            "tone": "green",            "priority": 0,            "tooltip": {              "key": "string",              "values": {                "property1": "string",                "property2": "string"              }            }          }        ],        "request_format_summary": {          "public_operations": [            "string"          ],          "request_endpoint": "string",          "request_endpoint_by_operation": {            "property1": "string",            "property2": "string"          }        }      }    }  ]}

Xác thực

BearerAuth
AuthorizationBearer <token>

Xác thực bằng Khóa API. Tạo hoặc quản lý khóa API trong Dashboard > API > API Keys.

Vị trí: header

Tham số truy vấn

provider?string

Lọc theo nhà cung cấp model công khai, ví dụ openai, anthropic, google, hoặc minimax.

tag?string

Lọc theo thẻ khả năng công khai.

category?string

Lọc theo danh mục model.

Giá trị hợp lệ

  • "chat"
  • "embedding"
  • "translation"
  • "image"
  • "video"
  • "audio"
  • "tts"
  • "stt"
  • "rerank"
  • "3d"
  • "music"
  • "decision"
recommended_for?string

Sắp xếp các model không phải chat được hỗ trợ cho một danh mục tác vụ và bao gồm bằng chứng đề xuất.

Giá trị hợp lệ

  • "image"
  • "video"
  • "music"
  • "3d"
  • "tts"
  • "stt"
  • "embedding"
  • "rerank"
  • "translation"
view?string

Chọn các trường chọn model rút gọn hoặc cấu trúc danh sách tương thích với OpenAI đầy đủ.

mặc định"full"

Giá trị hợp lệ

  • "compact"
  • "full"

Phản hồi

application/json

application/json

application/json

application/json

application/json