ModernMT API

ModernMT API as documented publicly: 20 operations. Contract generated from the documentation by API Evangelist (2026-10-27); not the provider's own document.

Operations 20

POST / POST / #
GET /context-vector The context vector is the object which leverages ModernMT adaptation during the translation. #
POST /documents/to Process #
GET /documents/upload-url Request Upload URL #
GET /memories This endpoint allows to retrieve a list of your memories. #
POST /memories Create new memory. #
DELETE /memories/{id} Delete a memory. #
GET /memories/{id} This endpoint allows to retrieve the metadata of a memory. #
PUT /memories/{id} Update memory metadata. #
POST /memories/{id}/content Add content to a memory. #
GET /modernmt GET /modernmt #
GET /qe Estimate Quality #
POST /qe Batch Estimate #
GET /translate Translate text. #
GET /translate/batch Batch translation request. #
GET /translate/detect Allows to detect the language of an input text or a list of texts. #
GET /translate/languages Gives the list of supported language codes ( ISO 639-1 ) for translation. #
GET /translate/qe Allows to evaluate the quality of a translation or a list of translations. #
POST /v2/auth/ Getting a Token (Access Key Flow) #
POST /v2/auth/refresh Refreshing an Expired Token #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/modernmt:modernmt-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

modernmt-openapi-generated.yml Raw ↑
openapi: 3.1.0
info:
  title: ModernMT API
  version: '2026-10-27'
  description: 'GENERATED FROM DOCUMENTATION by API Evangelist on 2026-10-27: 20 operation(s) read from 3 public documentation page(s) (each operation
    names its page in x-source). This is not the provider''s published contract; ModernMT has published no machine-readable contract that the
    pipeline could find. Engine: local.'
  x-evidence-tiers:
    code-example: 2
    documentation: 18
    pages-with-code: 1
    pages-read: 3
  x-generated-from: documentation
  x-provenance: generated
  x-authored-by: API Evangelist
  x-generated: '2026-10-27'
  x-generator: generate-contract-from-docs.py
  x-engine: local
  x-sources:
  - https://api.modernmt.com
  - https://developers.laratranslate.com/docs/switch-from-modernmt
  - https://developers.laratranslate.com/docs/switch-from-modernmt.md
