---
title: "AI-generate translation for a locale"
method: POST
path: "/admin/models/{id}/translations/{locale}/generate"
tags: ["Admin Models"]
---

# AI-generate translation for a locale

`POST /admin/models/{id}/translations/{locale}/generate`

Uses AI to translate all model text fields to the specified locale. Creates or updates the translation.

## Path parameters

- `id` string, required
- `locale` string, required

## Response `200`

Translation generated and saved successfully

---

[API](https://skmtc.dev/miaai/apis/backend-template-api.md) · [All operations](https://skmtc.dev/miaai/apis/backend-template-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/miaai/backend-template-api/revisions/2a8d88a5124f/schema)
