All posts Engineering

OpenRouter, models, and why phrasing feels “smart”

5 min read
Jump to section

VocatAI does not hardcode a single vendor SDK on the phone. Instead, the backend centralizes model access through OpenRouter so you can swap models with configuration rather than app releases.

Strict JSON responses

The OpenRouter service asks the model to return structured fields the API can parse reliably. That reduces fragile string trimming and makes it easier to attach detected language metadata when the user leaves source on auto.

Headers and attribution

OpenRouter expects provider-friendly referer and title headers. The backend sets these from configuration so usage dashboards stay legible for operators.

Product voice

If translations feel too formal, adjust prompt text server-side or choose a model known for conversational tone—avoid hacking around it only in the client.