立即开始
Perplexityai Tools

Perplexityai Create Chat Completion

通过 Aident Loadout 使用 Perplexityai Tools 的 Perplexityai Create Chat Completion。执行前查看输入、输出、设置、价格和风险。

写入操作风险等级 2/5API 密钥连接

服务提供商说明

Perplexity Sonar Chat Completions (POST /v1/sonar). Generates web-grounded conversational AI responses with citations. Supports multiple Sonar models optimized for different use cases: - sonar: Fast, cost-effective for simple queries - sonar-pro: Enhanced quality for complex que…

价格与限制

价格
免费操作
统一支付
暂不支持

输入

  • stop
    Stop sequence(s) to end generation. Note: the API may not support custom stop words for all models.
  • modelstring
    The Sonar model to use. 'sonar' for fast/cheap queries, 'sonar-pro' for complex queries, 'sonar-reasoning-pro' for chain-of-thought reasoning, 'sonar-deep-research' for exhaustive research (generates very long 10K+ word responses; prefer the async endpoint for this model).
  • top_pnumber
    Nucleus sampling threshold controlling cumulative probability of tokens.
  • streamboolean
    Whether to stream the response using server-sent events.
  • messagesarray
    必填
    A list of messages comprising the conversation. Each message has a role (system, user, assistant, tool) and content. Messages with 'tool' role must alternate with 'assistant' messages. Valid pattern: system -> user -> assistant -> tool -> user.
  • max_tokensinteger
    Maximum number of tokens to generate. Max 128000.
  • search_modestring
    Search mode. Options: 'web', 'academic', 'sec'.
  • stream_modestring
    Stream mode: 'full' (default) or 'concise'.
  • temperaturenumber
    Controls randomness. 0 is deterministic, up to 2 is more random.
  • return_imagesboolean
    Whether to include images in the response.
  • disable_searchboolean
    Whether to disable web search entirely.
  • response_formatobject
    Response format configuration.

可观察输出

  • data
    必填
    Data from the action execution
  • errorstring
    Error if any occurred during the execution of the action
  • successfulboolean
    必填
    Whether or not the action execution was successful or not

使用此操作的技能

相关使用场景

尚未关联经过验证的相关使用场景。

官方来源

服务提供商来源