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
Building the API client library requires:
- Java 11+
- Maven/Gradle
To install the API client library to your local Maven repository, simply execute:
mvn clean installTo deploy it to a remote Maven repository instead, configure the settings of the repository and execute:
mvn clean deployRefer to the OSSRH Guide for more information.
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>Add this dependency to your project's build file:
compile "ai.vectorizer:vectorizer-ai-java:1.0.2"At first generate the JAR by executing:
mvn clean packageThen manually install the following JARs:
target/vectorizer-ai-java-1.0.2.jartarget/lib/*.jar
Please follow the installation instruction and execute the following Java code:
import ai.vectorizer.invoker.*;
import ai.vectorizer.model.*;
import ai.vectorizer.api.AccountApi;
import ai.vectorizer.api.AccountApi.*;
public class AccountApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure clients using the `defaultClient` object, such as
// overriding the host and port, timeout, etc.
AccountApi apiInstance = new AccountApi(defaultClient);
try {
AccountStatusResponse result = apiInstance.getAccountStatus();
System.out.println(result);
} catch (ApiException e) {
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();
}
}
}All URIs are relative to https://api.vectorizer.ai/api/v1
| Class | Method | HTTP request | Description |
|---|---|---|---|
| AccountApi | getAccountStatus | GET /account | Get account status |
| AccountApi | getAccountStatusWithHttpInfo | GET /account | Get account status |
| VectorizationApi | postDelete | POST /delete | Delete a retained image |
| VectorizationApi | postDeleteWithHttpInfo | POST /delete | Delete a retained image |
| VectorizationApi | postDownload | POST /download | Download a retained result |
| VectorizationApi | postDownloadWithHttpInfo | POST /download | Download a retained result |
| VectorizationApi | postVectorize | POST /vectorize | Vectorize an image |
| VectorizationApi | postVectorizeWithHttpInfo | POST /vectorize | Vectorize an image |
Authentication schemes defined for the API:
- Type: HTTP basic authentication
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.