home/apis/answer
Answer API · the flagship

Ask the web.
Get it in writing.

Live web search and a cited AI answer in one call. Streaming, JSON mode, sources included — at a flat price you can put in a spreadsheet.

pricing
$0.007per request, flat

Pay-as-you-go. No subscription, no minimum — and your credits never expire.

POST /api/v2/answer
4
models
SSE
streaming
[1][2]
citations
JSON
output mode
Citations built in

Every answer carries its sources, so your users can verify instead of trust.

Streams over SSE

Sources arrive first, then the answer token by token — perfect for chat UIs.

JSON mode

Ask for structured output and get typed fields instead of prose.

Under the hood

Four steps, one request.

01
Search

Your query hits the live web and the best sources are selected.

02
Read

The top pages are fetched, cleaned and ranked as context.

03
Answer

The model writes a grounded response — streamed token by token.

04
Cite

Every claim links back to the source it actually came from.

Models

Flat rates. Zero markup beyond.

Two LLMLayer models with one predictable price — or bring the big models and pay exactly what the provider charges.

llmlayer-web$0.007

Finetuned GPT-4o-mini for web answers. One flat price per request — no token math.

flat / request · citations included
llmlayer-fast$0.009

Finetuned GPT-OSS-120B tuned for speed, for latency-sensitive products.

flat / request · citations included
advanced · choose your model$0.004 / request + provider tokens
gpt-5.1most capable$1.25 / M in · $10.00 / M outzero markup
gpt-4o-minifast & affordable$0.15 / M in · $0.60 / M outzero markup
In practice

One call. That's the integration.

01from llmlayer import LLMLayerClient
02
03client = LLMLayerClient(api_key="YOUR_LLMLAYER_API_KEY")
04
05res = client.answer(
06 query="What changed in EU AI regulation this month?",
07 model="llmlayer-web", # $0.007 flat per request
08 return_sources=True,
09)
10
11print(res.answer) # grounded in the live web
12print(res.sources) # the receipts

Start with nothing to lose.

Free credits on signup, no card. The meter only moves when you call.