---
name: "xpay-jina-deduplicate-strings"
description: "Get top-k semantically unique strings from a list using Jina embeddings and submodular optimization. Use this when you have many similar strings and want to select the most diverse subset that covers the semantic space. Perfect for removing duplicates, selecting representative samples, or finding diverse content."
version: "1.0.0"
price: "$0.01/call"
provider: "Jina AI"
---

# Deduplicate Strings

Get top-k semantically unique strings from a list using Jina embeddings and submodular optimization. Use this when you have many similar strings and want to select the most diverse subset that covers the semantic space. Perfect for removing duplicates, selecting representative samples, or finding diverse content.

**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 strings from a list using jina embeddings and submodular optimization. use this when you have many similar strings and want to select the most diverse subset that covers the semantic space. perfect for removing duplicates, selecting representative samples, or finding diverse content.. 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_strings")`
2. **`xpay_run`** — Execute: `xpay_run("jina/deduplicate_strings", { ...inputs })`

## Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `strings` | array | Yes | Array of strings to deduplicate |
| `k` | number | No | Number of unique strings 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-strings/
- Provider: https://xpay.tools/jina/
- All tools: https://xpay.tools/explore
