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

# Summarize Content

> Summarize Content.



## OpenAPI

````yaml POST /ai/summarize
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/summarize:
    post:
      tags:
        - AI
      summary: Summarize text
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
              required:
                - text
              properties:
                text:
                  type: string
                  description: Raw text or HTML
                maxWords:
                  type: integer
                  description: Target max words
                  example: 120
            examples:
              Basic:
                value:
                  text: <p>Long HTML/text…</p>
                  maxWords: 120
      responses:
        '200':
          description: OK (summarized)
          content:
            application/json:
              example:
                success: true
                statusCode: 200
                message: Text summarized successfully
                data:
                  summary: Concise summary…
                  tokens:
                    used: 123
                    remaining: 9877
                    limit: 10000
        '406':
          description: Validation failed
        '500':
          description: Failed to summarize text
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````