Skip to main content
Pay only for what you use. Transparent pricing with no hidden fees.

Search API Pricing

Pay per retrieval with CPM (Cost Per Mille) pricing.

Cost Control

Set your maximum price per thousand retrievals to control 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,
    max_price=30  # Optional: Maximum CPM
)
If max_price is set, the total CPM cost will be equal to or lower than your limit. If your max price is too low, you’ll get a partial response:
{
    "response_code": 206,  # Partial success
    "success": true,
    "error": "3 data points were removed for too low max_price",
    ...
}

Pricing Tiers

Data Source TypePrice (per 1k retrievals)What You Get
Open Databases$0.50Full-text content from arXiv, Wikipedia, PubMed, and more
Web Search$1.50Fresh, full-text web content
Financial & Market Data$8.00Real-time equities, crypto, and market data
Proprietary Databases$30-50Licensed journals, books, and premium sources

Content API Pricing

Pay per successful URL. Simple pricing for content extraction.

Pricing Tiers

FeaturePrice per URLDescription
Base Extraction$0.001Clean content extraction
AI Processing+$0.001Summarisation or structured extraction
Failed URLs$0.00No charge for failures

Fair Pricing

Only pay for URLs that are successfully processed.

Examples

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

Answer API Pricing

Dual pricing for search data and AI processing. The Answer API combines search with AI to give you intelligent responses.

Pricing Structure

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

Calculating Your Cost

Search Data Cost = Number of results × Price per 1k retrievals AI Processing Cost = Number of tokens × $12/1M tokens Total Cost = Search Data Cost + AI Processing Cost

Examples

Basic Web Query
{
  "query": "latest AI developments",
  "data_max_price": 20.0
}
  • Search data: ~10 results × 1.50/1000=1.50/1000 = 0.015
  • AI processing: ~2000 tokens × 12/1M=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=1/1000 = 0.005
  • AI processing: ~4000 tokens × 12/1M=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=8/1000 = 0.064
  • AI processing: ~3000 tokens × 12/1M=12/1M = 0.036
  • Total: ~$0.10

Get Started