मॉडल्स

मॉडल्स और डिस्कवरी

कैटालॉग लाइव है: आपकी तरफ़ से किसी रिलीज़ के बिना मॉडल जोड़े जाते हैं, रीप्राइस किए जाते हैं और हटाए जाते हैं। सूची को हार्ड-कोडिंग करने के बजाय API से पढ़ें।

GEThttps://api.oxyy.ai/v1/models
GEThttps://api.oxyy.ai/v1/models/{model}एक मॉडल, विस्तार से

API कुंजी के साथ कॉल किए जाने पर, सूची मॉडल लौटाती है वह कुंजी may call (your tier's models, narrowed by the key's own model list if it has one), each with its pricing, context window, modalities and supported parameters. It can include a few models kept callable for existing integrations that no longer appear on the website's model pages. दो क्वेरी फ़्लैग इसे चौड़ा करते हैं: ?full=1 हर मॉडल का पूरा दस्तावेज़ लौटाता है (इसके इनपुट नियंत्रण, विकल्प और सेटिंग्स, जैसा कि डिटेल एंडपॉइंट करता है), और ?include_inaccessible=1 वे मॉडल जोड़ता है जिन्हें आपका टियर कॉल नहीं कर सकता, accessible: false और एक access_reason कारण बताते हुए — ताकि मॉडल पिकर किसी पंक्ति को धूसर (grey) कर सके और खुद को समझा सके। यदि आपके टियर की पहुँच एक पल के लिए नहीं पढ़ी जा सकती है, तो सूची उत्तर देती है 503 कोड के साथ tier_access_unavailable and Retry-After: 2 rather than an empty list.

डिटेल एंडपॉइंट हर पैरामीटर को जोड़ता है वर्णित rather than merely named, the endpoints and SDKs that serve it, and your own rate limits on it. It also accepts a near-spelling of an id when exactly one model matches it (other capitalisation, or the vendor's name in front as vendor/id), और एक अज्ञात id है 404 जिसका संदेश सबसे करीबी का सुझाव देता है ("Did you mean …?")। supportedSdks उन SDKs के नाम बताता है जिनसे किसी model पर चैट की जा सकती है; sdkMethods lists, per SDK, the methods it serves the model on — Google's embedding and Imagen models are served through the Google GenAI SDK चालू embedContent and predict चैट मॉडल न होने के बावजूद। रीज़निंग मॉडल पर, दोनों एंडपॉइंट्स में होता है reasoning object जो बताता है कि क्या thinking को बंद किया जा सकता है और कौन से effort levels काम करते हैं — देखें रीज़निंग. एक के तहत anthropic-version header the list answers in Anthropic's shape, where type हमेशा model और मॉडल का अपना प्रकार है oxyy_type.

# Every model the API serves, with pricing, capabilities and whether
# your key may call it.
curl https://api.oxyy.ai/v1/models \
  -H "Authorization: Bearer $OXYY_API_KEY"

# One model, with every parameter described rather than just named.
curl https://api.oxyy.ai/v1/models/gpt-5.5 \
  -H "Authorization: Bearer $OXYY_API_KEY"
import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ["OXYY_API_KEY"],
    base_url="https://api.oxyy.ai/v1"
)

# `accessible` says whether YOUR tier may call it; `access_reason`
# says why not when it is false.
for m in client.models.list().data:
    if m.oxyy["type"] == "TEXT" and m.accessible:
        print(m.id, m.oxyy["contextWindow"])

उदाहरण रिस्पॉन्स

प्रतिक्रिया
{
  "object": "list",
  "total_count": 131,
  "data": [
    {
      "id": "gpt-5.5",
      "object": "model",
      "created": 1700000000,
      "owned_by": "openai",
      "accessible": true,
      "access_reason": null,
      "oxyy": {
        "displayName": "GPT-5.5",
        "type": "TEXT",
        "contextWindow": 1050000,
        "maxTokens": 128000,
        "inputModalities": ["text", "image"],
        "outputModalities": ["text"],
        "supportedParameters": ["reasoning_effort", "tools", "response_format"],
        "pricing": {
          "mode": "PER_TOKEN_IO",
          "inputCreditsPerMillion": 5,
          "outputCreditsPerMillion": 30
        },
        "accessible": true
      }
    }
  ]
}

कौन सा एंडपॉइंट किस मॉडल को सर्व करता है

हर मॉडल का एक टाइप होता है, और हर एंडपॉइंट टाइप के एक सेट को सर्व करता है। गलत एंडपॉइंट पर मॉडल भेजने पर उत्तर मिलता है 400 कोड के साथ model_type_mismatch जो आपके द्वारा चाही गई एंडपॉइंट का नाम बताती है — बिलिंग होने से पहले।

एंडपॉइंटमॉडल प्रकारनोट्स
POST /v1/chat/completionsकोई भी चैट-सर्व्ड मॉडलचैट पर उत्तर देने वाले टेक्स्ट, विजन और इमेज मॉडल
POST /v1/responsesTEXT, IMAGE_TO_TEXT, IMAGE_GENERATIONResponses ऑब्जेक्ट मॉडल में ऑडियो, वीडियो या वेक्टर के लिए कोई आइटम नहीं है
POST /v1/images/*IMAGE_GENERATION, IMAGE_TO_IMAGE
POST /v1/videos/*TEXT_TO_VIDEO, IMAGE_TO_VIDEO, VIDEO_TO_VIDEO
POST /v1/audio/speechAUDIO_TTS, MUSIC_GENERATIONसंगीत का बिलिंग और रिटर्न स्पीच-जैसे ऑडियो के रूप में होता है
POST /v1/audio/transcriptions
POST /v1/audio/translations
AUDIO_STT
POST /v1/embeddingsEMBEDDING
POST /v1/rerankRERANKकैटलॉग में टेक्स्ट models के साथ सूचीबद्ध
POST /v1/moderationsMODERATIONकैटलॉग में टेक्स्ट models के साथ सूचीबद्ध