> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mynth.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Ideogram Remove Background

> Remove an image background with the Mynth SDK or REST API.

```text Model ID theme={"theme":"kanagawa-dragon"}
ideogram/remove-background
```

See pricing & more on [mynth.io](https://mynth.io/models/ideogram%2Fremove-background).

<CodeGroup>
  ```ts Mynth SDK theme={"theme":"kanagawa-dragon"}
  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);
  ```

  ```bash REST API theme={"theme":"kanagawa-dragon"}
  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" }
        }
      ]
    }'
  ```
</CodeGroup>
