How to Convert API Requests Between OpenAI, Anthropic Claude & Google Gemini
1. The Fragmented LLM API Ecosystem
Every major AI provider uses a distinct API schema. OpenAI uses messages: [{role, content}] with top-level tools. Anthropic Claude isolates system as a top-level string parameter and expects separate tool result blocks. Google Gemini uses contents: [{role, parts: [{text}]}].
2. Pain Points When Migrating Providers
Manually translating request JSON during multi-model evaluations causes errors:
- System Prompts: Claude rejects system roles inside the
messagesarray. - Tool Calling & Functions: OpenAI uses
function: {name, parameters}, while Claude usesinput_schema. - Assistant Turns: Handling multi-turn assistant responses and tool responses across distinct schemas.
3. Deterministic In-Browser Schema Translation
The MafLabs LLM API Converter translates requests between OpenAI, Anthropic, and Gemini with one click, preserving parameters and generating ready-to-use cURL commands.
Try the Free Tool on MafLabs
Run 100% in your browser. Fast, ad-free, and private with zero cloud data retention.
Open LLM API Converter →