
curl -X POST https://api.orthogonal.com/v1/run \
-H 'Authorization: Bearer orth_live_••••' \
-H 'Content-Type: application/json' \
-d '{
"api": "valyu",
"path": "/v1/answer",
"method": "POST",
"body": {
"query": ""
}
}'
$0.01per call
Every call costs the same.
You aren't charged for failed calls. A wallet payment for a failed call is refunded.
About this endpoint
Reference for the Valyu Answer endpoint that blends search results into AI-generated answers via POST /v1/answer.
Body parameters
queryrequiredstringThe search querysystem_instructionsstringCustom instructions for AI processingstructured_outputobjectJSON schema for structured output. When provided, enables JSON mode and returns structured datasearch_typestringType of search to performfast_modebooleanEnable fast mode for reduced latency but shorter results. Best for general purpose queries.data_max_pricenumberMaximum price in dollars for data retrieval (search costs only, does not affect AI costs)included_sourcesstringList of specific sources to search (URLs, domains or dataset names). When a URL or domain path is provided (e.g., 'https://valyu.ai/blog' or 'valyu.ai/blog'), only that specific path will be searched. For entire domains, use either the domain name (e.g., 'valyu.ai') or the base URL (e.g., 'https://valyu.ai').excluded_sourcesstringList of specific sources to exclude from search (URLs, domains, or dataset names). When a URL or domain path is provided (e.g., 'https://valyu.ai/blog' or 'valyu.ai/blog'), only that specific path will be excluded. For entire domains, use either the domain name (e.g., 'valyu.ai') or the base URL (e.g., 'https://valyu.ai').start_datestringStart date filter (YYYY-MM-DD)end_datestringEnd date filter (YYYY-MM-DD)country_codestring2-letter ISO country code to bias search results to a specific countrystreamingbooleanEnable Server-Sent Events (SSE) streaming. When true, returns a stream of chunks: search_results first, then content deltas, then metadata, then [DONE].More from Valyu
- Get StatusGET/v1/deepresearch/tasks/{id}/status$0.01 per callFixed
- Get Batch StatusGET/v1/deepresearch/batches/{id}$0.01 per callFixed
- Create TaskPOST/v1/deepresearch/tasks$0.01 per callFixed
- Add Tasks to BatchPOST/v1/deepresearch/batches/{id}/tasks$0.01 per callFixed
- Cancel BatchPOST/v1/deepresearch/batches/{id}/cancel$0.01 per callFixed
- Update TaskPOST/v1/deepresearch/tasks/{id}/update$0.01 per callFixed
- Cancel TaskPOST/v1/deepresearch/tasks/{id}/cancel$0.01 per callFixed
- Delete TaskDELETE/v1/deepresearch/tasks/{id}/delete$0.01 per callFixed
- SearchPOST/v1/search$0.01 per callFixed
- Create BatchPOST/v1/deepresearch/batches$0.01 per callFixed
- ContentsPOST/v1/contents$0.01 per callFixed
- List Batch TasksGET/v1/deepresearch/batches/{id}/tasks$0.01 per callFixed