Skip to main content

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

Error Responses

400 Bad Request

401 Unauthorized

429 Rate Limit Exceeded

500 Internal Server Error