APIs / LLM Answers / Answer

LLM Answers: Answer

Answer from LLM Answers as JSON. 1 credit per successful call.

GET /v1/llm-answers/answer

Parameters

Send parameters in the query string.

ParameterTypeRequiredAllowed values
promptstringRequiredUp to 4,000 characters
qstringOptionalUp to 4,000 characters
enginestringOptionalchatgpt, gemini, naver, brave
Which assistant answers: chatgpt (the default), gemini, naver or brave.
modelstringOptionalUp to 64 characters
A ChatGPT model ID, for engine=chatgpt. List the IDs with GET /v1/llm-answers/models?engine=chatgpt; leave it out to use auto. Perplexity model IDs are not accepted. An unknown model returns 422 invalid_parameters and is not charged. Not used with engine=gemini.
timezonestringOptionalAny
localestringOptionalUp to 16 characters
countrystringOptionalus, gb, de, fr, ca, au, es, it, nl, jp
languagestringOptionalen, de, fr, es, it, nl, ja
safesearchstringOptionaloff, moderate, strict
continuation_tokenstringOptionalUp to 512 characters
devicestringOptionaldesktop, mobile
historylist of objectOptionalAny

Example request

LLM Answers
GET/v1/llm-answers/answer?prompt=What+is+the+tallest+mountain+in+Europe%3F+Give+two+sources.
{
  "success": true,
  "data": {
    "answer": {
      "text": "The tallest mountain in Europe is **Mount Elbrus**, located in the Caucasus Mountains of southwestern Russia. Its highest summit reaches **5,642 metres (18,510 feet)** above sea level. \n\n### Two Sources\n\n1. **National Geographic** — Identif…",
      "length": 607
    },
    "sources": [
      {
        "ref_id": "turn0search12",
        "title": "8/28/2023\nEurope: Physical Geography\nD O N AT E\nEd",
        "url": "https://media.nationalgeographic.org/assets/reference/assets/europe-physical-geography-1.pdf",
        "snippet": "",
        "attribution": "media.nationalgeographic.org",
        "pub_date": "2025-06-13",
        "type": "search_result",
        "cited": false
      },
      {
        "ref_id": "turn0search0",
        "title": "El'brus",
        "url": "https://education.nationalgeographic.org/resource/elbrus/",
        "snippet": "",
        "attribution": "education.nationalgeographic.org",
        "pub_date": "2023-10-19",
        "type": "search_result",
        "cited": true
      },
      {
        "ref_id": "turn0search13",
        "title": "Explore_EN",
        "url": "https://europa.eu/europago/explore/pdf/flip-book/lets-explore-europe-en/NA0114598ENC_002.pdf",
        "snippet": "",
        "attribution": "europa.eu",
        "pub_date": "2014-09-02",
        "type": "search_result",
        "cited": false
      }
    ],
    "citations": [
      {
        "type": "entity",
        "marker": "entity:Mount Elbrus",
        "matched_text": "Mount Elbrus",
        "start_idx": 36,
        "end_idx": 48,
        "alt": "Mount Elbrus"
      },
      {
        "type": "grouped_webpages",
        "marker": "cite:turn0search0,turn0search1",
        "matched_text": "",
        "start_idx": 185,
        "end_idx": 185,
        "refs": [
          "turn0search0",
          "turn0search1"
        ],
        "alt": "([education.nationalgeographic.org](https://education.nationalgeographic.org/resource/elbrus/?utm_source=chatgpt.com))",
        "urls": [
          "https://education.nationalgeographic.org/resource/elbrus/"
        ]
      },
      {
        "type": "url",
        "marker": "url:turn0search0",
        "matched_text": "National Geographic: Elbrus",
        "start_idx": 294,
        "end_idx": 321,
        "refs": [
          "turn0search0"
        ],
        "alt": "[National Geographic: Elbrus](https://education.nationalgeographic.org/resource/elbrus/?utm_source=chatgpt.com)",
        "urls": [
          "https://education.nationalgeographic.org/resource/elbrus/"
        ]
      }
    ],
    "safe_urls": [
      "https://education.nationalgeographic.org/resource/elbrus/",
      "https://education.nationalgeographic.org/resource/elbrus/?utm_source=chatgpt.com",
      "https://images.openai.com/static-rsc-1/gqIVk792CsK5G_AXGhOJZqaD6gHndcp_MJu_pHE0N6mr_8gguMErUvTLKCPdXfxa_nP_4HX12Llbr112D4zsqreJIVvTMOVFGjXHCVbQOMQiJvFInkRUrgutylCpEFz4XmMCtgYdPWOqlTc1HRu8RU2u2VheulDWYvTIrHH5E7s_TMoDf9P26mqAflmHUHt5ePXHBXMHC…"
    ],
    "search_queries": [
      "tallest mountain in Europe Mount Elbrus elevation source Britannica National Geographic"
    ],
    "reasoning_titles": [
      "Searching the web",
      "Searching tallest mountain in Europe Mount Elbrus elevation source Britannica National Geographic",
      "Searching 17 websites"
    ],
    "finish_details": {
      "type": "stop",
      "stop_tokens": [
        200002
      ]
    },
    "model": {
      "resolved": "gpt-6",
      "requested": "auto"
    },
    "follow_up": {
      "available": false,
      "reason": "Follow-up suggestion text is not available. The anonymous answer stream only says whether suggestions are eligible and never carries their text."
    }
  },
  "meta": {
    "duration_ms": 5197,
    "model_calls": 1
  }
}
200 OKJSONX-Credits-Used: 1
Recorded from our API and shortened.

Run this endpoint in the playground with your own parameters. 1 credit per successful call; failed calls are free.

Response fields

data has these 9 fields, read from a recorded call. The recording leaves out fields that were empty, so a live call can return more.

FieldType
answerobject
sourcesobject[]
citationsobject[]
safe_urlsstring[]
search_queriesstring[]
reasoning_titlesstring[]
finish_detailsobject
modelobject
follow_upobject