Skip to main content

Basic Usage

After setting your API key, you can optimize prompts easily. Here’s a quick example showing how to optimize a prompt and inspect additional metadata returned by the API:

Response Format

The API returns a JSON response with the following structure:
Where:
  • message: The optimized version of your input text
  • tokens_reduced: Number of tokens saved by the optimization

Advanced Usage

For more complex scenarios and direct REST API calls, see the API Reference section.