Commencer maintenant
Perplexityai Tools

Perplexityai Create Chat Completion

Utilisez Perplexityai Create Chat Completion avec Perplexityai Tools via Aident Loadout. Vérifiez les entrées, sorties, la configuration, le tarif et le risque avant exécution.

Action d'écritureNiveau de risque 2 sur 5Connexion par clé API

Description du fournisseur

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…

Tarifs et limites

Tarif
Action gratuite
Paiement unifié
Non pris en charge actuellement

Entrées

  • 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
    Obligatoire
    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.

Sortie observable

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

Skills qui utilisent cette Action

Cas d’usage associés

Aucun cas d’usage associé et vérifié pour le moment.

Source officielle

Source du fournisseur