import OpenAI from "openai";const client = new OpenAI({ baseURL: "https://api.inquantum.ai/v1", apiKey: process.env.PLANCK_API_KEY,});const response = await client.responses.create({ model: "gpt-4o-mini", input: "Say hello in one sentence.",});
import osfrom openai import OpenAIclient = OpenAI( base_url="https://api.inquantum.ai/v1", api_key=os.environ.get("PLANCK_API_KEY"),)response = client.responses.create( model="gpt-4o-mini", input="Say hello in one sentence.",)
This request schema applies when using the Planck AI Gateway with pass‑through billing (credits). In BYOK mode, the standard OpenAI Responses API schema is allowed. The schema is defined based on fields that are stable across all provider-model mappings.Learn more about pass‑through billing vs BYOK.
import OpenAI from "openai";const client = new OpenAI({ baseURL: "https://api.inquantum.ai/v1", apiKey: process.env.PLANCK_API_KEY,});const response = await client.responses.create({ model: "gpt-4o-mini", input: "Say hello in one sentence.",});
import osfrom openai import OpenAIclient = OpenAI( base_url="https://api.inquantum.ai/v1", api_key=os.environ.get("PLANCK_API_KEY"),)response = client.responses.create( model="gpt-4o-mini", input="Say hello in one sentence.",)
This endpoint uses the shared AI Gateway error envelope. See the
Error Handling & Fallback guide for
response examples, retry rules, fallback behavior, and streaming errors.