OpenAI-Compatible API Quickstart in Python, JavaScript, and PowerShell

VectorEngine2 pts0 comments

GitHub - Vector-Compute-Engine/api-quickstart: Quickstart examples for the official OpenAI-compatible API · GitHub

/" data-turbo-transient="true" />

Skip to content

Search/

Sign in<br>Sign upAppearance settings

You signed in with another tab or window. Reload to refresh your session.<br>You signed out in another tab or window. Reload to refresh your session.<br>You switched accounts on another tab or window. Reload to refresh your session.

Dismiss alert

{{ message }}

Uh oh!

There was an error while loading. Please reload this page.

Vector-Compute-Engine

api-quickstart

Public

Notifications<br>You must be signed in to change notification settings

Fork

Star

main

BranchesTags

Go to file

CodeOpen more actions menu

Folders and files<br>NameNameLast commit message<br>Last commit date<br>Latest commit

History<br>4 Commits<br>4 Commits

docs

docs

examples

examples

.env.example

.env.example

.gitignore

.gitignore

CHANGELOG.md

CHANGELOG.md

LICENSE

LICENSE

README.md

README.md

SECURITY.md

SECURITY.md

requirements.txt

requirements.txt

View all files

Repository files navigation

VectorNode API Quickstart

This repository shows how to make your first OpenAI-compatible API request through VectorNode.

1. Create an account

Register at:

https://www.vectronode.com/register

2. Create an API key

Sign in to the VectorNode console and create an API key.

Never publish your complete API key in GitHub, screenshots, articles, or Discord.

3. Install the example

Open PowerShell in the project folder and run:

py -m venv .venv<br>.\.venv\Scripts\python.exe -m pip install -r requirements.txt<br>Copy-Item .env.example .env

4. Configure the API key

Open the .env file and replace YOUR_API_KEY with your own API key.

Example:

API_KEY=YOUR_API_KEY<br>BASE_URL=https://www.vectronode.com/v1<br>MODEL=gpt-4o

Replace gpt-4o if it is not available in your VectorNode account. Use a model name shown in the current model list or console.

Do not put your real API key in .env.example.

5. Run the Python example

Run:

.\.venv\Scripts\python.exe examples\python\chat.py

A successful request prints a model response in PowerShell.

More examples

PowerShell request

JavaScript example

Frequently asked questions

Troubleshooting

Security policy

Common errors

401: Check whether the API key is correct and active.

model_not_found: Select a model currently available in your account.

429: Wait and try again, or check the account balance and rate limits.

Timeout: Check the network and try again later.

Documentation

https://o1kqetbjmk.apifox.cn

Support

https://www.vectronode.com/customersupport

Never share your password, verification code, payment details, or complete API key.

About<br>Quickstart examples for the official OpenAI-compatible API<br>Resources<br>Readme<br>MIT license<br>Security policy<br>Security policy<br>Activity<br>Custom properties<br>Stars<br>0 stars<br>Watchers<br>0 watching<br>Forks<br>0 forks<br>Report repository

Releases

Packages

Used by

Contributors

You can’t perform that action at this time.

example quickstart examples python security model

Related Articles