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

Updated documentation here

Endpoint:

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

Here is a sample cURL request:

curl -X "POST" "<https://tinq.ai/api/v1/rewrite>" \\
     -H 'Content-Type: multipart/form-data; charset=utf-8;' \\
     -F "api_key={YOUR_API_KEY}" \\ #required
     -F "username={YOUR_USERNAME}" \\ #required
     -F "text=Artificial intelligence (AI) is intelligence demonstrated by machines, unlike the natural intelligence displayed by humans and animals, which involves consciousness and emotionality. The distinction between the former and the latter categories is often revealed by the acronym chosen." \\ # required
     -F "changes_level=10" \\ # (optional) accepted: 10, 20, 30 (default: 10)
     -F "lang=en" # (optional) accepted: en, fr, pt, es (default: en)

Note:

Output scenarios:

When everything goes well (for the request above)

HTTP code: 200 OK
{
  "paraphrases": "Artificial intelligence (AI) is the intelligence displayed by machines, which is different from the natural intelligence displayed by humans and animals, which involve consciousness and emotion. The difference between the former and the latter category is usually revealed by the acronym chosen.",
  "errors": [],
	"original": "Artificial intelligence (AI) is intelligence demonstrated by machines, unlike the natural intelligence displayed by humans and animals, which involves consciousness and emotionality. The distinction between the former and the latter categories is often revealed by the acronym chosen."
	"lang": "en"
  "success": true
}

Some error scenarios:

  1. here user did not give any argument for the content to rewrite
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"
  }
}

<aside> 💡 Thoughts, comments, concerns? Please reach out to us via Twitter @tinq_ai or via email [email protected]

</aside>