LLMLayer
LLMLayer is a web API for AI applications. Use one account and one API key to search the web, scrape pages, crawl websites, map URLs, extract structured data, process PDFs and YouTube transcripts, and generate web-grounded answers.Get API Key
Create an account and start with free credits.
API Reference
Inspect every endpoint and schema.
Choose the Right API
| Job | API | Use it when |
|---|---|---|
| Answer a question with current web context | Answer | You want an LLM response with optional sources/images |
| Get raw search results | Web Search | You want to rank, filter, or scrape results yourself |
| Scrape one page | Scraper | You need markdown, HTML, or a screenshot from a URL |
| Extract data from one page | Extract | You need schema-shaped data, a summary, Q&A, links, or brand data |
| Crawl multiple pages | Crawl | You need streamed markdown from a site |
| Discover URLs | Map | You need a URL inventory before scraping or crawling |
| Read a PDF | PDF Content | You need text from a public PDF URL |
| Read a YouTube video | YouTube Transcript | You need transcript text and video metadata |
Install an SDK
First Request
Core Patterns
Structured extraction
Search then scrape
Stream a crawl
Models
The currently documented model IDs are:| Model | Pricing style | Best for |
|---|---|---|
llmlayer-web | Flat per query | Default web-grounded answers |
llmlayer-fast | Flat per query | Lower latency answers |
openai/gpt-4o-mini | Token priced + LLMLayer fee | Budget token-priced answers |
openai/gpt-5.1 | Token priced + LLMLayer fee | Premium reasoning |
provider_key is accepted for backward compatibility but currently ignored; provider usage is not billed to the user’s provider account.Pricing Snapshot
| API | Cost |
|---|---|
| Answer | $0.004 × max_queries + model tokens, or flat LLMLayer model pricing |
| Web Search | $0.002 per request |
| Scraper | $0.001 per supported format |
| Extract | $0.005 per AI mode, $0.001 links, $0.002 brand |
| Crawl | $0.001 per successful page, reported in the usage event |
| Map | $0.002 per request |
| YouTube Transcript | $0.003 per request |
| PDF Content | $0.002 per request |
Next Steps
Answer API
Generate web-grounded answers.
Extract API
Turn pages into structured data.
Examples
Copy production-shaped recipes.
