AIsBreaker Client API
Introduction
The AIsBreaker Client API is the default way to access different AI services, using the AIsBreaker Server. The architecture is illustrated on the Architecture page.
To access the client API you need the following three things: Service Properties, AIsBreaker API Key and the message you want to send.
AIsBreaker Client API - with TypeScript/JavaScript
Most API functions work asynchronously. It's importand to understand async + await and to used it to make your code easier to read and to write.
Using the AIsBreaker Client API
Relevant Data Types
Important data types:
- Service Properties / ServiceProps / AIsServiceProps
- AIsBreaker API Key (AIsBreaker Access Token)
- messages:
- request/question/prompt: Request
- response/answer: Response (ResponseFinal and ResponseEvent)
All details and source code: