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

  • ImageGenerationRequest
  • ImageGenerationModel
  • TaskData
  • TaskStatus
  • WebhookPayload

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 include:
  • inputs
  • mynth_magic_prompt
  • 4k
  • native_enhance_prompt
  • native_auto_size

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.