ideogram/remove-background
See pricing & more on mynth.io.
Capabilities
| |
|---|
| Modes | Image-to-image |
| Inputs | 1 source image |
| Native auto size | Yes |
| Magic prompt | Supported |
Requires exactly one source image. Returns a transparent cutout.
Generate
import Mynth from "@mynthio/sdk";
const mynth = new Mynth();
const task = await mynth.image.generate({
prompt: "Remove the background",
model: "ideogram/remove-background",
inputs: [
{
type: "image",
as: "source",
source: { type: "url", url: "https://example.com/photo.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": "Remove the background",
"model": "ideogram/remove-background",
"inputs": [
{
"type": "image",
"as": "source",
"source": { "type": "url", "url": "https://example.com/photo.jpg" }
}
]
}'
Auto size
This model supports native auto size. Output size matches the source image.
size: "auto";
// or
size: {
type: "auto";
}
See Control size.