Skip to content

Getting started

Getting your API key

To get started, you'll need an API key. At the moment new sign-ups are closed, so you will have to join the waitlist to get your API key. Once you've signed up, you can find your API key in the console. You'll need to include this API key in all of your API requests as a header. In the near future, we'll also release a Python SDK that will make it easier to use the API.

Making your first API call

Now that you have your API key, you can make your first API call. The API is a REST API, so you can use any HTTP client to make requests. For example, you can use curl to make a request to the API:

Curl

curl -H "Authorization: Bearer YOUR_TOKEN" https://api.squaredev.io/v1/models/chat

Python

import requests

headers = {
    'Authorization': 'Bearer YOUR_TOKEN',
}

response = requests.get('https://api.squaredev.io/v1/models/chat', headers=headers)

print(response.json())

Javascript

fetch("https://api.squaredev.io/v1/models/chat", {
  headers: {
    Authorization: "Bearer YOUR_TOKEN",
  },
})
  .then((response) => response.json())
  .then((data) => console.log(data))
  .catch((error) => console.error("Error:", error));

Getting help

If you have any questions or need help, please reach out to us in LinkedIn or Twitter. We're always happy to help!