Anthropic
3 articles tagged Anthropic.
Claude Message Batches API: Cut Bulk Job Costs in Python
Run large asynchronous Claude jobs at 50 percent of standard API prices with the Message Batches API: Python create, poll and results code, limits and fixes.
Claude API Pricing: How to Estimate Token Costs for a Business Workflow
Estimate Claude API costs before you build. Covers per-million-token pricing, caching and batch discounts, counting tokens for free, and a worked monthly cost example.
Claude Structured Outputs: Get Valid JSON from the API in Python
Use output_config with a JSON schema, or messages.parse with Pydantic, to get schema-valid JSON from Claude in Python, plus the schema limits and failure cases to handle.