Method: tunedModels.create

Creates a tuned model. Intermediate tuning progress (if any) is accessed through the google.longrunning.Operations service.

Status and results can be accessed through the Operations service. Example: GET /v1/tunedModels/az2mb0bpw6i/operations/000-111-222

HTTP request

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

The URL uses gRPC Transcoding syntax.

Query parameters

Parameters
tunedModelId

string

Optional. The unique id for the tuned model if specified. This value should be up to 40 characters, the first character must be a letter, the last could be a letter or a number. The id must match the regular expression: a-z?.

Request body

The request body contains an instance of TunedModel.

Response body

If successful, the response body contains a newly created instance of Operation.

Authorization scopes

Requires the following OAuth scope:

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

For more information, see the Authentication Overview.