logo
Feature Endpoint
Text Extender
POST

/custom/api/generate/extend/content

Headers

Authorizationrequired
string

Input the Authorization Bearer Token to authorize your API request.

Body

textrequired
string

This field inputs content you want to extend.

Example: “Mumbai is in the tropics, which means that it is very close to the equator and receives a lot of rainfall throughout the year. The city's drainage network is inadequate, exacerbating the flooding from tropical cyclones.”

Response

status
string

Indicates whether the call was successful. It prompts success if working, otherwise not.

copies
object

The generated content.

text
string

This is the input text provided to the text extender.

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/extend/content'             
--header 'Content-Type: application/json'             
--header 'Authorization: Bearer <token>'             
--data-raw '{
    "text": ""
}'                   
{
  "copies": [
    {
      "content": "<Generated Content>"
    }
  ],
  "status": "success",
  "message": "copies generated successfully",
  "credits_used": "<Credits>"
}