Java-based client library for RealEngine AI API.
- Java 11 or newer
- API token from the RealEngine AI Dashboard.
Add the following dependency to your pom.xml file:
<dependency>
<groupId>ai.realengine</groupId>
<artifactId>realengine</artifactId>
<version>1.0.0</version>
</dependency>
Add the following dependency to your build.gradle file:
implementation 'ai.realengine:realengine:1.0.0'
Here's a simple example of how to use the client:
RealEngineAIClient client = RealEngineAIClient.newBuilder()
.setToken("PASTE YOUR TOKEN HERE")
.build();
CompletableFuture<String> caption = client.getCaption("http://link.to/image.jpg")
This library includes the RealEngineAIException class for error handling. This custom exception includes a unique error ID that can be used to identify the error by RealEngine AI support team.
Contributions are welcome!
This project is licensed under the terms of the MIT license. See the License file for details.