---
title: "Summarize file content"
method: POST
path: "/ai/summarize"
tags: ["Chat"]
---

# Summarize file content

`POST /ai/summarize`

Generate a summary of a file's contents. 

 Supports the following text formats: 
- PDF, HTML, txt, json, csv

 Supports the following media formats (billed for both the transcription and summary): 
- flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, or webm
- Up to 100 MB

## Request body

- SummaryRequest
  - `bucket` string, required — The name of the bucket that contains the file to be summarized.
  - `filename` string, required — The name of the file to be summarized.
  - `system_prompt` string — A system prompt to guide the summary generation.

## Response `200`

Successful Response

- SummaryResponseData
  - `data` SummaryResponse, required
    - `summary` string, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/team-telnyx/apis/telnyx-api.md) · [All operations](https://skmtc.net/team-telnyx/apis/telnyx-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/team-telnyx/telnyx-api/revisions/e32d46c5945b/schema)
