Before you run the examples
SetAPIONE_API_KEY and APIONE_MODEL using the quickstart. Copy the model ID from the available model list. Missing variables stop the examples instead of falling back to a fixed model.
Do not put the full
/chat/completions endpoint in the SDK base URL. The SDK appends the endpoint path.
Python
Install the dependency:app.py:
python app.py. Successful text output is in choices[0].message.content; usage helps track tokens. Check the console for final charges.
Node.js
Install the dependency:app.mjs:
node app.mjs. Use a Node.js version supported by the SDK and pin dependencies in your project.

