# Perplexity answer to a prompt, live

Provider: DataForSEO
Final price: $0.005861/call
Success rate: 100%

Live Perplexity LLM Responses endpoint allows you to retrieve structured responses from a specific Perplexity AI model, based on the input parameters.

## Example

```curl
curl -X POST 'https://toolswitch.dev/v1/tools/dataforseo.x.ai-optimization-perplexity-llm-responses-live?bodyType=json' \
  -H "X-Toolswitch-Key: $TOOLSWITCH_KEY" \
  -H "Content-Type: application/json" \
  --data-raw '[{"top_p":0.5,"model_name":"sonar","temperature":0.3,"user_prompt":"provide information on how relevant the amusement park business is in France now","message_chain":[{"role":"user","message":"Hello, what’s up?"},{"role":"ai","message":"Hello! I’m doing well, thank you. How can I assist you today? Are there any specific topics or projects you’d like to discuss in our meeting?"}],"system_message":"communicate as if we are in a business meeting","max_output_tokens":200,"web_search_country_iso_code":"FR"}]'
```

[View on Toolswitch](https://toolswitch.dev/en/tools/dataforseo.x.ai-optimization-perplexity-llm-responses-live)
