AI Parse

A skill for parsing PDF files using Large Language Models.

Capabilities

Trial Mode Instructions

Trial Mode: No registration required. Perfect for testing and small PDF files.

Parameters

Parameter Type Required Description
pdf_path string required Path to the PDF file to process
result_path string required Path to save the parsing result
format string required Output format: "json" or "md"
task_id_path string required Path to save task ID information (JSON format)
--task-id string optional Existing task ID to resume processing

Usage Examples

Normal Upload Mode

python handler.py <pdf_path> <result_path> <format> <task_id_path>

Resume from Existing Task or Check Status

python handler.py --task-id <task_id> <result_path> <format>
Limitations: Trial mode has page limits. Visit https://api.pinocch.com/index to register for additional credits.

Authenticated Mode Instructions

Authenticated Mode: Get more credits and advanced features by registering.

Getting Started

To use this skill with authentication, you need to register and obtain your API token:

  1. Register an account at https://api.pinocch.com/index
  2. Navigate to the My Profile page
  3. Generate your API token (see screenshot below)
  4. Create a file named secret.txt in the skill directory with the following format:
username: <your username>
secret: <your token>

Token Generation Screenshot:

Token generation in My Profile page

Parameters

Parameter Type Required Description
username string required Username for authentication
secret string required Secret token for authentication
pdf_path string required Path to the PDF file to process
result_path string required Path to save the parsing result
format string required Output format: "json" or "md"
task_id_path string required Path to save task ID information (JSON format)
--task-id string optional Existing task ID to resume processing

Usage Examples

Normal Upload Mode

python handler.py <username> <secret> <pdf_path> <result_path> <format> <task_id_path>

Resume from Existing Task or Check Status

python handler.py --task-id <task_id> <username> <secret> <result_path> <format>

Task ID File Format

When using normal upload mode, a task ID file will be created at task_id_path with the following JSON structure:

{
  "task_id": "AAFXKO",
  "pdf_path": "test.pdf",
  "submit_time": "2026-04-04 00:33:27"
}

This file can be used to:

Implementation

Implemented by handler.py which:

Environment Requirements

Return Value

The parsed result will be saved to the specified result_path in the requested format:

Notes