POST /v1/summarize
This API is marked as "Legacy" and is no longer maintained. Follow the [migration guide](https://docs.cohere.com/docs/migrating-from-cogenerate-to-cochat) to start using the Chat API. Generates a summary in English for a given text.Servers
- https://api.cohere.com
Request headers
Name | Type | Required | Description |
---|---|---|---|
Content-Type |
String | Yes |
The media type of the request body.
Default value: "application/json" |
X-Client-Name |
String | No |
The name of the project that is making the request. |
Request body fields
Name | Type | Required | Description |
---|---|---|---|
extractiveness |
String | No |
One of Possible values:
Default value: "low" |
format |
String | No |
One of Possible values:
Default value: "paragraph" |
additional_command |
String | No |
A free-form instruction for modifying how the summaries get generated. Should complete the sentence "Generate a summary _". Eg. "focusing on the next steps" or "written by Yoda" |
text |
String | Yes |
The text to generate a summary for. Can be up to 100,000 characters long. Currently the only supported language is English. |
length |
String | No |
One of Possible values:
Default value: "medium" |
temperature |
Number | No |
Ranges from 0 to 5. Controls the randomness of the output. Lower values tend to generate more “predictable” output, while higher values tend to generate more “creative” output. The sweet spot is typically between 0 and 1. Default value: 0.3 |
model |
String | No |
The identifier of the model to generate the summary with. Currently available models are |
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.