02. Models & API Selection
Foundations·Chapter 02
Trade-offs among parameters, price and latency
Where this chapter fits: selection is not choosing the “strongest model” but the combination that best balances cost, latency and quality for this scenario. This chapter offers an actionable selection framework: task decomposition, candidate filtering, small-sample evaluation, routing and degradation, plus factoring compliance and rate limits into the decision.
Questions this chapter answers
- Self-hosted inference versus calling an API — where is the break-even point?
- Is one model enough, or do you need multi-model routing?
- How do constraints like rate limits, context and data boundaries get quantified into the selection?
Article index
30% off for the 2-hour window, 40% off for the 8-hour window: lose the cache and the discount is gone
The Responses API completion_window discount applies to model token rates, but prompt cache entries created inside 2h/8h windows cannot be reused by Standard requests. Priced at current gpt-6.2-sol rates, a lost prefix cache turns the advertised 40% into about 3%.
GPT-6.2 moved instructions after input: why your cache stops hitting after the upgrade
From GPT-6.2 Astra/Sol, the Responses API appends top-level instructions after input, outside every cache breakpoint, so they are billed at the uncached price on every request. This is a documented behavior change from the 2026-11-17 release, not a bug.
Topic backlog
- The selection framework: task granularity, quality bar, latency budget, cost ceiling
- Small-sample A/B evaluation: drawing usable conclusions from 50 examples
- Time-to-first-token and the streaming experience threshold (measured basis)
- Multi-model routing and degradation: when it is actually worth doing
- Total cost accounting for self-hosting open models: GPU-hours, operations and idle rate
- Data boundaries and compliance: which data cannot leave the perimeter
- Handling API changes: version pinning, regression tests and alerting