---
title: "POST /v3/{+parent}/models"
method: POST
path: "/v3/{+parent}/models"
tags: ["projects"]
---

# POST /v3/{+parent}/models

`POST /v3/{+parent}/models`

Creates a Model.

## Path parameters

- `parent` string, required

## Request body

- Model — A trained translation model.
  - `trainExampleCount` integer — Output only. Number of examples (sentence pairs) used to train the model.
  - `dataset` string — Required. The dataset from which the model is trained, in form of `projects/{project-number-or-id}/locations/{location_id}/datasets/{dataset_id}`
  - `createTime` string, google-datetime — Output only. Timestamp when the model resource was created, which is also when the training started.
  - `testExampleCount` integer — Output only. Number of examples (sentence pairs) used to test the model.
  - `displayName` string — The name of the model to show in the interface. The name can be up to 32 characters long and can consist only of ASCII Latin letters A-Z and a-z, underscores (_), and ASCII digits 0-9.
  - `targetLanguageCode` string — Output only. The BCP-47 language code of the target language.
  - `sourceLanguageCode` string — Output only. The BCP-47 language code of the source language.
  - `name` string — The resource name of the model, in form of `projects/{project-number-or-id}/locations/{location_id}/models/{model_id}`
  - `validateExampleCount` integer — Output only. Number of examples (sentence pairs) used to validate the model.
  - `updateTime` string, google-datetime — Output only. Timestamp when this model was last updated.

## Response `200`

Successful response

---

[API](https://skmtc.dev/google/apis/translate.md) · [All operations](https://skmtc.dev/google/apis/translate/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/google/translate/revisions/1597c11ae5de/schema)
