1. Wenxin Yiyan の API キーを取得します。
それではこのアドレス
クリックして API キーを作成します
次に、最初に postman でテストします
https://wenxin.baidu.com/moduleApi/portal/api/oauth/token
client_credentials
application/x-www-form-urlencoded
知らせ
ここでのパラメータgrant_typeは、client_credentialsが固定されていることを示しており、
Content-Type も上記のように記述します
それから
返されたコンテンツを見て、返されたデータを覚えておく必要があります。
それから訪問してください:
https://wenxin.baidu.com/moduleApi/portal/api/rest/1.0/ernie/3.0.25/zeus
{
"access_token": "24.edab0fc1353d910df8c1d