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

# summarization

> Summarization involves creating concise summaries of longer texts. Use cases include news summarization, document summarization, and generating abstracts



## OpenAPI

````yaml post /models/v2/ainize/bart-base-cnn
openapi: 3.0.3
info:
  title: Open Source AI Models API – Multimodal
  description: >-
    API for running open-source AI models that take text, vision, audio, and
    video as input.
  version: 1.0.0
servers:
  - url: https://api.bytez.com
    description: Production server
security: []
paths:
  /models/v2/ainize/bart-base-cnn:
    post:
      summary: summarization
      description: >-
        Summarization involves creating concise summaries of longer texts. Use
        cases include news summarization, document summarization, and generating
        abstracts
      operationId: summarization
      requestBody:
        description: Schema for summarization models
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                text:
                  type: string
                  description: The input text
                  example: >-
                    The tower is 324 metres (1,063 ft) tall, about the same
                    height as an 81-storey building, and the tallest structure
                    in Paris. Its base is square, measuring 125 metres (410 ft)
                    on each side. It was the first structure to reach a height
                    of 300 metres. Excluding transmitters, the Eiffel Tower is
                    the second tallest free-standing structure in France after
                    the Millau Viaduct.
                stream:
                  type: boolean
                  description: Enable text streaming.
              required:
                - text
      responses:
        '200':
          description: Successful summarization response.
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                  - output
                properties:
                  error:
                    type: string
                    nullable: true
                    description: Null on success; otherwise an error message.
                  output:
                    type: string
                    description: Successful response with the summary
                    example: The Eiffel Tower is the tallest structure in Paris.
        '401':
          description: Auth error - check your api key and how you're sending it.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: Unauthorized
                  output:
                    type: string
                    example: null
        '429':
          description: Too Many Requests – You have hit the rate limit.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: Rate limit exceeded
                  output:
                    type: string
                    example: null
      security:
        - apiKeyAuth: []
components:
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: |
        Set `Authorization` header to `BYTEZ_KEY` 
        ``` 'Authorization: YOUR_BYTEZ_KEY_HERE' ```

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.