New: Cookbooks and AI ExplanationsStep-by-Step recipes to solve problems connected to Roadmaps and Cheat Sheets. Need more details? Use AI buttons for structured and simple explanations with concrete examples throughout the whole platform.Take a look
Every provider has its own client, its own request shape, and its own error format, and I'm tired of writing the same logic three times.
What you'll have at the end
A single function that takes a prompt and a provider name and returns the same reply shape for OpenAI, Claude, and Gemini.
You need
A script that already sends a plain prompt to at least one of OpenAI, Claude, or Gemini and gets text back.
Not covered
This builds one call, one tool, one result, and one final answer; it doesn't build the multi-turn loop that keeps calling tools back and forth until the model is done, which is its own recipe once you need it.
Leans on
Checked 15 Aug 2026
Part of the LLM APIs and Integration cookbook