Skip to main content
Model ID
ideogram/remove-background
See pricing & more on mynth.io.
import Mynth from "@mynthio/sdk";

const mynth = new Mynth();

const task = await mynth.image.generate({
  prompt: "",
  model: "ideogram/remove-background",
  inputs: [
    {
      type: "image",
      as: "source",
      source: { type: "url", url: "https://example.com/product.jpg" },
    },
  ],
});

console.log(task.urls);
curl https://api.mynth.io/image/generate \
  -X POST \
  -H "Authorization: Bearer $MYNTH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "",
    "model": "ideogram/remove-background",
    "inputs": [
      {
        "type": "image",
        "as": "source",
        "source": { "type": "url", "url": "https://example.com/product.jpg" }
      }
    ]
  }'