The Tinq.AI rewriter is a tool that lets you summarize content fed into the API. It can be tried on our website https://tinq.ai for free.

The endpoint can summarize text content as well as URLs

Updated documentation here

Endpoint:

POST <https://tinq.ai/api/v1/summarize>

Here is a sample cURL request (summarize content):

curl -X "POST" "<http://scribe.test/api/v1/extract-article>" \\
     -H 'Content-Type: multipart/form-data; charset=utf-8' \\
     -F "api_key={YOUR_API_KEY}" \\ # (required) API key
     -F "username={YOUR_API_USERNAME}" \\ # (required) API username
     -F "text=Nash, a skinny, shaggy former member of the British group The Hollies, and Stills, a soulful, straw-haired survivor of Buffalo Springfield, knew plenty about grabbing listeners by the ear. A year earlier, they’d discovered — at Joni Mitchell’s house in California, maybe, or Cass Elliot’s, no one’s quite sure — that they could create heavenly harmonies with David Crosby, the ex-Byrds singer who wore a droopy mustache, and the amused grin of a man who was in on some cosmic joke. They released an album, Crosby, Stills & Nash, that was filled with instant classics like the soaring “Suite: Judy Blue Eyes.” Then, at the urging of Ahmet Ertegun, the owlish Atlantic Records honcho, the trio turned themselves into a quartet, adding — with some reluctance — Neil Young’s reedy voice, barbed-wire guitar playing, and unpredictability to the mix. After the four of them played in front of 400,000 swaying, stoned people at Woodstock, their own concerts started to take on the feel of what Rolling Stone described as “mini-Woodstocks” that unleashed “effortless good vibes.”" \\ # (required) text to summarize

The maximum allowed input for the summarizer varies with the plan used.

This sample request is for summarizing a link (article, ideally)

curl -X "POST" "<http://scribe.test/api/v1/extract-article>" \\
     -H 'Content-Type: multipart/form-data; charset=utf-8' \\
     -F "api_key={YOUR_API_KEY}" \\ # (required) API key
     -F "username={YOUR_API_USERNAME}" \\ # (required) API username
     -F "link=https://longreads.com/2021/06/04/zoom-town/" # (required)

Both requests (summarizing URLs or text) return results in the same output format

Output scenarios:

When everything goes well (for the request above)

HTTP code: 200 OK

{
  "summary": "If you\\u2019re not white, like 82 percent of people in Truckee, you stand out, says Grace (not her real name), who is Korean-American and moved into her longtime second home last spring before the boom.\\nNina, a director at a Silicon Valley\\u2013based AI company who asked that only her first name be used, moved to the area in October, when she bought her first home just five minutes from Heavenly Ski Resort.\\nShe recalls the time a check-out woman at a grocery store in Stateline, Nevada, gave her and her husband one look and said, \\u201cOh, you\\u2019re not going to last a winter.\\n\\u201cI\\u2019ll say, \\u2018Don\\u2019t worry, we\\u2019re not the bad tech people,\\u2019\\u201d she says.\\nWith many jobs shifting online, working from home via Zoom has meant no longer being tied to a particular place, so now, as Rachel Levin explains in her article for Outside, \\u201cyou can work for Pinterest and ski powder.\\nShe and her family moved back to San Francisco full-time by the fall: \\u201cI needed to be with my people,\\u201d she says.\\n",
  "relevant": [
    "But like other newcomers, she and her husband have sensed a little resentment.",
    "\\u201cI\\u2019ll say, \\u2018Don\\u2019t worry, we\\u2019re not the bad tech people,\\u2019\\u201d she says.",
    "Another source told me, \\u201cThere\\u2019s a lot of negative feelings about people like us.\\u201d",
    "(So did many longtime locals.",
    "Being Asian American \\u201cis like a big \\u2018Bay Area\\u2019 sign pointing at my head,\\u201d she says."
  ],
  "snippets": [
    "But like other newcomers, she and her husband have sensed a little resentment.",
    "\\u201cI\\u2019ll say, \\u2018Don\\u2019t worry, we\\u2019re not the bad tech people,\\u2019\\u201d she says.",
    "Another source told me, \\u201cThere\\u2019s a lot of negative feelings about people like us.\\u201d",
    "(So did many longtime locals.",
    "Being Asian American \\u201cis like a big \\u2018Bay Area\\u2019 sign pointing at my head,\\u201d she says."
  ],
  "errors": [],
  "success": true
}

Some error scenarios:

  1. when missing the text or the link parameter.
HTTP code: 400 Bad Request
{
  "errors": {
    "no_content": "Please enter content."
  },
  "success": false
}
  1. here the user did not provide their API credentials (they are found in the dashboard)
HTTP code: 401 Unauthorized
{
  "success": false,
  "errors": {
    "empty_api_key": "Provide an API key",
    "empty_username": "Provide a username"
  }
}