Optimize Text
Optimize long text prompts into shorter, token-efficient versions.This is the main endpoint for text optimization. It accepts any text input and returns an optimized version with reduced token count.
Endpoint
Request Headers
Request Body
Example Request
Response
The API returns a JSON response with the optimized text and token reduction information.Success Response (200)
Response Fields
Code Examples
- Python
- JavaScript
- cURL
