v52

OpenAPI 3.1.0raw.githubusercontent.com2026-07-311,1941,9384.1 MB
Chat

Summarize file content

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
post/ai/summarize

Request body

bucketstring required

The name of the bucket that contains the file to be summarized.

filenamestring required

The name of the file to be summarized.

system_promptstring

A system prompt to guide the summary generation.

Response

Successful Response