Models
Truy vấn danh sách models, chi tiết, pricing và purpose mapping.
Danh sách Models
GET https://bizgpt.vn/wp-json/bizcity/v1/llm/models
Trả về danh sách models khả dụng cho API key của bạn. Models bị giới hạn theo tier (Free, Lite, Pro, Enterprise).
Query Parameters
purpose
string
Filter theo purpose: chat, vision, code, fast, embedding, free, ...
search
string
Tìm kiếm theo tên model.
Response
json
{
"models": [
{
"id": "openai/gpt-4o",
"name": "GPT-4o",
"provider": "OpenAI",
"context_length": 128000,
"pricing": {
"prompt": "0.000005",
"completion": "0.000015"
},
"description": "GPT-4o — mạnh, nhanh, hỗ trợ vision",
"architecture": {
"modality": "text+image->text"
}
}
],
"total": 660
}
Purpose Mapping
GET https://bizgpt.vn/wp-json/bizcity/v1/llm/models/purposes
Trả về mapping giữa purpose và model mặc định — hữu ích khi bạn muốn hệ thống tự chọn model phù hợp.
11 Purpose Categories
| Purpose | Mô tả | Model mặc định (ví dụ) |
|---|---|---|
chat | Chat thông thường | deepseek/deepseek-chat-v3-0324:free |
vision | Phân tích ảnh | openai/gpt-4o |
code | Viết / review code | anthropic/claude-sonnet-4 |
fast | Trả lời nhanh, tiết kiệm | openai/gpt-4o-mini |
router | Intent routing | openai/gpt-4o-mini |
planner | Lập kế hoạch phức tạp | openai/gpt-4o |
executor | Thực thi task | openai/gpt-4o-mini |
embedding | Vector embeddings | openai/text-embedding-3-small |
free | Models miễn phí | deepseek/deepseek-chat-v3-0324:free |
slide | Tạo slide HTML | anthropic/claude-sonnet-4 |
slot_extract | Trích xuất slot | openai/gpt-4o-mini |
Public Models (không cần auth)
GET https://bizgpt.vn/wp-json/bizcity/v1/llm/public/models
Endpoint public, không yêu cầu API Key. Trả về danh sách models full với pagination.
Query Parameters
page
integer
Trang hiện tại. Mặc định: 1.
per_page
integer
Số models mỗi trang. Mặc định: 24.
search
string
Tìm kiếm theo tên model hoặc provider.







