
Client for a home-design AI API enabling space retrieval, image upload, and order submission (including AI item removal and masks), with configurable HTTP client and async-friendly calls.
Kotlin client for AI Home Design API with multiplatform and coroutines capabilities.
build.gradle file:repositories {
mavenCentral()
}
dependencies {
implementation "org.souhub.aihomedesign:aihomedesign-client:0.1.0"
runtimeOnly "io.ktor:ktor-client-okhttp:3.0.3" // choose an engine from https://ktor.io/docs/http-client-engines.html
}In multiplatform projects, add aihomedesign client dependency to commonMain, and choose an engine for each target.
Gradle is required for multiplatform support, but there's nothing stopping you from using the jvm client in a Maven project. You still need to add to your dependencies one of Ktor's engines.
<dependencies>
<dependency>
<groupId>org.souhub.aihomedesign</groupId>
<artifactId>aihomedesign-client-jvm</artifactId>
<version>0.1.0</version>
</dependency>
<dependency>
<groupId>io.ktor</groupId>
<artifactId>ktor-client-okhttp-jvm</artifactId>
<version>3.0.3</version>
<scope>runtime</scope>
</dependency>
</dependencies>Create an instance of AIHomeDesign client:
val aiHomeDesign = AIHomeDesign(
apiKey = "your-api-key"
)Or you can create an instance of AIHomeDesign using a pre-configured AIHomeDesignConfig:
val config = AIHomeDesignConfig(
apiKey = apiKey,
timeout = 60.seconds,
// additional configurations...
)
val aiHomeDesign = AIHomeDesign(config)Use your AIHomeDesign instance to make API requests.
AI Home Design Kotlin API Client is an open-sourced software licensed under the MIT license. This is an unofficial library, it is not affiliated with nor endorsed by AI Home Design. Contributions are welcome.
Kotlin client for AI Home Design API with multiplatform and coroutines capabilities.
build.gradle file:repositories {
mavenCentral()
}
dependencies {
implementation "org.souhub.aihomedesign:aihomedesign-client:0.1.0"
runtimeOnly "io.ktor:ktor-client-okhttp:3.0.3" // choose an engine from https://ktor.io/docs/http-client-engines.html
}In multiplatform projects, add aihomedesign client dependency to commonMain, and choose an engine for each target.
Gradle is required for multiplatform support, but there's nothing stopping you from using the jvm client in a Maven project. You still need to add to your dependencies one of Ktor's engines.
<dependencies>
<dependency>
<groupId>org.souhub.aihomedesign</groupId>
<artifactId>aihomedesign-client-jvm</artifactId>
<version>0.1.0</version>
</dependency>
<dependency>
<groupId>io.ktor</groupId>
<artifactId>ktor-client-okhttp-jvm</artifactId>
<version>3.0.3</version>
<scope>runtime</scope>
</dependency>
</dependencies>Create an instance of AIHomeDesign client:
val aiHomeDesign = AIHomeDesign(
apiKey = "your-api-key"
)Or you can create an instance of AIHomeDesign using a pre-configured AIHomeDesignConfig:
val config = AIHomeDesignConfig(
apiKey = apiKey,
timeout = 60.seconds,
// additional configurations...
)
val aiHomeDesign = AIHomeDesign(config)Use your AIHomeDesign instance to make API requests.
AI Home Design Kotlin API Client is an open-sourced software licensed under the MIT license. This is an unofficial library, it is not affiliated with nor endorsed by AI Home Design. Contributions are welcome.