Add Floe to your existing pipeline
What changes
You get
Option A — route just the LLM (one line)
from openai import OpenAI
# Before:
# client = OpenAI(api_key=OPENAI_API_KEY)
# After:
client = OpenAI(
api_key=FLOE_API_KEY,
base_url="https://credit-api.floelabs.xyz/v1",
)
resp = client.chat.completions.create(
model="openai/gpt-4o", # Floe routes to the provider — no provider key
messages=[{"role": "user", "content": "..."}],
)import OpenAI from "openai";
// Before: new OpenAI({ apiKey: OPENAI_API_KEY })
const client = new OpenAI({
apiKey: process.env.FLOE_API_KEY,
baseURL: "https://credit-api.floelabs.xyz/v1",
});
const resp = await client.chat.completions.create({
model: "openai/gpt-4o",
messages: [{ role: "user", content: "..." }],
});Option B — route every leg (STT + LLM + TTS on one bill)
Framework one-liners
Framework
How
Live voice (Pipecat / LiveKit): which legs land on Floe
Next
Last updated
