Feature

API, SDK, CLI

Creativity levels for Magic Prompt (beta)

magic_prompt now takes a creativity level, in beta, so a short prompt can come back as a more inventive image.

magic_prompt: true rewrites your prompt faithfully. Send an object instead to let the rewrite go further: "balanced" adds grounded variety, and "high" explores wider creative angles. "none" is the faithful rewrite, and it is the default.

const task = await mynth.image.generate({
  model: "black-forest-labs/flux-1-schnell",
  prompt: "a flower",
  magic_prompt: { creativity: "high" },
});

Requests with input images always get the faithful rewrite. If a creative rewrite fails, the task falls back to the faithful one. Creativity is in beta and free during the beta. @mynthio/sdk 0.0.57 types the object, and @mynthio/cli 0.0.28 adds --magic-prompt-creativity. See enhance prompts.