360 Secure SkillHub
360 安全技能中心

LLMWhisperer

通过 curl 将本地图片或 PDF 以二进制上传到 LLMWhisperer API(high_quality、layout_preserving 模式),返回提取的文本与版式,适合手写内容和复杂表单;需 LLMWHISPERER_API_KEY,免费额度 100 页/天。

gumadeiras
gumadeiras
热度 93.97
最近更新 2026-05-11 15:50:48
分类:效率依赖:代码执行 / 第三方 API应用场景:文件转换 / 数据处理

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add llmwhisperer
Metadata
name
llmwhisperer
description
Extract text and layout from images and PDFs using LLMWhisperer API. Good for handwriting and complex forms.
metadata
{"clawdbot":{"emoji":"📄","scripts":["scripts/llmwhisperer"]}}

LLMWhisperer

Extract text from images and PDFs using the LLMWhisperer API — great for handwriting and complex forms.

Configuration

Requires LLMWHISPERER_API_KEY in ~/.clawdbot/.env:

echo "LLMWHISPERER_API_KEY=your_key_here" >> ~/.clawdbot/.env

Get an API Key

Get a free API key at unstract.com/llmwhisperer.

  • Free Tier: 100 pages/day

Usage

llmwhisperer <file>

Script Source

The executable script is located at scripts/llmwhisperer.

#!/bin/bash
# Extract text using LLMWhisperer API

if [ -z "$LLMWHISPERER_API_KEY" ]; then
  if [ -f ~/.clawdbot/.env ]; then
    # shellcheck disable=SC2046
    export $(grep -v '^#' ~/.clawdbot/.env | grep 'LLMWHISPERER_API_KEY' | xargs)
  fi
fi

if [ -z "$LLMWHISPERER_API_KEY" ]; then
  echo "Error: LLMWHISPERER_API_KEY not found in env or ~/.clawdbot/.env"
  exit 1
fi

FILE="$1"
if [ -z "$FILE" ]; then
  echo "Usage: $0 <file>"
  exit 1
fi

curl -s -X POST "https://llmwhisperer-api.us-central.unstract.com/api/v2/whisper?mode=high_quality&output_mode=layout_preserving" \
  -H "Content-Type: application/octet-stream" \
  -H "unstract-key: $LLMWHISPERER_API_KEY" \
  --data-binary "@$FILE"

Examples

Print text to terminal:

llmwhisperer flyer.jpg

Save output to a text file:

llmwhisperer invoice.pdf > invoice.txt

Process a handwritten note:

llmwhisperer notes.jpg