Quickstart

This guide will get you all set up and ready to use the Protocol API. We'll cover how to get started using one of our API clients and how to make your first API request. We'll also look at where to go next to find all the information you need to take full advantage of our powerful REST API.

Download and install ⚡Edgen


⚡ Download

Choose your client

Before making your first API request, you need to pick which API client you will use. ⚡Edgen offers clients for Python and Node.js. In the following example, you can see how to install each client.

# cURL is most likely already installed on your machine. If not, install it
curl --version

Making your first API request

You are ready to make your first call to the ⚡Edgen API. Below, you can see how to send a GET request to the chat completions endpoint to create a chat response, given an list of input chat messages.

Request

POST
/v1/chat/completions
curl http://localhost:33322/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer no-key-required" \
-d '{
  "model": "default",
  "messages": [
    {
      "role": "system",
      "content": "You are EdgenChat, a helpful AI assistant."
    },
    {
      "role": "user",
      "content": "Hello!"
    }
  ],
  "stream": true
}'