Valyu Answer
valyu_answerReference for the Valyu Answer endpoint that blends search results into AI-generated answers via POST /v1/answer.
When to Use
Use this tool when you need to reference for the valyu answer endpoint that blends search results into ai-generated answers via post /v1/answer.. This is part of the Valyu API provider on xpay✦.
MCP Connection
Connect to xpay✦ to access this tool (and 12+ others):
{
"mcpServers": {
"xpay": {
"url": "https://mcp.xpay.sh/mcp?key=YOUR_API_KEY"
}
}
}
For Claude Code:
claude mcp add --transport http xpay "https://mcp.xpay.sh/mcp?key=YOUR_API_KEY"
How to Execute
Use the xpay✦ meta-tools to run this tool:
xpay_details— Get full input schema:xpay_details("valyu/valyu_answer")xpay_run— Execute:xpay_run("valyu/valyu_answer", { ...inputs })
Input Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
end_date | string | No | End date filter (YYYY-MM-DD) |
country_code | string | No | 2-letter ISO country code to bias search results to a specific country |
streaming | boolean | No | Enable Server-Sent Events (SSE) streaming. When true, returns a stream of chunks: search_results first, then content deltas, then metadata, then [DONE]. |
fast_mode | boolean | No | Enable fast mode for reduced latency but shorter results. Best for general purpose queries. |
data_max_price | number | No | Maximum price in dollars for data retrieval (search costs only, does not affect AI costs) |
query | string | Yes | The search query |
included_sources | array | No | List 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_sources | array | No | List 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'). |
structured_output | object | No | JSON schema for structured output. When provided, enables JSON mode and returns structured data |
system_instructions | string | No | Custom instructions for AI processing |
search_type | string | No | Type of search to perform |
start_date | string | No | Start date filter (YYYY-MM-DD) |
Pricing
- Cost: $0.02/call
- Balance check: Use
xpay_balanceto check remaining credits - Get your API key at xpay.tools — $5 free credits included
Related Skills
- Valyu API (all tools) — 13 tools
- Valyu Search — $0.02/call
- Valyu Create Batch — $0.02/call
- Valyu Get Status — $0.02/call
- Valyu Update Task — $0.02/call
- Valyu Cancel Task — $0.02/call
Links
- Tool page: https://xpay.tools/valyu/valyu-answer/
- Provider: https://xpay.tools/valyu/
- All tools: https://xpay.tools/explore
How to Execute
Input Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
end_date | string | No | End date filter (YYYY-MM-DD) |
country_code | string | No | 2-letter ISO country code to bias search results to a specific country |
streaming | boolean | No | Enable Server-Sent Events (SSE) streaming. When true, returns a stream of chunks: search_results first, then content deltas, then metadata, then [DONE]. |
fast_mode | boolean | No | Enable fast mode for reduced latency but shorter results. Best for general purpose queries. |
data_max_price | number | No | Maximum price in dollars for data retrieval (search costs only, does not affect AI costs) |
query | string | Yes | The search query |
included_sources | array | No | List 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_sources | array | No | List 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'). |
structured_output | object | No | JSON schema for structured output. When provided, enables JSON mode and returns structured data |
system_instructions | string | No | Custom instructions for AI processing |
search_type | string | No | Type of search to perform |
start_date | string | No | Start date filter (YYYY-MM-DD) |
Install Skill
Pricing
Cost
$0.02/call
Model
Flat rate
Provider
Valyu API

