@mynthio/tanstack-ai-adapter package lets you use Mynth as an image provider through TanStack AI’s generateImage API.
Usage
Image inputs (image-to-image)
Models that support image inputs accept TanStack AI’s content-part prompts, so you can interleave instruction text with reference images. The adapter maps the image parts onto Mynth’sinputs:
MYNTH_IMAGE_INPUT_MODELS accept image parts; passing them to a text-only model is a compile-time error. For finer-grained input intents (person, garment, pose, style, …), pass modelOptions.inputs with an explicit as.