Why UniRoute keeps native API formats
Understand native protocol passthrough, parameter fidelity, and options for API format conversion.
Why does UniRoute keep provider protocols rather than convert every model into an OpenAI-compatible format? This guide explains the design.
Main reasons
1. Provider parameters differ substantially
Each AI provider has its own parameters and features. Forcing them into a single format can mean:
- Dropping parameters: features that the target format does not support may be ignored.
- Adding parameters: compatibility may require default values that were not in the original request.
- Changing behavior: the same request may produce different results after conversion.
2. CLI tools have specific requirements
For example, Gemini CLI uses predefined system prompts in its CLI workflow. Converting a native CLI request into a standard API format can constrain parts of those prompts and change model behavior.
The flow becomes: native CLI request → conversion layer → standard API format → constrained system prompts → changed model behavior.
Consequences can include:
- Model capabilities that are not fully represented.
- Unusual behavior that is difficult to explain.
- Difficulty telling whether an issue comes from the model or the conversion layer.
3. Advanced users need precise control
Developers who use AI extensively need control over the exact parameters they send.
Format conversion can introduce:
- Imprecise mappings for temperature, top-p, and similar parameters.
- Advanced model-specific parameters that cannot be passed through.
- Changes to streaming chunk formats.
- Differences in token counting.
These details may not be obvious in everyday use, but they can matter greatly when you need to tune a model precisely.
Community conversion options
If you need a unified API format, the community provides open-source projects dedicated to conversion.
New API
New API is an API management and conversion platform with:
- Format conversion for multiple models.
- Conversion logs.
- Custom conversion rules.
- Open source code that makes issues easier to trace.
One API
One API is another option with:
- Central management of multiple API channels.
- Load balancing.
- Quota management.
Using a dedicated conversion project lets you control the conversion logic, inspect logs, adjust parameter mappings, and trace problems when they occur.
UniRoute's design
Preserve the provider's native API experience.The goal of native passthrough is to preserve:
- Parameters without losing or rewriting them for a common format.
- The provider's response format.
- Original error messages for troubleshooting.
- Access to new features without waiting for a conversion layer to map them.
The intended flow is: your request → UniRoute → provider API → provider response returned in its original format.
Summary
UniRoute uses native passthrough because:
- Professional users need precise control: conversion limitations should not remove parameters they need.
- Troubleshooting is simpler: there is no format conversion layer adding another possible source of changed behavior.
- Specialist tools already exist: if you need format conversion, dedicated community projects provide that functionality.
The platform's aim is to preserve each model's native API format and behavior.
Related guides
- CLI and API differences — why interfaces and prices can differ for the same model.
- API endpoints and connectivity — choose the correct endpoint for your client.
