Feature Endpoint
Paragraph from Keywords
This endpoint allows you to generate a paragraph from suggested keywords.
POST
/custom/api/generate/paragraph/keywords
Headers
Authorizationrequired
string
Input the Authorization Bearer Token to authorize your API request.
Body
keywordsrequired
string
This field is used as an input for keywords separated by commas to generate relevant paragraphs.
Example: “Mumbai, floods, cyclone, weather, report”
Response
status
string
Indicates whether the call was successful. It prompts success if working, otherwise not.
copies
object
The generated content.
message
string
This information is attached to the call and offers meaningful details when errors occur.
credits_used
number
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/keywords'
--header 'Content-Type: application/json'
--header 'Authorization: Bearer <token>'
--data-raw '{
"keywords": ""
}'
{
"copies": [
{
"content": "<Generated Paragraph>"
}
],
"status": "success",
"message": "Generated successfully",
"credits_used": "<Credits>"
}