LLM Model Detayı

Belirli bir LLM modelinin detaylı bilgilerini alın.

Endpoint

GET/api/v1/llm-models/:modelId

Belirtilen model ID'sine sahip modelin detaylarını getirir

URL Parametreleri

modelId(zorunlu)

Model kimliği (örn: google/gemini-2.0-flash-001)

Not: URL'de slash (/) karakteri içerdiği için URL encoding gerekebilir

Örnek İstek

cURL
curl -H "Authorization: Bearer wsk_YOUR_API_KEY" \
  "https://api.wespoke.ai/api/v1/llm-models/google/gemini-2.0-flash-001"

Yanıt

200 OK
{
  "success": true,
  "data": {
    "id": "google/gemini-2.0-flash-001",
    "name": "Google: Gemini 2.0 Flash",
    "description": "Gemini Flash 2.0 offers a significantly faster time to first token (TTFT) compared to Gemini Flash 1.5, while maintaining quality on par with larger models like Gemini Pro 1.5.",
    "context_length": 1048576,
    "capabilities": {
      "vision": true,
      "function_calling": true,
      "json_mode": true
    },
    "provider": "google",
    "is_free": false,
    "deprecated": false
  }
}

Yanıt Alanları

id

Benzersiz model kimliği

name

Model görünen adı

description

Model açıklaması ve özellikleri

context_length

Maksimum bağlam penceresi boyutu (token)

capabilities

Modelin desteklediği özellikler

provider

Model sağlayıcısı

is_free

Modelin ücretsiz olup olmadığı

deprecated

Modelin kullanımdan kaldırılıp kaldırılmadığı

Hata Yanıtları

404 Not Found
{
  "success": false,
  "error": {
    "message": "Model not found",
    "code": "MODEL_NOT_FOUND"
  }
}