Skip to main content
Use the Rei Core SDK to call a Unit from your service. The API quickstart documents HTTP endpoints and authentication.

Install

JavaScript

Python

Constructor

Initialize the SDK with the Unit API key for the agent you want to call.

JavaScript

Python

Functions

Get Agent

Retrieve the agent details:

JavaScript

Python

Chat Completions

Send a message in a chat completion request:

JavaScript

Python

Request examples

Get the Latest Biology Research

Get the Latest News

Request handling

State the topic and time period needed for the task. A request for current information requires access to the relevant source data. Handle request errors in the calling application:

Common Issues

  • Connection failure: Check network access to the API hostname used by the client.
  • Invalid API key: Check the Unit key and its activation status.
  • Timeout: Inspect the request and any tool calls involved, then adjust the application’s timeout if needed.