BazaarLinkBazaarLink
Đăng nhập
Tài liệuTham chiếu APITham chiếu SDKSử dụng AgentKỹ năng AI
Model

Liệt kê model khả dụng

Trả về tất cả model khả dụng, có thể lọc qua output_modalities (xem Liệt kê model embeddings — cùng một endpoint với output_modalities=embeddings). Không có header Authorization, trả về danh sách công khai đầy đủ với cache công khai; với Bearer key thuộc về một tổ chức, phản hồi được lọc theo danh sách model được phép của tổ chức đó và chuyển sang cache riêng tư, thời gian ngắn.

GET/v1/models

Tham số truy vấn

output_modalities
string

Một chuỗi đơn phân tách bằng dấu phẩy (không phải lặp lại query key cùng tên), ví dụ image hoặc text,image. Truyền all để lấy mọi modality. Mặc định chỉ text khi bỏ qua. Giá trị không nhận diện được sẽ trả về 400. Cách dùng phổ biến: với model văn bản, giữ mặc định hoặc truyền text rõ ràng; model hình ảnh truyền image; embeddings truyền embeddings; chuyển văn bản thành giọng nói truyền speech, chuyển giọng nói thành văn bản truyền transcription; audio, video, rerank dùng tương tự (một số hạng mục hiện có ít hoặc chưa có model nào); để lấy hợp của tất cả hạng mục cùng lúc (không phải tổng — một model có thể thuộc nhiều hạng mục) hãy truyền all.

comma-separated, single value
textimageembeddingsaudiovideorerankspeechtranscriptionall
Example: "text,image"
GET /v1/models
curl "https://api.bazaarlink.ai/v1/models?output_modalities=all"
Ví dụ phản hồi

GET /v1/models liệt kê id như "claude-sonnet-4.6" và alias chuẩn như "anthropic/claude-sonnet-4.6". Yêu cầu chấp nhận cả hai dạng; dùng giá trị trong danh sách.

{
  "object": "list",
  "data": [
    {
      "id": "gpt-4o",
      "object": "model",
      "owned_by": "openai",
      "name": "OpenAI: GPT-4o",
      "description": "OpenAI's multimodal flagship model.",
      "context_length": 128000,
      "aliases": [
        "openai/gpt-4o"
      ],
      "pricing": {
        "prompt": "0.0000025",
        "completion": "0.00001"
      },
      "architecture": {
        "modality": "text+image->text",
        "input_modalities": [
          "text",
          "image"
        ],
        "output_modalities": [
          "text"
        ]
      },
      "knowledge_cutoff": "2023-10",
      "max_completion_tokens": 16384
    },
    {
      "id": "openai/gpt-4o:free",
      "object": "model",
      "owned_by": "openai",
      "name": "OpenAI: GPT-4o (free)",
      "description": "Rate-limited free tier. OpenAI's multimodal flagship model.",
      "context_length": 128000,
      "aliases": [],
      "pricing": {
        "prompt": "0",
        "completion": "0"
      },
      "architecture": {
        "modality": "text+image->text",
        "input_modalities": [
          "text",
          "image"
        ],
        "output_modalities": [
          "text"
        ]
      }
    },
    {
      "id": "auto",
      "object": "model",
      "owned_by": "bazaarlink",
      "name": "Auto Router",
      "description": "Automatically selects the best model for the request.",
      "aliases": [],
      "pricing": {
        "prompt": "-1",
        "completion": "-1"
      },
      "architecture": {
        "modality": "text->text",
        "input_modalities": [
          "text"
        ],
        "output_modalities": [
          "text"
        ]
      }
    }
  ]
}
Support
Support
Hi! How can we help you?
Send a message and we'll get back to you soon.
Liệt kê model khả dụng — BazaarLink API