Answer
Automatically decomposes user messages into multiple sub-queries, performs searches, and synthesizes results using an LLM.
post/answer
Request
- Base URL: https://api.octen.ai
- URL: https://api.octen.ai/answer
- Auth: one of:
- HTTP bearer
- API key in header x-api-key
Request body
Example request
{
"web_search_options": {
"include_domains": [
"octen.ai",
"wikipedia.org"
],
"exclude_domains": [
"spam.com",
"ads.example.net"
],
"start_time": "2025-01-01T00:00:00+08:00",
"end_time": "2025-01-01T00:00:00+08:00",
"language": [
"en",
"zh"
]
}
}Response
Successful Answer response. When stream=false, returns a single chat.completion object with queries and search_results at the top level. When stream=true, returns a stream of chat.completion.chunk objects with types: queries (generated sub-queries), search_done (search results), content (incremental content), finish (completion signal), and usage (token usage).
Changes
No recorded changes to this operation across all 1 revision of this API.