Picking a Model

Model choice moves cost and latency more than prompt tweaks do. Match the model to the job, then measure.

JobReach forWatch out for
High-volume chat / classificationA small or "flash"-class modelQuality cliffs on long inputs
Reasoning and mathsA reasoning-tuned modelHigher latency and token cost
Code generation and refactorsA code-strong modelContext window limits on big repos
Document and PDF analysisA long-context modelCost scales with input tokens
Screenshots and diagramsA vision-capable modelImage payload limits
Tool / function callingA model with tools enabledStrict schema validation

Keep a fallback

Model ids are attached to specific model versions. On a 404 model_not_found, drop to a secondary id from your own shortlist rather than failing the user request — then alert yourself so the fallback does not become permanent.

Measure before optimising

  • Read Usage & Analytics for requests, tokens and spend per model.
  • Compare latency in the playground before committing to a swap in production.
  • Trim the prompt first: input tokens are usually the larger cost line for chat workloads.

ExosAI

ExosAI — OpenAI-compatible AI API