示例项目
    示例项目
    • Introduction (Must Read)
    • OpenAI official library usage tutorial
    • Obtain Base URL and API Key
    • OpenAI
      • Chat
        POST
      • Chat (o1,o3,o4 series model)
        POST
      • dall--e-3
        POST
      • gpt-image-1
        POST
      • Image edit
        POST
      • Analyze image
        POST
      • Analyze PDF
        POST
    • Gemini
      • gemini
        POST

    Introduction (Must Read)

    📌
    Simply change the API address from api.openai.com to Base_URL** in the code for seamless integration.#

    Model compatibility.#

    Our API is 100% fully compatible with the OpenAI interface protocol, supporting seamless integration with various applications that utilize the OpenAI interface.
    Note: All chat models (including non-OpenAI models) support the official OpenAI library. Please follow the OpenAI request method for request URLs and formats.
    Reference:OpenAI official development

    Authentication#

    All API requests should include your API key (token KEY) in the HTTP Header under Authorization, as shown below:

    API URL#

    Please check the API address for the current site in our API website -> Console.
    Note: Do not mix up the API address and KEY to avoid request failures that are difficult to troubleshoot.。

    References#

    OpenAI official development
    修改于 2025-05-22 03:59:40
    下一页
    OpenAI official library usage tutorial
    Built with