About this endpoint
What it does
Starts an async text-summarization job. You submit the content and optional processing instructions, and the response returns identifiers you can use to check the job status later.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| content | String | Yes | Provide the content to summarize. |
| context | String | No | Additional processing instructions for the content. |
| language | String | No | Specify the language of the output, defaults to English. |
| max_length | Number | No | Specify the maximum length of the summary in words. For example: 100. |
| voice_tone | String | No | Specify the voice tone of the output. It can be adjectives like funny or joyous, or even the name of a famous writer. |
Response
Returns a JSON object with required job_id and status_url string fields. job_id is the job identifier, and status_url is the URL used to check the submitted job status.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| job_id | String | Yes | Job identifier. |
| status_url | String | Yes | URL used to check the submitted job status. |
Notes
This endpoint kicks off an async job and returns immediately with a job identifier; the actual work runs in the background. Pair this call with the corresponding job_check endpoint — poll that until the status reaches a terminal state to retrieve the result. Extract the job id from job_id.