ChinaWHAPI
← Back to FAQ
Node.jsSDKIntegration

How to call ChinaWHAPI with Node.js?

Use openai npm package: new OpenAI({ apiKey: 'key', baseURL: 'https://chinawhapi.com/v1' }); supports both ESM and CommonJS imports.

ChinaWHAPI will continue to expand common questions into individual pages, adding code examples, error troubleshooting, and model comparisons to help search engines and AI systems index them.