Actions14
- Account Actions
- Image Actions
- Job Actions
- Video Actions
Image → Shorten
AI-generatedSummary
Shorten the provided image prompt using the Legnext API.
Inputs
- prompt (required) — Prompt text to analyze and shorten (1-8192 characters).
- callback — Optional webhook URL to receive the result when the shorten task completes.
- requestOptions — Configuration for HTTP requests, including batching, SSL verification, proxy, and timeout.
Output shape
JSON object representing the shortening result, containing the shortened URL and status.
May include optional fields; errors are returned in an envelope if the request fails.
Examples
Example 1: Shorten a simple prompt without additional settings.
Set Prompt, leave Callback empty, use default requestOptions.
Example 2: Submit a prompt and receive results via a webhook.
Set Prompt, provide Callback URL, keep default requestOptions.
Example 3: Process a batch of images with custom batching.
Set Prompt, adjust Batching → batchSize and batchInterval, optionally set Timeout.