Skip to main content

Summarize

POST 

https://api.aleph-alpha.com/summarize

deprecated

This endpoint has been deprecated and may be replaced or removed in future versions of the API.

Will summarize a document using a specific model. This interface is deprecated and will be removed in a later version. New methodologies for processing Summarization tasks will be provided before this is removed.

Request

Responses

OK

Authorization: http

name: tokentype: httpscheme: bearerdescription: Can be generated in your [Aleph Alpha profile](https://app.aleph-alpha.com/profile)
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://api.aleph-alpha.com/summarize");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Authorization", "Bearer <TOKEN>");
var content = new StringContent("{\n \"model\": \"luminous-extended\",\n \"document\": {\n \"text\": \"Some people like pizze more than burgers. Other people don't. But we all love food.\"\n }\n}", null, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Request Collapse all
Base URL
https://api.aleph-alpha.com
Auth
Parameters
— query
Body required
{
  "model": "luminous-extended",
  "document": {
    "text": "Some people like pizze more than burgers. Other people don't. But we all love food."
  }
}
ResponseClear

Click the Send API Request button above and see the response here!