Shorten Prompt
Image Generation
Shorten
Simplify prompts to essential elements
POST
Shorten Prompt
Documentation Index
Fetch the complete documentation index at: https://docs.legnext.ai/llms.txt
Use this file to discover all available pages before exploring further.
Headers
| Header | Type | Required | Description |
|---|---|---|---|
x-api-key | string | Yes | Your API key |
Request Body
| Parameter | Type | Required | Description |
|---|---|---|---|
prompt | string | Yes | The prompt to analyze and shorten (1-8192 characters) |
callback | string | No | Callback URL for task completion notifications |
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.