Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add iflytek/iFly-Skills --skill iflytek-pdf-image-ocrgit clone --depth 1 https://github.com/iflytek/iFly-SkillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/iflytek/ifly-skills/iflytek-pdf-image-ocr)<a href="https://agentmods.dev/skills/iflytek/ifly-skills/iflytek-pdf-image-ocr"><img src="https://agentmods.dev/badge/skills/iflytek/ifly-skills/iflytek-pdf-image-ocr/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/iflytek/ifly-skills/iflytek-pdf-image-ocr"><img src="https://agentmods.dev/badge/skills/iflytek/ifly-skills/iflytek-pdf-image-ocr.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00081 | $0.02930 |
| Opus 5 | $0.00041 | $0.01465 |
| Sonnet 5 | $0.00016 | $0.00586 |
| Haiku 4.5 | $0.00008 | $0.00293 |
Grade A, and why
iflytek-pdf-image-ocr scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 279 lines — stays where its author put it; the contents beside it link to each section on GitHub.
ifly-pdf-image-ocr
AI-powered OCR service for images and PDF documents using iFlytek's advanced recognition APIs.
Quick Start
Image OCR (LLM OCR)
# OCR an image and extract text
python3 scripts/image_ocr.py /path/to/image.jpg
# Save result to file
python3 scripts/image_ocr.py /path/to/image.jpg -o output.txt
# Specify output format
python3 scripts/image_ocr.py /path/to/image.jpg --format json
python3 scripts/image_ocr.py /path/to/image.jpg --format markdown
PDF OCR
# Convert PDF to Word (default)
python3 scripts/pdf_ocr.py document.pdf
# Convert PDF to Markdown
python3 scripts/pdf_ocr.py document.pdf --format markdown
# Convert PDF to JSON
python3 scripts/pdf_ocr.py document.pdf --format json
# From public URL
python3 scripts/pdf_ocr.py --pdf-url "https://example.com/doc.pdf" --format word
Setup
API Credentials
Get credentials from iFlytek Open Platform:
For Image OCR:
- APP_ID: Application ID
- API_KEY: API key for authentication
- API_SECRET: API secret for signing requests
For PDF OCR:
- APP_ID: Application ID
- API_SECRET: Application secret (for signature generation)
Environment Variables
# Required for both Image OCR and PDF OCR
export IFLY_APP_ID="your_app_id"
# Required for Image OCR
export IFLY_API_KEY="your_api_key"
# Required for PDF OCR
export IFLY_API_SECRET="your_api_secret"
Features
Image OCR (LLM OCR)
- AI-powered: Advanced LLM-based OCR for high accuracy
- Multi-format output: JSON, Markdown, or both
- Layout understanding: Preserves document structure
- Multi-language: Supports text extraction in multiple languages
- Image preprocessing: Automatic rotation correction, noise removal
PDF OCR
- AI-powered OCR: Advanced AI model for accurate text extraction
- Multiple output formats:
- Word (.docx) - Editable Word document
- Markdown - Plain text with formatting
- JSON - Structured data
- Large PDF support: Up to 100 pages per document
- Page-by-page results: Access individual page results
- Download URLs: Direct links to processed files
What ships with it
4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 10d ago First seen · 279 lines · 81 tokens per session scan A 005463900075
iflytek-pdf-image-ocr is a skill published in the GitHub repository iflytek/iFly-Skills (216 stars, last pushed 2d ago), licensed Apache-2.0. It adds 81 tokens to every session and 2,930 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
Use this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple PDFs into one, splitting PDFs apart, rotating pages, adding watermarks, creating new PDFs, filling PDF forms, encrypting/decrypting PDFs, extracting images, and…
A set of instructions for working with PDF files, which are documents designed to preserve their layout across devices.
Use this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple PDFs into one, splitting PDFs apart, rotating pages, adding watermarks, creating new PDFs, filling PDF forms, encrypting/decrypting PDFs, extracting images, and…
paper2slides
Turn an academic paper PDF into a presentation deck (.pptx) end-to-end. Use this skill whenever the user wants to "make slides from a paper", "generate a deck from this PDF", "make a PPT from this paper", "generate slides from a PDF document", "make a deck from a research paper", or supplies a research paper PDF and…
paper2wechat
A process for turning an academic paper PDF into a long, illustrated article for WeChat. WeChat is a Chinese messaging and publishing platform; the article explains the paper for researchers, engineers, and students.
paper2xhs
A process for turning an academic paper PDF into an illustrated multi-image post for Xiaohongshu, a Chinese social-media platform. It combines a plain-language explanation with a cover, paper figures, and tags.