🧪 Claude API Working Example
📊 Testing with Haiku (fast) model
==================================================
URL: https://www.rust-lang.org/
✅ Success in 8.5s
Title: Rust Programming Language
Description: Rust is a systems programming language that focuses on performance, reliability, and productivity, enabling developers to build fast, safe, and efficient software across various domains.
Main Topics:
• Performance
• Memory Safety
• Compile-time Guarantees
• Command Line Tools
• WebAssembly
• Networking
• Embedded Systems
• Cross-platform Development
📊 Testing with Sonnet (balanced) model
==================================================
URL: https://www.rust-lang.org/
✅ Success in 6.0s
Title: The Rust Programming Language
Description: Rust is a systems programming language focused on performance, reliability, and productivity. It offers memory-safety, thread-safety, and excellent tooling with no runtime or garbage collector.
Main Topics:
• Performance
• Reliability
• Productivity
• Command Line Development
• WebAssembly
• Web Development
• Networking
• Embedded Systems
• Documentation
• Community Contribution
📊 Testing with Opus (powerful) model
==================================================
URL: https://www.rust-lang.org/
✅ Success in 8.8s
Title: Rust Programming Language
Description: Rust is a systems programming language that is blazingly fast, memory-efficient, and guarantees memory-safety and thread-safety. It features no runtime or garbage collector, has great documentation and tooling, and is suitable for various domains from embedded systems to web services.
Main Topics:
• Performance and memory efficiency
• Memory and thread safety
• Developer productivity and tooling
• Command line applications
• WebAssembly development
• Web application development
• Network services
• Embedded systems programming
• Community and contributions
• Documentation and learning resources
• Corporate adoption and support
📝 Summary:
• Use the correct model names (check claude-code-api source)
• Haiku models are fastest but may have limitations
• Sonnet provides good balance of speed and capability
• Opus is most capable but slowest