paths:
  /:
    post:
      operationId: post
      tags:
      - Api
      summary: POST /
      x-source: https://api.modernmt.com
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostRequest'
      responses:
        '201':
          description: Success (shape read from the example response on the page)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostResponse'
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl -X POST  -H \"Content-Type: application/json\"  -H \"MMT-ApiKey: YOUR_API_KEY\"  -H \"x-idempotency-key: b7f04ab3-68d6-47c0-8eea-0743a710b620\"\
          \  --data '{\"source\":\"en\", \"target\":\"it\", \"q\":\"Hello world.\",\n \"webhook\":\"https://example.com\", \"metadata\": {\"timestamp\"\
          :1676023422231}}'  \"https://api.modernmt.com/translate/batch\" "
  /context-vector:
    get:
      operationId: get_context_vector
      tags:
      - Context Vector
      summary: The context vector is the object which leverages ModernMT adaptation during the translation.
      x-source: https://api.modernmt.com
      parameters:
      - name: source
        in: query
        required: true
        schema:
          type: string
        description: Source language code.
      - name: targets
        in: query
        required: true
        schema:
          type: string
        description: Target language codes.
      - name: content
        in: query
        required: false
        schema:
          type: string
        description: File to be analyzed.
      - name: text
        in: query
        required: false
        schema:
          type: string
        description: Text to be analyzed.
      - name: hints
        in: query
        required: false
        schema:
          type: string
        description: Hints for the context vector.
      - name: limit
        in: query
        required: false
        schema:
          type: string
        description: Maximum number of memories.
      - name: compression
        in: query
        required: false
        schema:
          type: string
        description: Compression algorithm.
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetContextVectorResponse'
      x-evidence:
        kind: documentation
  /documents/to:
    post:
      operationId: post_documents_to
      tags:
      - Documents
      summary: Process
      x-source: https://developers.laratranslate.com/docs/switch-from-modernmt
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /documents/upload-url:
    get:
      operationId: get_documents_upload_url
      tags:
      - Documents
      summary: Request Upload URL
      x-source: https://developers.laratranslate.com/docs/switch-from-modernmt
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /memories:
    get:
      operationId: get_memories
      tags:
      - Memories
      summary: This endpoint allows to retrieve a list of your memories.
      x-source: https://api.modernmt.com
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetMemoriesResponse'
      x-evidence:
        kind: documentation
    post:
      operationId: post_memories
      tags:
      - Memories
      summary: Create new memory.
      x-source: https://api.modernmt.com
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostMemoriesRequest'
      responses:
        '201':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostMemoriesResponse'
      x-evidence:
        kind: documentation
  /memories/{id}:
    delete:
      operationId: delete_memories_id
      tags:
      - Memories
      summary: Delete a memory.
      x-source: https://api.modernmt.com
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteMemoriesIdResponse'
      x-evidence:
        kind: documentation
    get:
      operationId: get_memories_id
      tags:
      - Memories
      summary: This endpoint allows to retrieve the metadata of a memory.
      x-source: https://api.modernmt.com
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetMemoriesIdResponse'
      x-evidence:
        kind: documentation
    put:
      operationId: put_memories_id
      tags:
      - Memories
      summary: Update memory metadata.
      x-source: https://api.modernmt.com
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PutMemoriesIdRequest'
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PutMemoriesIdResponse'
      x-evidence:
        kind: documentation
  /memories/{id}/content:
    post:
      operationId: post_memories_id_content
      tags:
      - Memories
      summary: Add content to a memory.
      x-source: https://api.modernmt.com
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostMemoriesIdContentRequest'
      responses:
        '201':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostMemoriesIdContentResponse'
      x-evidence:
        kind: documentation
  /modernmt:
    get:
      operationId: get_modernmt
      tags:
      - Modernmt
      summary: GET /modernmt
      x-source: https://api.modernmt.com
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl \n Node.js \n Python \n Go \n Java \n .NET \n PHP \n By default, the documentation demonstrates using cURL to interact\
          \ with the API over HTTPS. Select one of our official client libraries to see examples in code. \n npm i modernmt # or yarn add # browser\
          \ <script src=\"https://unpkg.com/modernmt\"></script> \n pip3 install modernmt \n go get github.com/modernmt/modernmt-go "
  /qe:
    get:
      operationId: get_qe
      tags:
      - Qe
      summary: Estimate Quality
      x-source: https://developers.laratranslate.com/docs/switch-from-modernmt
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
    post:
      operationId: post_qe
      tags:
      - Qe
      summary: Batch Estimate
      x-source: https://developers.laratranslate.com/docs/switch-from-modernmt
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /translate:
    get:
      operationId: get_translate
      tags:
      - Translate
      summary: Translate text.
      x-source: https://api.modernmt.com
      parameters:
      - name: source
        in: query
        required: true
        schema:
          type: string
        description: Source language code.
      - name: target
        in: query
        required: true
        schema:
          type: string
        description: Target language code.
      - name: q
        in: query
        required: true
        schema:
          type: string
        description: Text to translate.
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetTranslateResponse'
      x-evidence:
        kind: documentation
  /translate/batch:
    get:
      operationId: get_translate_batch
      tags:
      - Translate
      summary: Batch translation request.
      x-source: https://api.modernmt.com
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetTranslateBatchResponse'
      x-evidence:
        kind: documentation
  /translate/detect:
    get:
      operationId: get_translate_detect
      tags:
      - Translate
      summary: Allows to detect the language of an input text or a list of texts.
      x-source: https://api.modernmt.com
      parameters:
      - name: q
        in: query
        required: true
        schema:
          type: string
        description: The input text or an array of texts.
      - name: format
        in: query
        required: false
        schema:
          type: string
        description: The input text format.
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetTranslateDetectResponse'
      x-evidence:
        kind: documentation
  /translate/languages:
    get:
      operationId: get_translate_languages
      tags:
      - Translate
      summary: Gives the list of supported language codes ( ISO 639-1 ) for translation.
      x-source: https://api.modernmt.com
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetTranslateLanguagesResponse'
      x-evidence:
        kind: documentation
  /translate/qe:
    get:
      operationId: get_translate_qe
      tags:
      - Translate
      summary: Allows to evaluate the quality of a translation or a list of translations.
      x-source: https://api.modernmt.com
      parameters:
      - name: source
        in: query
        required: true
        schema:
          type: string
        description: Source language code.
      - name: target
        in: query
        required: true
        schema:
          type: string
        description: Target language code.
      - name: sentence
        in: query
        required: true
        schema:
          type: string
        description: Input sentence or array of sentences.
      - name: translation
        in: query
        required: true
        schema:
          type: string
        description: Translation or array of translations.
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetTranslateQeResponse'
      x-evidence:
        kind: documentation
  /v2/auth/:
    post:
      operationId: post_v2_auth
      tags:
      - Auth
      summary: Getting a Token (Access Key Flow)
      description: Send a POST to `/v2/auth/` with your Access Key ID in the body and an HMAC‑SHA256 signature in the `Authorization` header.
        Returns a JWT token and a refresh token in the `X-Lara-Refresh-Token` response header.
      x-source: https://developers.laratranslate.com/docs/switch-from-modernmt.md
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostV2AuthRequest'
      responses:
        '201':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostV2AuthResponse'
      x-evidence:
        kind: documentation
  /v2/auth/refresh:
    post:
      operationId: post_v2_auth_refresh
      tags:
      - Auth
      summary: Refreshing an Expired Token
      x-source: https://developers.laratranslate.com/docs/switch-from-modernmt
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
components:
  schemas:
    PostRequest:
      type: object
      properties:
        source:
          type: string
        target:
          type: string
        q:
          type: string
        webhook:
          type: string
        metadata:
          type: object
          properties:
            timestamp:
              type: integer
    PostResponse:
      type: object
      properties:
        status:
          type: integer
        data:
          type: object
          properties:
            enqueued:
              type: boolean
    GetContextVectorResponse:
      type: object
      properties:
        status:
          type: integer
          description: HTTP status code.
        data:
          type: object
          description: Contains source and vectors per target.
    GetMemoriesResponse:
      type: object
      properties:
        status:
          type: integer
          description: HTTP status code.
        data:
          type: array
          description: Array of memory metadata.
    PostMemoriesRequest:
      type: object
      properties:
        name:
          type: string
          description: Name of the memory.
      required:
      - name
    PostMemoriesResponse:
      type: object
      properties:
        status:
          type: integer
          description: HTTP status code.
        data:
          type: object
          description: Created memory metadata.
    DeleteMemoriesIdResponse:
      type: object
      properties:
        status:
          type: integer
          description: HTTP status code.
    GetMemoriesIdResponse:
      type: object
      properties:
        status:
          type: integer
          description: HTTP status code.
        data:
          type: object
          description: Memory metadata.
    PutMemoriesIdRequest:
      type: object
      properties:
        name:
          type: string
          description: New name.
        description:
          type: string
          description: New description.
    PutMemoriesIdResponse:
      type: object
      properties:
        status:
          type: integer
          description: HTTP status code.
        data:
          type: object
          description: Updated memory metadata.
    PostMemoriesIdContentRequest:
      type: object
      properties:
        content:
          type: string
          description: Content to add (e.g., sentences).
      required:
      - content
    PostMemoriesIdContentResponse:
      type: object
      properties:
        status:
          type: integer
          description: HTTP status code.
        data:
          type: object
          description: Result of content addition.
    GetTranslateResponse:
      type: object
      properties:
        status:
          type: integer
          description: HTTP status code.
        data:
          type: object
          description: Contains translation, billedCharacters, characters.
    GetTranslateBatchResponse:
      type: object
      properties:
        status:
          type: integer
          description: HTTP status code.
        data:
          type: object
          description: Enqueued batch translation info.
    GetTranslateDetectResponse:
      type: object
      properties:
        status:
          type: integer
          description: HTTP status code.
        data:
          type: object
          description: Detected language info (detectedLanguage, billedCharacters).
    GetTranslateLanguagesResponse:
      type: object
      properties:
        data:
          type: array
          description: Array of supported language codes.
        status:
          type: integer
          description: HTTP status code.
    GetTranslateQeResponse:
      type: object
      properties:
        status:
          type: integer
          description: HTTP status code.
        data:
          type: object
          description: Quality score(s).
    PostV2AuthRequest:
      type: object
      properties:
        id:
          type: string
          description: Access Key ID
      required:
      - id
    PostV2AuthResponse:
      type: object
      properties:
        token:
          type: string
          description: JWT access token
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: MMT-ApiKey
security:
- apiKey: []
tags:
- name: Api
- name: Auth
- name: Context Vector
- name: Documents
- name: Memories
- name: Modernmt
- name: Qe
- name: Translate