SDKs and Libraries

Integrate with the Hautech API using our official SDKs, widgets, and Terraform provider.

JS SDK

The JavaScript SDK simplifies interactions with the Hautech API from web or Node.js applications.

Installation

npm install @hautechai/sdk

Basic usage example

import { createSDK } from '@hautechai/sdk';

const sdk = createSDK({ authToken: () => accountToken });

const generation = await sdk.operations.wait(
  await sdk.operations.run.haute.naomi.v1({
    input: {
      prompt: form.prompt,
      category: form.category,
      garmentImageId: form.inputImage,
      poseId: form.pose,
      seed,
      width: 832,
      height: 1200,
    },
  }),
);

Widgets

Embed Hautech functionality directly in your website with our widget library.

Installation

npm install @hautechai/widgets

Terraform provider

Manage Hautech resources with infrastructure as code.

Usage example

terraform {
  required_providers {
    hautechai = {
      source = "HautechAI/hautechai"
      version = "~> 1.0"
    }
  }
}

provider "hautechai" {
  # Configuration options
}