Cookbook
Cookbook
Runnable cURL and Node.js examples for the NineTwo's public API.
The examples in this section target the NineTwo's public API and the documented compatibility subset.
Examples
Example environment
export NINETWOS_API_KEY="ntw_replace_with_your_project_api_key"
export NINETWOS_BASE_URL="https://api.ninetwos.com/v1"
export NINETWOS_MODEL="zuv-0.5"
export NINETWOS_MAX_COMPLETION_TOKENS="256" # example request value, not a limitDiscover output/context limits from GET /v1/models instead of hardcoding
them. These examples do not assert full OpenAI parity or support for
unlisted endpoints.