The decision to test
Self-hosting brings responsibility for capacity, updates and monitoring. An API endpoint can reduce that work, but its processing and service terms still matter. Compare accepted outputs before comparing token rates.
Three criteria for this comparison
- Quality and correction cost on the same task
- Operational ownership and data flow
- Total deployment or hosted usage cost
Run a fair comparison
Use the same representative inputs and a written answer rubric. Pin the model version and record the endpoint, thinking configuration, quantization when known, context length, output allowance and concurrency. Preserve native request differences in an adapter rather than silently dropping fields.
Measure full request time, error rate and reported usage. For tools, validate arguments and score the result after execution. For images, preserve resolution and preprocessing. A valid response format alone does not establish a correct answer.
Compare cost per accepted result
Calculate input cost plus all billed output, including reasoning where the provider counts it. Add retries and discarded answers. Divide the total by the number of results that pass your quality criteria. Keep API usage cost separate from deployment and engineering cost.
Estimate token costs with the API calculator →