Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenAI-Compatible Node Starter

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.

Fast Path

  1. Create an account: https://originstartai.com?utm_source=github&utm_medium=repo&utm_campaign=github_secondary_repos&utm_content=openai-compatible-node-starter
  2. Get an API key from the console.
  3. Copy .env.example to .env.
  4. Set ORIGINSTARTAI_API_KEY, ORIGINSTARTAI_BASE_URL, and ORIGINSTARTAI_MODEL.
  5. Run the first call.

New user offer: recharge $5 and get $5 extra API credits.

Install

npm install

First Call

npm start

Environment

ORIGINSTARTAI_API_KEY=your_api_key_here
ORIGINSTARTAI_BASE_URL=https://your-api-base-url/v1
ORIGINSTARTAI_MODEL=your_enabled_model

Common Errors

  • 401 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.

Related

Releases

Packages

Contributors