Skip to content

vivian254338489/tken-node-openai-compatible-cookbook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TKEN Node OpenAI-Compatible Cookbook

Node.js examples for one OpenAI-compatible API base URL, low-cost routes, and premium escalation.

Default low-cost route: free-model Premium route: premium-gpt

Default API base:

https://www.tken.shop/v1

Get an API key:

https://www.tken.shop/?utm_source=github&utm_medium=readme&utm_campaign=tken_node_openai_compatible_cookbook

Quick Start

npm install
npm run demo

Examples

File Purpose
examples/chat.mjs Basic chat completion request
examples/server-route.mjs Minimal local API route
examples/route-selector.mjs Low-cost default and premium escalation
examples/retry-policy.mjs Fetch retry pattern

Disclosure

This project is TKEN-related tooling. It is not affiliated with OpenAI, Anthropic, ChatGPT, Claude, Codex, or OpenClaw.

About

Node.js examples for OpenAI-compatible AI API calls, route selection, and retries.

Topics

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors