JavaScript SDK
Use Yelu AI API with the official OpenAI JavaScript SDK in Node.js for chat, responses, and streaming.
The official OpenAI JavaScript and TypeScript SDK works with Yelu by changing the API key and base URL. Use it in trusted server-side runtimes, not client-side browser bundles.
See the Streaming example, Function calling guide, and Errors for complete integration patterns.
Last modified on July 13, 2026