Top 3 Methods for Cost-Maximizing Prompts
Attackers craft prompts for excessively long outputs (e.g., "write a story that is 100,000 words long"), complex reasoning tasks, or continuous input overflows to force computationally expensive operations and maximize token consumption.
The top 3
- Output Token Price Multipliers: Highest Cost Models: Output tokens are consistently 3-10 times more expensive than input tokens across major LLMs. OpenAI's GPT-5.2 Pro exhibits an 8x multiplier ($21 per million input vs. $168 per million output), while Anthropic's Claude Opus 4 has a 5x multiplier ($15 per million input vs. $75 per million output), making long responses a significant cost driver.
- Chain-of-Thought's Impact on LLM Resource Consumption: Chain-of-Thought (CoT) prompting, while enhancing reasoning capabilities, significantly increases output token generation and processing costs, categorizing 'reasoning models' as the most expensive tier. For instance, DeepSeek R1 can achieve high intelligence scores at $0.01 to $0.02 per reasoning task, whereas OpenAI o3 costs $0.20 to $0.60 per task, showcasing cost variability.
- Most Exploited External Services for LLM Cost Attacks: Attackers exploit LLM API keys (LLMjacking) to trigger expensive external services like image generation (e.g., DALL-E via tools like 'de3u'), complex database queries, or external computation. This allows them to run inference at 'industrial volume' on high-cost models such as GPT-4o, Claude Opus, and Gemini Ultra, leading to substantial financial impact for victims.
Sources
Open the full topic