Skip to main content
The SDK exports request and result types through MynthSDKTypes.

Import SDK types

import type { MynthSDKTypes } from "@mynthio/sdk";

const request: MynthSDKTypes.ImageGenerationRequest = {
  prompt: "Minimalist poster for a jazz festival",
  model: "google/gemini-3.1-flash-image",
};

Useful exported types

These types are members of the MynthSDKTypes namespace — access them as MynthSDKTypes.<Name> (they are not re-exported as top-level names):
  • MynthSDKTypes.ImageGenerationRequest
  • MynthSDKTypes.ImageGenerationModel
  • MynthSDKTypes.TaskData
  • MynthSDKTypes.TaskStatus
  • MynthSDKTypes.WebhookPayload
The model metadata types are exported directly:
import type { AvailableModel, ModelCapability } from "@mynthio/sdk";

Runtime model metadata

The SDK also exports AVAILABLE_MODELS.
import { AVAILABLE_MODELS } from "@mynthio/sdk";

const supportsInputs = AVAILABLE_MODELS.find(
  (model) => model.id === "google/gemini-3.1-flash-image",
)?.capabilities.includes("inputs");
Capability strings (ModelCapability) include:
  • inputs
  • mynth_magic_prompt
  • negative_prompt
  • 4k
  • native_enhance_prompt

Where to browse models

For human-facing model discovery, use mynth.io/models. For application logic, use AVAILABLE_MODELS and set the model explicitly in production flows.