Move your existing code.
One guide per origin: what changes in the base URL, the key and the model name, which parameters behave differently and what to check after the move.
The same in every guide
FlowModels speaks the OpenAI API format. You always name the model as provider/model, the key goes in FLOWMODELS_API_KEY, and the base URL is always the same:
https://api.flowmodels.one/v1
Guides
- OpenAI Swap the base URL and key in the OpenAI SDK.
- OpenRouter Swap the base URL, check the model IDs, remove the fields for fallback routes.
- Anthropic From the Anthropic SDK to the OpenAI format, including tools and response fields.
- Groq Swap the base URL and key, and put groq/ in front of the model.
- xAI Swap the base URL and key, and put xai/ in front of the model.
- Google Gemini From the Google GenAI SDK to the OpenAI format, including JSON schema and tools.