LogoPatentFig AI Docs
LogoPatentFig AI Docs
Homepage

Getting Started

Quick StartAuthentication

Endpoints

Generate FiguresVectorizeEnhanceConvertCredits

Reference

Use with AI AgentsErrorsChangelog
X (Twitter)

Use with AI Agents

The PatentFig agent skill for Claude Code and other AI agents

PatentFig AI publishes an open-source Agent Skill that teaches AI agents (Claude Code, Claude.ai, and other SKILL.md-compatible agents) how to call this API — generate patent figures from text, vectorize drawings, upscale, and convert, all from a conversation with your agent.

Install

Claude Code — clone into your skills directory:

git clone https://github.com/TopLocalAI/patentfig-skill.git ~/.claude/skills/patentfig

Or with the skills CLI:

npx skills add TopLocalAI/patentfig-skill

Set your API key

The skill reads your key from an environment variable — it never hardcodes or logs it:

export PATENTFIG_API_KEY="pfig_..."

Create a key at Settings → API Keys.

Use it

Ask your agent things like:

"Generate an exploded-view patent figure of a coffee grinder with numbered parts, as SVG."

"Vectorize drawing.png to DXF so I can edit it in AutoCAD."

"Upscale this figure to 600 DPI for filing."

The skill knows the endpoint parameters, credit costs, timeout behavior, and error handling documented in this reference — your agent handles retries and rate limits correctly out of the box.

Other integration surfaces

  • OpenAPI 3.1 spec — import into any API client or code generator
  • /llms.txt — AI-readable site and API index
  • MCP server, webhooks, and SDKs are not available yet; the REST API is the public integration surface

Table of Contents

Install
Set your API key
Use it
Other integration surfaces