---
name: "xpay-jina-deduplicate-images"
description: "Get top-k semantically unique images (URLs or base64-encoded) using Jina CLIP v2 embeddings and submodular optimization. Use this when you have many visually similar images and want the most diverse subset."
version: "1.0.0"
price: "$0.01/call"
provider: "Jina AI"
---

# Deduplicate Images

Get top-k semantically unique images (URLs or base64-encoded) using Jina CLIP v2 embeddings and submodular optimization. Use this when you have many visually similar images and want the most diverse subset.

**Provider:** Jina AI
**Price:** $0.01/call
**Pricing model:** Flat rate per call

## When to Use

Use this tool when you need to get top-k semantically unique images (urls or base64-encoded) using jina clip v2 embeddings and submodular optimization. use this when you have many visually similar images and want the most diverse subset.. This is part of the Jina AI provider on xpay✦.

## MCP Connection

Connect to xpay✦ to access this tool (and 19+ others):

```json
{
  "mcpServers": {
    "xpay": {
      "url": "https://mcp.xpay.sh/mcp?key=YOUR_API_KEY"
    }
  }
}
```

For Claude Code:
```bash
claude mcp add --transport http xpay "https://mcp.xpay.sh/mcp?key=YOUR_API_KEY"
```

## How to Execute

Use the xpay✦ meta-tools to run this tool:

1. **`xpay_details`** — Get full input schema: `xpay_details("jina/deduplicate_images")`
2. **`xpay_run`** — Execute: `xpay_run("jina/deduplicate_images", { ...inputs })`

## Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `images` | array | Yes | Array of image inputs to deduplicate. Each item can be either an HTTP(S) URL or a raw base64-encoded image string (without data URI prefix). |
| `k` | number | No | Number of unique images to return. If not provided, automatically finds optimal k by looking at diminishing return |

## Pricing

- **Cost:** $0.01/call
- **Balance check:** Use `xpay_balance` to check remaining credits
- Get your API key at [xpay.tools](https://xpay.tools/account/settings/api-keys/) — $5 free credits included

## Related Skills

- [Jina AI (all tools)](https://xpay.tools/skills/jina/SKILL.md) — 20 tools
- [Show Api Key](https://xpay.tools/skills/jina/show-api-key/SKILL.md) — $0.01/call
- [Primer](https://xpay.tools/skills/jina/primer/SKILL.md) — $0.01/call
- [Guess Datetime Url](https://xpay.tools/skills/jina/guess-datetime-url/SKILL.md) — $0.01/call
- [Capture Screenshot Url](https://xpay.tools/skills/jina/capture-screenshot-url/SKILL.md) — $0.01/call
- [Read Url](https://xpay.tools/skills/jina/read-url/SKILL.md) — $0.01/call

## Links

- Tool page: https://xpay.tools/jina/deduplicate-images/
- Provider: https://xpay.tools/jina/
- All tools: https://xpay.tools/explore
