> ## Documentation Index
> Fetch the complete documentation index at: https://docs.prismy.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Generate Translations

> Translate multiple strings from a single source language to a single target language.



## OpenAPI

````yaml POST /api/public/translate
openapi: 3.0.0
info:
  title: Prismy API
  description: API for managing translations with Prismy
  version: 1.0.0
servers:
  - url: https://app.prismy.io
    description: Production server
security:
  - bearerAuth: []
paths:
  /api/public/translate:
    post:
      tags:
        - Public API
      summary: Generate translations
      description: >-
        Translate multiple strings from a single source language to a single
        target language.
      operationId: generateTranslations
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GenerateTranslationsRequest'
      responses:
        '200':
          description: Translations generated successfully
          content:
            application/json:
              schema:
                type: array
                items:
                  type: string
                example:
                  - Bienvenue dans notre application
                  - Cliquez ici pour commencer
                  - Votre compte a été créé avec succès
        '401':
          description: Unauthorized - Invalid or missing API token
        '429':
          description: Rate limit exceeded
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    example: >-
                      You have reached the limit of AI translations for this
                      month, do not hesitate to contact us.
components:
  schemas:
    GenerateTranslationsRequest:
      type: object
      required:
        - targetLanguage
        - sourceLanguage
        - textsToTranslate
      properties:
        targetLanguage:
          type: string
          description: The language code to translate to (e.g., "fr-FR", "es-ES", "de-DE")
          example: fr-FR
        sourceLanguage:
          type: string
          description: >-
            The language code of the source text (e.g., "en-US", "fr-FR",
            "es-ES")
          example: en-US
        textsToTranslate:
          type: array
          items:
            type: string
          description: Array of text strings to translate
          example:
            - Welcome to our application
            - Click here to get started
            - Your account has been created successfully
        useOrgDescription:
          type: boolean
          default: true
          description: Use organization description for context
        useGlossary:
          type: boolean
          default: true
          description: Use organization glossary for consistent terminology
        useSimilarity:
          type: boolean
          default: true
          description: Use similarity matching for better translations
        useCustomInstructions:
          type: boolean
          default: true
          description: Use custom translation instructions
        instructionsSource:
          type: string
          default: github
          description: Source of custom instructions
        instructionsBundle:
          type: string
          default: ''
          description: Bundle name for instructions
        instructionsRepository:
          type: string
          default: ''
          description: Repository name for instructions
        additionalInstructions:
          type: string
          default: ''
          description: Additional custom instructions
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: API token from your organization settings

````