What is Prompt Optimization?

Prompt optimization allows you to customize and refine the system prompts used by your AI models. With Requesty’s prompt optimization feature, you can:

  • View and edit system prompts directly in the UI
  • Prepend additional instructions to existing prompts
  • Completely replace default system prompts
  • Reduce token usage by up to 90% with specialized optimizations

How It Works

  1. Go to Manage API and select the Features tab
  2. Find the System Prompt section
  3. Choose to either prepend instructions or replace the entire prompt
  4. Save your changes and start using your optimized prompts immediately

Benefits

  • Cost Savings: Reduce token usage by up to 90% for certain tasks
  • Better Control: Fine-tune AI behavior without changing your code
  • Consistent Responses: Ensure all your AI tools follow the same guidelines
  • Faster Development: Test different prompts without code changes

Example Use Cases

Token Reduction:

  • Without Optimization: ~28k input tokens (11¢)
  • With Optimization: ~9k input tokens (3¢)

Role Specification:

You are a coding tutor focusing on Python. Only give short code examples.

Specialized Instructions:

Ignore all instructions except for counting to 10.

Video Tutorial

When replacing the default system prompt entirely, make sure your new prompt includes all necessary instructions for your use case. Missing critical instructions may result in unexpected AI behavior.