BazaarLinkBazaarLink
เข้าสู่ระบบ
เอกสารAPI ข้อมูลอ้างอิงSDK ข้อมูลอ้างอิงการใช้งาน AgentAI ทักษะ
โมเดล

แสดงรายการโมเดลที่ใช้งานได้

คืนค่าโมเดลที่ใช้งานได้ทั้งหมด กรองได้ด้วย output_modalities (ดู แสดงรายการโมเดล embeddings — เอนด์พอยต์เดียวกันที่ใช้ output_modalities=embeddings) หากไม่มี header Authorization จะคืนค่ารายการสาธารณะทั้งหมดพร้อมแคชสาธารณะ หากมี Bearer key ที่เป็นขององค์กร การตอบกลับจะถูกกรองตาม allowlist โมเดลขององค์กรนั้นและเปลี่ยนเป็นแคชส่วนตัวอายุสั้น

GET/api/v1/models

พารามิเตอร์คิวรี

output_modalities
string

สตริงเดี่ยวคั่นด้วยจุลภาค (ไม่ใช่การส่ง query key ชื่อเดิมซ้ำ) เช่น image หรือ text,image ส่ง all เพื่อรับทุกโมดัลลิตี ค่าเริ่มต้นเมื่อละเว้นคือ text เท่านั้น ค่าที่ไม่รู้จักจะคืนค่า 400 การใช้งานทั่วไป: สำหรับโมเดลข้อความ ให้คงค่าเริ่มต้นไว้หรือส่ง text อย่างชัดเจน; โมเดลรูปภาพส่ง image; embeddings ส่ง embeddings; แปลงข้อความเป็นเสียงส่ง speech และแปลงเสียงเป็นข้อความส่ง transcription; audio, video, rerank ใช้วิธีเดียวกัน (บางหมวดหมู่ปัจจุบันมีโมเดลน้อยหรือยังไม่มี); หากต้องการรวมทุกหมวดหมู่ในครั้งเดียว (ไม่ใช่ผลรวม — โมเดลหนึ่งอาจอยู่ในหลายหมวดหมู่) ให้ส่ง all

comma-separated, single value
textimageembeddingsaudiovideorerankspeechtranscriptionall
Example: "text,image"
GET /api/v1/models
curl "https://bazaarlink.ai/api/v1/models?output_modalities=all"
ตัวอย่างการตอบกลับ

สำเร็จ id เป็นรูปแบบสั้น (เช่น "gpt-4o") เมื่อชื่อไม่คลุมเครือระหว่างผู้ให้บริการ มิฉะนั้น (หรือเมื่อโมเดลเรียกเก็บเงินตามสื่อ) จะเป็นรูปแบบ canonical (เช่น "openai/gpt-4o") — canonical id จะถูกระบุเพิ่มเติมใน aliases เสมอ โมเดลฟรีจะมีรายการเพิ่มเติมโดยใช้ canonical id บวก :free (ราคาศูนย์ เป็นสัญญาณการค้นพบ ไม่ใช่โมเดลจริงตัวที่สอง) เมื่อตัวกรองครอบคลุม text รายการจะรวม auto และ auto:free ซึ่งเป็นรายการจัดเส้นทางเสมือนด้วย (owned_by เป็น "bazaarlink" ไม่มีโมเดลจริงตัวใดตัวหนึ่งรองรับ) ราคาของ auto คือ "-1"/"-1" (หมายถึงโมเดลที่ถูกจัดเส้นทางจริงเป็นตัวกำหนดต้นทุน) — มีเพียง auto:free เท่านั้นที่ไม่มีค่าใช้จ่ายจริง ๆ

{
  "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.
แสดงรายการโมเดลที่ใช้งานได้ — BazaarLink API