Skip to main content
The SDK exports a constant AVAILABLE_MODELS which contains the list of supported models. This is useful for building UIs where you want to show a dropdown of models.

Usage

import { AVAILABLE_MODELS } from "@mynthio/sdk";

// Use it to render a dropdown
AVAILABLE_MODELS.map(model => (
  // model.id is typed as ImageGenerationModelId
  <option key={model.id} value={model.id}>
    {model.label}
  </option>
));

Model Types

You can also use the MynthSDKTypes namespace to refer to model IDs in your Typescript code.
import { MynthSDKTypes } from "@mynthio/sdk";

const modelId: MynthSDKTypes.ImageGenerationModelId = "black-forest-labs/flux.1-dev";