Skip to content

RealEngineAI/java-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RealEngine AI Java SDK

License

Java-based client library for RealEngine AI API.

Prerequisites

Installation

Maven

Add the following dependency to your pom.xml file:

<dependency>
    <groupId>ai.realengine</groupId>
    <artifactId>realengine</artifactId>
    <version>1.0.0</version>
</dependency>

Gradle

Add the following dependency to your build.gradle file:

implementation 'ai.realengine:realengine:1.0.0'

Usage

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")

Exception Handling

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.

Contributing

Contributions are welcome!

License

This project is licensed under the terms of the MIT license. See the License file for details.