API how-to guides: cost & configuration

Step-by-step guides for the configuration and cost-control tasks that the official docs bury — focused on the Claude and OpenAI APIs, verified against current documentation, with the trade-offs and gotchas spelled out.

Cost & billing

Streaming responses

Tool use & function calling

Multimodal & vision

Audio & speech

Batch processing & async

Token counting

Hitting errors instead? See our API error fixes.