Skip to main content
POST
Shorten Prompt

Headers

Request Body

Example Request

Response

Returns a task object containing the task information.
This is the initial success response. Use the job_id to check the task status via the Get Task endpoint to retrieve the completed result with shortened prompts.

Authorizations

x-api-key
string
header
required

API key for authentication

Body

application/json
prompt
string
required

Prompt to shorten

Required string length: 1 - 8192
callback
string<uri>

Callback URL for task completion notifications

Response

Shortening task created successfully