---
name: "xpay-jina-extract-pdf"
description: "Extract figures, tables, and equations from PDF documents using layout detection. Perfect for extracting visual elements from academic papers on arXiv or any PDF URL. Returns base64-encoded images of detected elements with metadata."
version: "1.0.0"
price: "$0.01/call"
provider: "Jina AI"
---

# Extract Pdf

Extract figures, tables, and equations from PDF documents using layout detection. Perfect for extracting visual elements from academic papers on arXiv or any PDF URL. Returns base64-encoded images of detected elements with metadata.

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

## When to Use

Use this tool when you need to extract figures, tables, and equations from pdf documents using layout detection. perfect for extracting visual elements from academic papers on arxiv or any pdf url. returns base64-encoded images of detected elements with metadata.. 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/extract_pdf")`
2. **`xpay_run`** — Execute: `xpay_run("jina/extract_pdf", { ...inputs })`

## Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `id` | string | No | arXiv paper ID (e.g., '2301.12345' or 'hep-th/9901001'). Either id or url is required. |
| `max_edge` | number | No | Maximum edge size for extracted images in pixels (default: 1024) |
| `type` | string | No | Filter by float types (comma-separated): figure, table, equation. If not specified, returns all types. |
| `url` | string | No | Direct PDF URL. Either id or url is required. |

## 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/extract-pdf/
- Provider: https://xpay.tools/jina/
- All tools: https://xpay.tools/explore
