Overview
LLMLayer exposes REST endpoints underhttps://api.llmlayer.dev/api/v2. Authenticate every request with a Bearer token.
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 usescamelCase for many convenience options.
Examples:
| Raw HTTP | Python SDK | TypeScript SDK |
|---|---|---|
return_sources | return_sources | returnSources |
json_schema | json_schema | jsonSchema |
main_content_only | main_content_only | mainContentOnly |
statusCode | statusCode | statusCode |
structured_data | structured_data | structured_data |
Related Guides
Errors & Refunds
Shared error format and refund behavior.
Models and Pricing
Supported model IDs and pricing formulas.
