- Python
- Node.js
export REFILLAPI_KEY='sk-...'.
Other tools
Any tool with a custom “OpenAI-compatible” provider works the same way: base URLhttps://refillapi.com/v1, your API key, and an exact model ID. Many frameworks (LangChain, LlamaIndex, Vercel AI SDK, LiteLLM) read the OPENAI_BASE_URL and OPENAI_API_KEY environment variables.
Non-OpenAI fields
Model-specific fields — for examplemetadata on video requests or images on image requests — are passed with extra_body in Python and as extra properties in Node.js: