> ## 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.

# Generate Article Title

> Generate Article Title.



## OpenAPI

````yaml POST /ai/generateTitle
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/generateTitle:
    post:
      tags:
        - AI
      summary: Generate a title from text
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
              required:
                - text
              properties:
                text:
                  type: string
                  description: Base text/article
                maxChars:
                  type: integer
                  description: Hard cap on title length
                  example: 60
            examples:
              Basic:
                value:
                  text: Article content about…
                  maxChars: 60
      responses:
        '200':
          description: OK (title)
          content:
            application/json:
              example:
                success: true
                statusCode: 200
                message: OK
                data:
                  title: Catchy, concise title
                  tokens:
                    used: 80
                    remaining: 9920
                    limit: 10000
        '406':
          description: Validation failed
        '500':
          description: Failed to generate title
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````