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

# t5-small

> Model details for t5-small. Google's text-to-text encoder-decoder, served for cheap high-volume summarization.

<Note>
  The `instructions` field is not needed for this model. Send only the text to
  summarize and read the summary from the response's output text. Inputs are
  truncated at 512 tokens, so chunk anything longer, or reach for
  [llama-3.1-8b-instruct-fast](/api-reference/models/llama-3-1-8b-instruct-fast)
  when the whole document has to land in one pass.
</Note>

> Google's T5-small introduced the text-to-text paradigm that changed how the industry thinks about NLP. At 60M parameters, it's the most versatile encoder-decoder model in its class, pre-trained on the Colossal Clean Crawled Corpus (C4) and fine-tunable for virtually any text task with minimal data. Its encoder-decoder architecture makes it especially strong at tasks that require both understanding and generation, like summarization and rewriting. A proven workhorse that's been battle-tested across millions of production deployments.

**References:** [Model card](https://huggingface.co/google-t5/t5-small) • [License](https://github.com/google-research/text-to-text-transfer-transformer/blob/main/LICENSE) • [Terms](https://zerogpu.ai/terms) • [Privacy](https://zerogpu.ai/privacy-policy)


## OpenAPI

````yaml api-reference/openapi/playgrounds/t5-small.openapi.json POST /responses
openapi: 3.1.0
info:
  title: t5-small playground
  version: '1.0'
  description: |-
    Interactive playground for **t5-small**.
    Model is always `t5-small` on this page (shown in the form, not editable).
    Authentication: `x-api-key` (required) and `x-project-id` (optional).
servers:
  - url: https://api.zerogpu.ai/v1
    description: Production
security:
  - ApiKey: []
paths:
  /responses:
    post:
      tags:
        - t5-small
      summary: 't5-small: Responses'
      operationId: createResponse_LFM2_5-1_2B-Instruct
      parameters:
        - name: x-project-id
          in: header
          required: false
          schema:
            type: string
          description: >-
            Optional project identifier. Scopes the request to a specific
            project when provided.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              allOf:
                - $ref: '#/components/schemas/CreateResponseRequest'
                - type: object
                  properties:
                    model:
                      type: string
                      const: t5-small
                      default: t5-small
                      example: t5-small
                      description: >-
                        Model identifier (fixed for this playground). Use
                        request examples to change use cases.
            examples:
              default:
                summary: Default
                value:
                  input: >-
                    NASA announced that its Artemis III mission is now scheduled
                    for late 2026, marking the first time astronauts will land
                    on the lunar surface since Apollo 17 in 1972. The mission
                    will send a crew of four to the Moon aboard the Orion
                    spacecraft, with two astronauts descending to the south pole
                    using SpaceX Starship as a lunar lander.
                  model: t5-small
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Response'
              examples:
                default:
                  summary: Default
                  value: >-
                    artemis III mission is scheduled for late 2026. astronauts
                    will descend to the moon using spaceX starship as a lunar
                    lander.
        '400':
          description: Bad request
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
        '420':
          description: Insufficient quota
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal server error
components:
  schemas:
    CreateResponseRequest:
      type: object
      required:
        - model
        - input
      properties:
        model:
          type: string
          const: t5-small
          default: t5-small
          example: t5-small
          description: Model identifier (fixed for this playground).
        input:
          type: string
          minLength: 1
          format: textarea
          maxLength: 131072
          description: >-
            The text to summarize, as a plain string. Inputs are truncated at
            512 tokens.
    Response:
      type: object
      additionalProperties: true
    ErrorResponse:
      type: object
      additionalProperties: true
  securitySchemes:
    ApiKey:
      type: apiKey
      in: header
      name: x-api-key

````