Cốt lõi
Liệt kê các Model
Liệt kê các model hiện có trên TokenLab
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
Lọc theo chat, image, video, audio, tts, stt, music, 3d, embedding, rerank, hoặc translation.
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.
Lọc theo nhà sản xuất model, ví dụ như openai, anthropic, google, hoặc deepseek.
Lọc theo thẻ (tag) như chat, image, video, embedding, hoặc translation.
Response
list.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.aliasestokenlab.capabilitiestokenlab.pricingvàtokenlab.pricing_unittokenlab.max_input_tokensvàtokenlab.max_output_tokenstokenlab.categorytokenlab.lifecycle,tokenlab.commercial, vàtokenlab.badgestokenlab.request_format_summarytokenlab.agent_preferenceskhi sử dụngrecommended_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 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
Lọc theo nhà cung cấp model công khai, ví dụ openai, anthropic, google, hoặc minimax.
Lọc theo thẻ khả năng công khai.
Lọc theo danh mục model.
Giá trị hợp lệ
- "chat"
- "embedding"
- "translation"
- "image"
- "video"
- "audio"
- "tts"
- "stt"
- "rerank"
- "3d"
- "music"
- "decision"
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"
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 đủ.
"full"Giá trị hợp lệ
- "compact"
- "full"
Phản hồi
application/json
application/json
application/json
application/json
application/json