iflytek-pdf-image-ocr

iflytek-pdf-image-ocr is a skill for Claude Code, Codex from iflytek/iFly-Skills. It costs 81 tokens per session (2,930 once invoked), scanned A, original, Apache-2.0.

An OCR tool that reads text from images and PDF documents using iFlytek's recognition service. It can return the extracted content as plain text, Word, Markdown, or JSON.

In plain words
What is it for?
Extract text from image files, convert PDFs to Word or other formats, and process PDFs provided by a public URL.
Why use it?
It removes the need to retype text from scans, screenshots, or PDFs. It also turns scanned documents into formats that are easier to edit or process.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: built for openclaw.

Good fit Extract text from image files, convert PDFs to Word or other formats, and process PDFs provided by a public URL.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/iflytek/ifly-skills/iflytek-pdf-image-ocr
Install

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.

Any agent
npx skills add iflytek/iFly-Skills --skill iflytek-pdf-image-ocr
Clone the repo
git clone --depth 1 https://github.com/iflytek/iFly-Skills

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for iflytek-pdf-image-ocr

README.md
[![agentmods](https://agentmods.dev/badge/skills/iflytek/ifly-skills/iflytek-pdf-image-ocr/github.svg)](https://agentmods.dev/skills/iflytek/ifly-skills/iflytek-pdf-image-ocr)
Your own site
<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.

agentmods 80×15 button for iflytek-pdf-image-ocr

Your own site · 80×15
<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>
Per session 81 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,930 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 10d ago against content hash 005463900075, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

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.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/image_ocr.py, scripts/pdf_ocr.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/iflytek-pdf-image-ocr/SKILL.md · 279 lines

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

Read the full file on GitHub · 279 lines

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.

Changes

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.

  1. 10d ago First seen · 279 lines · 81 tokens per session scan A 005463900075

Subscribe to this mod's changes

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.

Related

Other skills, from other repositories

pdf

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…

jim60105/copilot-prompt · 92 tokens

pdf

A set of instructions for working with PDF files, which are documents designed to preserve their layout across devices.

agentscope-ai/QwenPaw · 95 tokens

pdf

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…

agentscope-ai/QwenPaw · 92 tokens

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…

QuZhan51496/paper2anything · 120 tokens

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.

QuZhan51496/paper2anything · 122 tokens

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.

QuZhan51496/paper2anything · 143 tokens