API Examples
Base URL, authorization, and SDK examples.
OpenAI-compatible Base URL: https://www.api0hub.com/v1
Authorization: Bearer sk-your-api-keyimport OpenAI from "openai";
const client = new OpenAI({
apiKey: process.env.OPENAI_API_KEY,
baseURL: "https://www.api0hub.com/v1",
});Use the exact model name shown in the API0HUB console.