Zum Hauptinhalt springen

Create Multi-Document Summary Job

POST 

/summaries/multi/jobs

Start a summarization job over several documents.

Summarizes 2–20 documents (no duplicates) together in one result, in either format; format, max_words, prompt and language behave as in POST /summaries/jobs. The documents are given to the model in the order listed, each under its own header; the prompt decides how they are combined (e.g. chronologically).

Processing requirement: every document must be parsed. There is no fallback to page images: a document that could not be read, is still being processed after the wait of about 10 minutes or has no text fails the job, and error_message names its ID. Documents too long to be summarized together in a single pass fail the job with a specific error_message. All documents must belong to the API key's project, otherwise the request fails with 404.

Use the GET /summaries/jobs/{job_id} endpoint to check status and retrieve results; the result lists the document_ids in the order given. The result is not shown as a summary of any of the documents in the app.

Request​

Responses​

Summary job created successfully