Skip to main content

OpenAI

OpenAI provides developer APIs for GPT models. Codex supports ChatGPT sign-in for subscription access or API key sign-in for usage-based access. Codex cloud requires ChatGPT sign-in.

विकल्प A: OpenAI API कुंजी (OpenAI प्लेटफ़ॉर्म)

Best for: direct API access and usage-based billing. Get your API key from the OpenAI dashboard.

CLI सेटअप

विन्यास स्निपेट

विकल्प B: OpenAI Code (Codex) सब्सक्रिप्शन

Best for: using ChatGPT/Codex subscription access instead of an API key. Codex cloud requires ChatGPT sign-in, while the Codex CLI supports ChatGPT or API key sign-in.

CLI सेटअप (Codex OAuth)

विन्यास स्निपेट (Codex सब्सक्रिप्शन)

नोट्स

  • मॉडल संदर्भ हमेशा provider/model का उपयोग करते हैं (देखें /concepts/models)।
  • प्रमाणीकरण विवरण और पुन: उपयोग नियम /concepts/oauth में हैं।