GET
/v1beta/models/{model}モデルを取得(Gemini)
Google形式のモデル1件。パスセグメント全体がモデル名となるため、gpt-6-luna:freeは1つの名前として扱われます。
認証: AuthorizationヘッダーにBearer形式のAPIキー
パスパラメーター
modelstring必須モデルのスラッグ。
レスポンス
200モデル。
レスポンス
namestringmodels/<slug>。displayNamestringsupportedGenerationMethodsarray<string>
401キーがないか無効です。
レスポンス
errorobjecterror
codeintegerHTTPステータス。
messagestringstatusstring例:
INVALID_ARGUMENT、UNAUTHENTICATED、RESOURCE_EXHAUSTED。detailsarray<object>
404このキーではこのモデルを呼び出せません。
レスポンス
errorobjecterror
codeintegerHTTPステータス。
messagestringstatusstring例:
INVALID_ARGUMENT、UNAUTHENTICATED、RESOURCE_EXHAUSTED。detailsarray<object>
リクエスト
curl https://api.experientiallabs.ai/v1beta/models/gpt-6-luna \
-H "x-goog-api-key: <YOUR_API_KEY>"
レスポンス
{
"name": "models/gpt-6-luna",
"displayName": "gpt-6-luna",
"supportedGenerationMethods": [
"generateContent",
"streamGenerateContent",
"countTokens"
]
}https://api.experientiallabs.ai/v1beta/models/gpt-6-luna