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

# Translate Content

> Translate Content.



## OpenAPI

````yaml POST /ai/translate
openapi: 3.1.0
info:
  title: Blog API
  version: 1.0.0
servers:
  - url: https://api.octaviatech.app/cms
    description: Production
security:
  - ApiKeyAuth: []
tags: []
paths:
  /ai/translate:
    post:
      tags:
        - AI
      summary: Translate text
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
              required:
                - text
                - targetLanguage
              properties:
                text:
                  type: string
                targetLanguage:
                  type: string
                  description: IETF code (e.g., en, es, fa…)
                  example: en
            examples:
              Basic:
                value:
                  text: text to translate
                  targetLanguage: en
      responses:
        '200':
          description: OK (translated)
          content:
            application/json:
              example:
                success: true
                statusCode: 200
                message: OK
                data:
                  content: Translated content…
                  tokens:
                    used: 140
                    remaining: 9860
                    limit: 10000
        '406':
          description: Validation failed
        '500':
          description: Failed to translate text
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````