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:- Python
- JavaScript
- cURL
Response Format
The API returns a JSON response with the following structure:message: The optimized version of your input texttokens_reduced: Number of tokens saved by the optimization
