Skip to main content

Overview

LLMLayer exposes REST endpoints under https://api.llmlayer.dev/api/v2. Authenticate every request with a Bearer token.
Keep API keys server-side. Do not expose them in browser code.

Endpoints

Answer

/api/v2/answer - web-grounded LLM responses.

Answer Stream

/api/v2/answer_stream - Server-Sent Events for streaming answers.

Web Search

/api/v2/web_search - raw search results.

Scraper

/api/v2/scrape - single-page markdown, HTML, or screenshot extraction.

Extract

/api/v2/extract - structured data, summaries, Q&A, links, and brand profiles.

Map

/api/v2/map - website URL discovery.

Crawl

/api/v2/crawl_stream - streamed markdown pages from a website.

First Request

Field Naming

Raw HTTP request bodies use the field names shown in the OpenAPI schemas. The Python SDK follows Python naming conventions for method arguments, and the TypeScript SDK uses camelCase for many convenience options. Examples:

Errors & Refunds

Shared error format and refund behavior.

Models and Pricing

Supported model IDs and pricing formulas.