Skip to content

Overview

The UAI Brain Server is a REST API that handles generating and augmenting media.

Why A Server?

We utilize a server to handle the heavy lifting of generating and augmenting media. This allows us to use the server to generate media on a remote machine, and then download the media to our local machine. This is useful for when we want to generate media on a machine with a GPU, but we want to use the media on a machine without a GPU. This also leads to faster generation times since the front-end applications don't need to re-initialize the AI models every time they want to generate or augment media.

Basic Usage

Any application can send a POST request to the server with specific json data to generate or augment media. The server will then respond with a JSON object containing the generated media as a Base64 string along with any other metadata and generated data.

Base64

A Base64 string is a string that represents binary data in an ASCII string format. This allows us to send binary data over the internet as a string. The server will respond with a Base64 string of the generated media, which can then be decoded into binary data , then texture or audio data for further use.