Changelog

20 entries

Improvement

APIBreaking

Pick the output format for generated images

Ask for png, jpg, or webp and the result tells you what you got.

output.format on POST /image/generate now decides the encoding. Pass png, jpg, or webp and Mynth converts the image before delivering it. Leave it out and you get whatever the provider returned.

{
  "model": "black-forest-labs/flux.2-pro",
  "prompt": "A futuristic cityscape at sunset with flying cars",
  "output": { "format": "webp" }
}

Every successful image in the result now carries a format field, so you can read what was actually delivered instead of inferring it from the URL.

Two fields went away. output.quality is gone, and each format encodes at its own default. Per-image cost is gone from the result as well, so read the task-level cost instead.

Results also report magic_prompt again when magic prompt rewrites your prompt. It had been dropped from the payload.

Feature

API, SDK, CLIsdk 0.0.36

Image review and alt text

Score generated images for quality issues and produce descriptive alt text, from the API, SDK, and CLI.

Two new image analysis calls. review scores an image for quality issues, and alt writes short, descriptive alt text. Both work on any image, whether Mynth generated it or not.

import Mynth from "@mynthio/sdk";

const mynth = new Mynth();

const review = await mynth.image.review({ url: "https://..." });
const { alt } = await mynth.image.alt({ url: "https://..." });

Both are CLI commands too, mynth image review and mynth image alt. The SDK also ships webhook helpers for Next.js and TanStack Start.

Improvement

SDK, CLIsdk 0.0.34Breaking

Rate and alt take a single image

The rate and alt APIs are simplified to one image per call.

mynth.image.rate and mynth.image.alt now take a single image instead of a batch. Calls that passed an array must make one call per image. The batched form is gone from the SDK and the CLI.

Feature

CLIcli 0.0.18

Destinations and webhooks in the CLI

Manage storage destinations and webhooks without leaving the terminal.

mynth destination and mynth webhook create, list, inspect, and remove both kinds of record from the terminal. Destinations are the storage targets Mynth delivers generated media to.

Feature

CLIcli 0.0.17

Balance and cost estimates in the CLI

Check your account balance and the exact cost of a request before sending it.

mynth balance prints your account balance. Generation commands can estimate the flat, published cost of a request before it runs. The CLI also exits with a distinct code per failure kind, so scripts and agents can branch on what went wrong.