エッジ開発者プラットフォーム
  • AIゲートウェイ
    • 製品概要
    • 早速スタート。
    • 開発ガイド
      • V1
      • V2
        • 概要
        • パブリックリクエストヘッダーの概要
        • ラベル-混合物
        • 百度-千帆
        • バイト-豆パック
        • アリ·トゥン
        • Moonshot—KIMI
        • ミニマックス
        • Open AI
        • 双子
    • よくある質問
    • 製品の動向
このページは現在英語版のみで提供されており、日本語版も近日中に提供される予定です。ご利用いただきありがとうございます。

概要

To further enhance the development experience and simplify interface integration, AI Gateway now introduces API V2 version. This version has multiple improvements and optimizations, especially in the unification of the request body and response data format.

Major Updates:

Unified request interface address to avoid frequent switching of interface addresses by developers.
Unified Request Body Format: All API requests now use a consistent JSON format, simplifying the data construction process for clients.
Standardized Response Data Structure: A unified response format helps developers quickly understand and process returned information. It includes status codes, messages, and data body, making error handling and success feedback more intuitive and clear.
Enhanced Error Handling Mechanism: Clear error code definitions facilitate problem localization and resolution. Detailed error descriptions help developers quickly take corrective actions.

We believe these improvements will greatly enhance your development efficiency and user experience of the application. Thank you for your continued support and trust. If you have any questions or feedback, please feel free to contact our technical support team (you can reach us via the feedback button in the lower right corner of the page).


Adapted LLM Interfaces

This document aims to provide developers with a detailed guide on using AI Gateway V2 to integrate various large language model (LLM) interfaces.
The currently adapted LLM interfaces are listed below
LLM
API version
Document Link
API address
Supported Inference Access Points
Baidu-QianFan
Dialogue chat v1
Baidu-QianFan
Dialogue chat v2
Refer to
Byte-Doubao
ChatCompletions - Text Dialogue
Tencent-HunYuan
HunYuan Text Generation
Optional values include hunyuan-lite, hunyuan-standard, hunyuan-standard-256K, hunyuan-pro, hunyuan-code, hunyuan-role, hunyuan-functioncall, hunyuan-vision, hunyuan-turbo, hunyuan-turbo-latest, hunyuan-large
Moonshot-KIMI
chat
Optional values include moonshot-v1-8k, moonshot-v1-32k, moonshot-v1-128k
MINIMAX
v2
Optional values include abab7-chat-preview, abab6.5s-chat, abab6.5t-chat, abab6.5g-chat, abab5.5-chat, abab5.5s-chat
Alibaba Tongyi Qianwen
OpenAI Chat
OPENAI
Dialogue chat
Please refer to the official website instructions
GEMINI
Generate text based on plain text input
Please refer to the official website instructions