All topics and tags

Anthropic

3 articles tagged Anthropic.

  1. 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.

    AI engineering9 min read
  2. 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.

    AI & automation8 min read
  3. 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.

    AI engineering9 min read