Reasoning, tools and prompt caching
Control reasoning effort, use authorized tools, enable web search and understand real prompt-cache savings.
By Apirex Team · Updated · Sources checked
On this page

Reasoning is a request setting
Keep the model ID unchanged and send a supported effort value. Chat Completions uses reasoning_effort; Responses uses reasoning: { effort }; native Messages uses the documented output configuration. Do not append -high or -max to a model ID. Higher effort can take longer and use more tokens without guaranteeing a better answer.
| Effort | Use |
|---|---|
| low | Straightforward tasks where response time matters. |
| medium | A balanced starting point for general analysis. |
| high / xhigh | Harder multi-step work on models that list these options. |
| max | Deepest supported effort; endpoint and Fast-variant restrictions apply. |
| none / minimal | Accepted only on models that explicitly list these settings; none is not a promise of zero reasoning tokens. |
Optional automatic effort
Jev Armour is a TokenRex beta feature enabled with armour: true on supported Chat Completions or Responses requests. It selects among the chosen model’s supported effort levels. It is off by default; an explicit effort wins. It does not change your chosen model or Fast variant. Check the current documentation for its availability and any extra usage.
Function tools and web search
Tools let a model request an operation from your app; your server still validates the arguments, verifies permissions and performs the action. Built-in web search is off by default and available only on supported models. Search can add its own charge and more input tokens. Gemini 4 Carbon, Hydrogen and Neon, typed decisions and media models do not offer the same chat-search capability.
Prompt caching
| Usage | Billing |
|---|---|
| Fresh input | Normal input rate for uncached tokens. |
| Cache read | The selected model’s listed cached-input rate when a real hit is reported. |
| Cache write | A separate write rate when the service reports cache creation. |
| Output | Normal output rate; output caching is not offered. |
Keep reusable instructions and reference content unchanged at the beginning, then put the new question last. Cache hits depend on the model, prefix size and lifetime; they are never guaranteed. Native Messages can mark stable content with cache_control. Read reported cached tokens or cache-creation usage rather than assuming every repeated request is discounted. Models with longer cache-write options can have different rates.
Structured data and sampling
Strict JSON Schema is preferable when your app needs fixed fields. Native Messages uses its documented output format instead of a copied Chat Completions field. Temperature, top_p, penalties, seed and output limits are model-specific. Some reasoning and search routes reject settings accepted elsewhere. A clear 400 means fix the setting, not secretly substitute a model.