Feature Endpoint
Paragraph Shredder
This endpoint allows you to shred or trim a long paragraph into a shorter one with the complete meaning associated.
/custom/api/content/paragraph/shredder
Headers
Input the Authorization Bearer Token to authorize your API request.
Body
This field is used as input for a paragraph that needs to be shredded.
Example: “Multi-tenancy is an architecture pattern in which a single instance of a software application serves multiple tenants (customers or users) independently, while maintaining their data and configurations isolated from one another. This approach allows multiple tenants to share resources such as compute, storage, and network infrastructure, which can lead to improved cost efficiency, ease of maintenance, and scalability for the service provider.”
Response
Indicates whether the call was successful. It prompts success if working, otherwise not.
The generated content.
This information is attached to the call and offers meaningful details when errors occur.
This field informs you about the credits consumed for this particular request. It varies on the generated content.
curl --location --request POST 'https://api-az.longshot.ai/custom/api/generate/paragraph/shredder'
--header 'Content-Type: application/json'
--header 'Authorization: Bearer <token>'
--data-raw '{
"paragraph": ""
}'
{
"copies": [
{
"content": "<Generated Shredded Paragraph>"
}
],
"status": "success",
"message": "Generated successfully",
"credits_used": "<Credits>"
}