Otomatik model seçimi

Temel URL https://arteza.ai/api/v1

OpenAPI 3.1 spesifikasyonu, SDK oluşturucuları ve ajanlar için: /api/v1/openapi.json

TypeScript ve Python için resmi SDK'lar, bir komut satırı ve agent becerlileri: SDK'lar ve CLI

"model": "auto" ile bir "route" nesnesi gönderin ve Arteza modeli seçsin: gönderdikleri medyayı okuyarak görevi çözer (görüntü artı "video" görüntüden videoya, ses artı yüz bir avatardır), bu alanlarla bunu yapabilen modelleri tutar ve route.priority ile sıralanır -- kalite (varsayılan), hız veya maliyet -- isteğe bağlı olarak route.max_credits altında. Yanıt modeli, nedeni ve alternatif seçenekleri adlandıran bir "routing" nesnesi taşır. POST /v1/estimate ile "model": "auto" ücretsiz bir test çalışmasıdır.

curl https://arteza.ai/api/v1/generations \
  -H "Authorization: Bearer $ARTEZA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "auto",
    "route": { "output": "video", "priority": "cost", "max_credits": 5 },
    "input": { "prompt": "A red fox runs through fresh snow at dawn", "image_url": "https://example.com/fox.jpg" }
  }'

# 202 ... "routing": {
#   "task": "image-to-video", "priority": "cost",
#   "chosen": { "model": "...", "credits": 1.7, "seconds": 90 },
#   "reason": "the lowest price for image-to-video with these inputs ...",
#   "alternatives": [ ... ], "dropped_fields": []
# }