Skip to content

Repository files navigation

vectorizer-ai-java

Vectorizer.AI API

  • API version: 1.0.0

  • Generator version: 7.6.0

OpenAPI 3.0 specification for the Vectorizer.AI image vectorization API. Authenticate with HTTP Basic auth, using your API Id as the username and your API Secret as the password.

For more information, please visit https://vectorizer.ai/support

Automatically generated by the OpenAPI Generator

Requirements

Building the API client library requires:

  1. Java 11+
  2. Maven/Gradle

Installation

To install the API client library to your local Maven repository, simply execute:

mvn clean install

To deploy it to a remote Maven repository instead, configure the settings of the repository and execute:

mvn clean deploy

Refer to the OSSRH Guide for more information.

Maven users

Add this dependency to your project's POM:

<dependency>
<groupId>ai.vectorizer</groupId>
<artifactId>vectorizer-ai-java</artifactId>
<version>1.0.2</version>
<scope>compile</scope>
</dependency>

Gradle users

Add this dependency to your project's build file:

compile "ai.vectorizer:vectorizer-ai-java:1.0.2"

Others

At first generate the JAR by executing:

mvn clean package

Then manually install the following JARs:

  • target/vectorizer-ai-java-1.0.2.jar
  • target/lib/*.jar

Getting Started

Please follow the installation instruction and execute the following Java code:

importai.vectorizer.invoker.*;
importai.vectorizer.model.*;
importai.vectorizer.api.AccountApi;
importai.vectorizer.api.AccountApi.*;
publicclassAccountApiExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
// Configure clients using the `defaultClient` object, such as// overriding the host and port, timeout, etc.AccountApiapiInstance = newAccountApi(defaultClient);
try {
AccountStatusResponseresult = apiInstance.getAccountStatus();
System.out.println(result);
} catch (ApiExceptione) {
System.err.println("Exception when calling AccountApi#getAccountStatus");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Documentation for API Endpoints

All URIs are relative to https://api.vectorizer.ai/api/v1

ClassMethodHTTP requestDescription
AccountApigetAccountStatusGET /accountGet account status
AccountApigetAccountStatusWithHttpInfoGET /accountGet account status
VectorizationApipostDeletePOST /deleteDelete a retained image
VectorizationApipostDeleteWithHttpInfoPOST /deleteDelete a retained image
VectorizationApipostDownloadPOST /downloadDownload a retained result
VectorizationApipostDownloadWithHttpInfoPOST /downloadDownload a retained result
VectorizationApipostVectorizePOST /vectorizeVectorize an image
VectorizationApipostVectorizeWithHttpInfoPOST /vectorizeVectorize an image

Documentation for Models

Documentation for Authorization

Authentication schemes defined for the API:

basicAuth

  • Type: HTTP basic authentication

Recommendation

It's recommended to create an instance of ApiClient per thread in a multithreaded environment to avoid any potential issues. However, the instances of the api clients created from the ApiClient are thread-safe and can be re-used.

Author

support@vectorizer.ai

About

Official Java SDK for the Vectorizer.AI image vectorization API.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages