- Updated all Anthropic API calls to use cache_control with ephemeral type
- Cache reads are 0.1x the cost of input tokens (90% savings)
- Latency reduction up to 85% on cached prompts
- Cache lasts 5 minutes, refreshed on each use
- Applied to: Basic generator, Advanced V2 generator, iterative_improve.py
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add prompt_components.py: Iterative flow with 8 components (framing, ethnicity, hair, face, eyes, body_pose, clothing, lighting)
- Add sid_zimage_prompt_generator_advanced_v2.py: Agentic flow with same components
- Fix: Added prompt_description field to framing and ethnicity schemas
- All components now consistently output prompt_description for SD prompt generation
- Tested on multiple image sets with 100% success rate, 0 parse errors, 0 empty fields
- Add iterative_improve.py: CLI tool for batch testing and prompt optimization
- Add .env.example for API key configuration
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>