Skip to content

Get a response from Perplexity

This API returns a response from Perplexity. DataForSEO and Perplexity provide this through Longwave. Published rates start at $0.0006 per call in live mode (DataForSEO).

Add to Longwave

Get a response from Perplexity with your agent

Paste this into Claude Code or a terminal. Then run /mcp to sign in.

providers
2
lowest price
$0.60/1k calls

Providers compared

Provider Price Access
DataForSEO dataforseo.openapi.post.v3.ai_optimization.perplexity.llm_responses.live $0.0006 per call Live mode; per task: $0.0006 + price charged by LLM. Rate is per submitted task or billing block, not per batched HTTP envelope. The numeric price is the base fee; add the second published component for the additional billing quantity or model usage specified above. Your key
Perplexity perplexity.sonar.generate
1 more variant
  • Get a response from Perplexity (queued result) The selected model and usage determine the charge; no single per-call price applies to this function. perplexity.openapi.get.v1.async.sonar.api_request
The selected model and usage determine the charge; no single per-call price applies to this function. Your key

Prices are each vendor's published rate. Functions marked “No key needed” are billed at that rate in Longwave credits, with no markup. Functions marked “Your key” are billed to your own vendor account.

Run it

In Claude Code, Codex, Cursor or ChatGPT, add the Longwave MCP server once, then ask for the result. In Longwave, ask in any thread.

Questions people ask

Which providers can get a response from Perplexity?

Through Longwave: DataForSEO and Perplexity. The table above compares their prices and access. To use one in particular, name it to your agent or give its function id.

Do I need an API key?

Providers marked "Your key" need your own key, added once in Longwave settings. Providers marked "Connect account" need you to sign in to that account.

Get a response from Perplexity in Longwave

Ask any Longwave thread for the result, or add Longwave to Claude Code, Codex, Cursor or ChatGPT.

Add to Longwave