firecrawl-cost-tuning

Featured

Optimize Firecrawl costs through crawl limits, format selection, caching, and credit monitoring. Use when analyzing Firecrawl billing, reducing API costs, or implementing credit budget alerts. Trigger with phrases like "firecrawl cost", "firecrawl billing", "reduce firecrawl costs", "firecrawl pricing", "firecrawl credits", "firecrawl budget".

AI & Automation 2,926 stars 433 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Firecrawl Cost Tuning ## Overview Firecrawl charges credits per operation: 1 credit per scrape, 1 per crawled page, 1 per map call, and variable credits for extract (LLM usage). An unbounded crawl on a large site can consume thousands of credits in minutes. This skill covers concrete techniques to reduce credit consumption by 50-80%. ## Credit Cost Table | Operation | Credits | Notes | |-----------|---------|-------| | `scrapeUrl` | 1 | Per page, any format | | `crawlUrl` | 1 per page | Each discovered page costs 1 credit | | `mapUrl` | 1 | Regardless of URLs returned | | `batchScrapeUrls` | 1 per URL | Same as individual scrape | | `extract` | 5+ | LLM processing adds cost | ## Instructions ### Step 1: Always Set Crawl Limits ```typescript import FirecrawlApp from "@mendable/firecrawl-js"; const firecrawl = new FirecrawlApp({ apiKey: process.env.FIRECRAWL_API_KEY!, }); // BAD: no limit — could crawl 100K pages await firecrawl.crawlUrl("https://docs.large-project.org"); // Cost: potentially 100,000+ credits // GOOD: bounded crawl await firecrawl.crawlUrl("https://docs.large-project.org", { limit: 50, // max 50 pages maxDepth: 2, // only 2 levels deep includePaths: ["/api/*"], // only API docs excludePaths: ["/blog/*", "/changelog/*"], scrapeOptions: { formats: ["markdown"] }, }); // Cost: max 50 credits ``` ### Step 2: Use Scrape for Known URLs Instead of Crawl ```typescript // If you know which pages you need, don't crawl — sc...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
1 years ago
Last Updated
yesterday
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category