Minimal Node.js starter for running a first OpenAI-compatible API call with OriginStartAI.
Use this repo when you want to confirm your API key, base URL, model name, and response shape before moving a prompt into a production workflow.
- Create an account: https://originstartai.com?utm_source=github&utm_medium=repo&utm_campaign=github_secondary_repos&utm_content=openai-compatible-node-starter
- Get an API key from the console.
- Copy
.env.exampleto.env. - Set
ORIGINSTARTAI_API_KEY,ORIGINSTARTAI_BASE_URL, andORIGINSTARTAI_MODEL. - Run the first call.
New user offer: recharge $5 and get $5 extra API credits.
npm installnpm startORIGINSTARTAI_API_KEY=your_api_key_here
ORIGINSTARTAI_BASE_URL=https://your-api-base-url/v1
ORIGINSTARTAI_MODEL=your_enabled_model401 Unauthorized: check your API key.model not found: check that the model is enabled for your account.insufficient credits: recharge in the console before more tests.timeout: retry with a smaller prompt and explicit timeout handling.