Method: models.get

Gets information about a specific Model.

HTTP request

GET https://generativelanguage.googleapis.com/v1beta3/{name=models/*}

The URL uses gRPC Transcoding syntax.

For example:

curl https://generativelanguage.googleapis.com/v1beta2/models/text-bison-001?key=$PALM_API_KEY
{
  "name": "models/text-bison-001",
  "version": "001",
  "displayName": "Text Bison",
  "description": "Model targeted for text generation.",
  "inputTokenLimit": 8196,
  "outputTokenLimit": 1024,
  "supportedGenerationMethods": [
    "generateText"
  ],
  "temperature": 0.7,
  "topP": 0.95,
  "topK": 40
}

Path parameters

Parameters
name

string

Required. The resource name of the model.

This name should match a model name returned by the models.list method.

Format: models/{model}

Request body

The request body must be empty.

Response body

If successful, the response body contains an instance of Model.

Authorization scopes

Requires one of the following OAuth scopes:

  • https://www.googleapis.com/auth/generative-language
  • https://www.googleapis.com/auth/generative-language.tuning
  • https://www.googleapis.com/auth/generative-language.tuning.readonly

For more information, see the Authentication Overview.