Pricing & cost
Read what a call cost
Header
What it is
const res = await fetch("https://credit-api.floelabs.xyz/v1/chat/completions", {
method: "POST",
headers: { Authorization: `Bearer ${FLOE_API_KEY}`, "Content-Type": "application/json" },
body: JSON.stringify({ model: "openai/gpt-4o", messages }),
});
const cost = res.headers.get("X-Floe-Payment-Amount"); // "0.0125"import httpx
res = httpx.post(
"https://credit-api.floelabs.xyz/v1/chat/completions",
headers={"Authorization": f"Bearer {FLOE_API_KEY}"},
json={"model": "openai/gpt-4o", "messages": messages},
)
cost = res.headers["X-Floe-Payment-Amount"] # "0.0125"Price a call before you make it
What each vendor costs
Next
Last updated
