patentfig
Installation
SKILL.md
PatentFig AI API
Generate and convert patent figures through the PatentFig AI REST API.
- Base URL:
https://patentfig.ai/api/v1 - Auth:
Authorization: Bearer $PATENTFIG_API_KEY - All endpoints are synchronous and return JSON:
{ "success": true, "data": {...} }on success,{ "success": false, "error": { "code", "message" } }on failure. - Generated files are returned as URLs on
https://cdn.patentfig.ai— pass them to the user or feed them into follow-up calls.
Setup
The key comes from the PATENTFIG_API_KEY environment variable. Never hardcode it, print it, or write it into files or logs.
If the variable is not set, tell the user to create a key at https://patentfig.ai/settings/api-keys (requires a PatentFig AI account; keys start with pfig_) and export it:
export PATENTFIG_API_KEY="pfig_..."