Method: tunedModels.list

Lists tuned models owned by the user.

HTTP request

GET https://generativelanguage.googleapis.com/v1beta/tunedModels

The URL uses gRPC Transcoding syntax.

Query parameters

Parameters
pageSize

integer

Optional. The maximum number of TunedModels to return (per page). The service may return fewer tuned models.

If unspecified, at most 10 tuned models will be returned. This method returns at most 1000 models per page, even if you pass a larger pageSize.

pageToken

string

Optional. A page token, received from a previous tunedModels.list call.

Provide the pageToken returned by one request as an argument to the next request to retrieve the next page.

When paginating, all other parameters provided to tunedModels.list must match the call that provided the page token.

filter

string

Optional. A filter is a full text search over the tuned model's description and display name. By default, results will not include tuned models shared with everyone.

Additional operators: - owner:me - writers:me - readers:me - readers:everyone

Examples: "owner:me" returns all tuned models to which caller has owner role "readers:me" returns all tuned models to which caller has reader role "readers:everyone" returns all tuned models that are shared with everyone

Request body

The request body must be empty.

Response body

Response from tunedModels.list containing a paginated list of Models.

If successful, the response body contains data with the following structure:

JSON representation
{
  "tunedModels": [
    {
      object (TunedModel)
    }
  ],
  "nextPageToken": string
}
Fields
tunedModels[]

object (TunedModel)

The returned Models.

nextPageToken

string

A token, which can be sent as pageToken to retrieve the next page.

If this field is omitted, there are no more pages.

Authorization scopes

Requires one of the following OAuth scopes:

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

For more information, see the Authentication Overview.