---
title: "機械翻訳を行う"
method: POST
path: "/translate/nict"
---

# 機械翻訳を行う

`POST /translate/nict`

## Request

- Base URL: `https://tra.mimi.fd.ai/v1`
- URL: `https://tra.mimi.fd.ai/v1/translate/nict`
- Auth: none required

## Headers

- `Authorization` string, required
- `Content-Type` string

## Request body `application/x-www-form-urlencoded`

- object
  - `text` string, required: 機械翻訳の入力テキスト（UTF-8）。上限 1000 文字。
  - `source_lang` string, required: 入力言語。翻訳元の言語。当ページの項目 "対応言語" から対象の言語を選択して、その言語コードを指定する。
  - `target_lang` string, required: 出力言語。翻訳先の言語。当ページの項目 "対応言語" から対象の言語を選択して、その言語コードを指定する。 <br> ※ `source_lang` と異なる言語を指定してください。

## Response `200`

200

- string[]

## Other responses

- `400`: 400
- `401`: 401
- `429`: 429

---

[API](https://skmtc.dev/fd/apis/translation-nict-api.md) - [All operations](https://skmtc.dev/fd/apis/translation-nict-api/llms.txt) - [OpenAPI document](https://skmtc.dev/fd/apis/translation-nict-api/revisions/16ef8943649d?raw)
