SDK integrations

Integrate SnapIt across every surface

One virtual try-on platform—consistent API keys, docs, and patterns—whether you ship on the web, iOS, Android, Flutter, or Python backends.

Flutter

iOS & Android from one codebase

Native-feeling virtual try-on for iOS and Android from one Dart codebase. Ship `SnapItTryOn` widgets next to your PDP flow and reuse the same API keys as web.

Requirements

  • Flutter 3.16+ (Dart 3.2+)
  • iOS 14+ / Android API 24+
  • Camera & photo library permissions where you capture user media
Flutter documentation
pubspec.yaml & Dart
# pubspec.yaml
dependencies:
  snapit_tryon: ^1.0.0

// lib/main.dart
import 'package:snapit_tryon/snapit_tryon.dart';

await SnapItTryOn.init(
  apiKey: 'sh_live_xxxxx',
);

Android

Kotlin & Jetpack

Kotlin-first SDK for shopping apps and custom retail clients. Initialize once in your `Application` or activity, then open the try-on UI from any product screen.

Requirements

  • Android API 24+ (Gradle 8+)
  • Kotlin 1.9+
  • Jetpack Compose or XML layouts supported
Android documentation
Gradle & Kotlin
// build.gradle.kts (app)
dependencies {
    implementation("com.snapit:snapit-tryon:1.0.0")
}

// Application.kt
import com.snapit.tryon.SnapItTryOn

SnapItTryOn.initialize(
    context = this,
    apiKey = "sh_live_xxxxx"
)

Python

Servers, notebooks & automation

Server-side or notebook workflows: batch jobs, internal tools, and pipeline automation. Pair with our REST API for generation and webhook callbacks for async results.

Requirements

  • Python 3.10+
  • Recommended: virtualenv or Poetry
  • Uses the same API keys as client SDKs (scoped by environment)
Python documentation
pip & Python
# Install
pip install snapit-tryon-sdk

# Initialize
from snapit import SnapItTryOn

client = SnapItTryOn(
    api_key="sh_live_xxxxx"
)

Swift (iOS)

Swift Package Manager

Swift Package Manager distribution for native iOS storefront apps. Lightweight module with async APIs that match our other mobile SDKs for faster team onboarding.

Requirements

  • iOS 14+
  • Xcode 15+
  • Swift 5.9+
Swift (iOS) documentation
Swift Package Manager & Swift
// Add package — Xcode → Swift Packages
// URL: github.com/snapit/tryon-swift

import SnapItTryOn

let client = SnapItTryOn(
    apiKey: "sh_live_xxxxx"
)

Web SDK

npm · JS & TS

NPM package for React, Vue, Svelte, or plain JS. Embed the try-on experience on PDPs, modals, or headless front ends—optimized bundle size and tree-shaking friendly.

Requirements

  • Evergreen browsers (Chrome, Safari, Firefox, Edge)
  • HTTPS required in production
  • Works alongside major ecommerce & headless stacks
Web SDK documentation
npm & ES modules
// Install
npm install @snapit/tryon-sdk

// Initialize
import { SnapItTryOn } from '@snapit/tryon-sdk';

SnapItTryOn.init({
  apiKey: 'sh_live_xxxxx',
});

Need a platform not listed?

We support custom rollout plans and can help your team align with internal security and release processes.

Contact us