Skip to main content
Pay only for what you use with transparent pricing across our Search and Content APIs. No hidden fees, no surprises - just predictable costs based on actual usage.

Search API Pricing

Pay per retrieval with transparent CPM (Cost Per Mille) pricing for search results.

Cost Control

Set your maximum price for a thousand retrievals (CPM) to maintain full control over your spending:
from valyu import Valyu

valyu = Valyu(api_key="your-api-key-here")

response = valyu.search(
    "Implementation details of agentic search-enhanced large reasoning models",
    max_num_results=5,            # Limit to top 5 results
    max_price=30                  # Maximum price for a thousand retrievals (CPM)
)
You’ll receive a response where the total CPM cost of all returned data points is equal to or lower than the max_price you set. If your max price is too low, you will receive a partial success response with a warning:
{
    "response_code": 206, # Partial success
    "success": true,
    "error": "3 data points were removed for too low max_price",
    ...
}

Search Pricing Tiers

Data Source TypePrice (per 1k retrievals)What You Get
Open Databases$0.50Full-text multimodal content from sources like arXiv, Wikipedia, PubMed, and more
Web Search$1.50Fresh, full-text web content from across the internet
Financial & Market Data$8.00Real-time equities, crypto, and market data - complete datasets, not snippets
Proprietary Databases$30-50Licensed reference materials, academic journals, books, and other premium sources

Content API Pricing

Pay per successful URL with simple, transparent pricing for content extraction.

Content Pricing Tiers

FeaturePrice per URLDescription
Base Extraction$0.001Clean content extraction from web pages
AI Processing+$0.001Any AI feature (summarization or structured extraction)
Failed URLs$0.00No charge for unsuccessful extractions

Fair Pricing Model

Only pay for URLs that are successfully processed - failed extractions cost nothing.

Pricing Examples

Basic Extraction (10 URLs)
  • Base extraction: 10 × $0.001 = $0.01
  • Total: $0.01
AI Processing (5 URLs with summary)
{"summary": "Summarize key points"}
  • Base extraction: 5 × $0.001 = $0.005
  • AI processing: 5 × $0.001 = $0.005
  • Total: $0.01
Mixed Success (10 URLs, 2 failed)
  • Successful URLs: 8 × $0.001 = $0.008
  • Failed URLs: 2 × $0.00 = $0.00
  • Total: $0.008

Answer API Pricing

Dual pricing model with separate costs for search data retrieval and AI processing. The Answer API combines real-time search with AI processing, giving you intelligent responses instead of raw search results.

Pricing Structure

Search Data Costs
  • Same pricing as Search API (see above) based on data source types
  • Controlled by data_max_price parameter (CPM)
AI Processing Costs
  • $12 per million tokens for AI analysis and response generation
  • Includes both input tokens (search results) and output tokens (AI response)
  • Separate from search data costs

How to Calculate Your Final Price

To estimate your total cost for an Answer API request, simply add the search data cost and the AI processing cost: Search Data Cost = (Number of results × Price per 1k retrievals) AI Processing Cost = (Number of tokens × Price per million tokens) Total Cost = Search Data Cost + AI Processing Cost

Pricing Examples

Basic Web Query
{
  "query": "latest AI developments",
  "data_max_price": 20.0
}
  • Search data: ~10 results × $1.50/1000 = $0.015
  • AI processing: ~2000 tokens × $12/1M = $0.024
  • Total: ~$0.039
Research Query (Academic Sources)
{
  "query": "quantum computing applications",
  "search_type": "proprietary",
  "data_max_price": 20.0
}
  • Search data: ~5 papers × $1/1000 = $0.005
  • AI processing: ~4000 tokens × $12/1M = $0.048
  • Total: ~$0.053
Structured Output Query
{
  "query": "tech company earnings",
  "structured_output": {...},
  "data_max_price": 30.0
}
  • Search data: ~8 results × $8/1000 = $0.064
  • AI processing: ~3000 tokens × $12/1M = $0.036
  • Total: ~$0.10

Ready to Get Started?

I