{
  "$schema": "https://modelparams.dev/api/v1/schema.json",
  "provider": "perplexity",
  "authType": "api_key",
  "model": "sonar-deep-research",
  "params": [
    {
      "path": "max_tokens",
      "label": "Max tokens",
      "description": "Maximum number of output tokens the model may generate.",
      "group": "generation_length",
      "type": "integer",
      "range": {
        "min": 1,
        "max": 128000
      }
    },
    {
      "path": "temperature",
      "label": "Temperature",
      "description": "Controls randomness. Lower values make outputs more focused; higher values make them more varied.",
      "group": "sampling",
      "type": "number",
      "range": {
        "min": 0,
        "max": 2,
        "step": 0.1
      }
    },
    {
      "path": "top_p",
      "label": "Top P",
      "description": "Controls nucleus sampling by limiting generation to tokens within the selected cumulative probability.",
      "group": "sampling",
      "type": "number",
      "range": {
        "min": 0,
        "max": 1,
        "step": 0.01
      }
    },
    {
      "path": "reasoning_effort",
      "label": "Reasoning effort",
      "description": "Controls how much reasoning and searching the model performs before producing the report.",
      "group": "reasoning",
      "type": "enum",
      "values": [
        "minimal",
        "low",
        "medium",
        "high"
      ]
    },
    {
      "path": "search_mode",
      "label": "Search mode",
      "description": "Selects the corpus the model searches when grounding its answer.",
      "group": "provider_metadata",
      "type": "enum",
      "values": [
        "web",
        "academic",
        "sec"
      ]
    },
    {
      "path": "search_recency_filter",
      "label": "Search recency filter",
      "description": "Restricts web search results to a recent time window.",
      "group": "provider_metadata",
      "type": "enum",
      "values": [
        "hour",
        "day",
        "week",
        "month",
        "year"
      ]
    },
    {
      "path": "search_domain_filter",
      "label": "Search domain filter",
      "description": "Limits search to, or excludes, specific domains.",
      "group": "provider_metadata",
      "type": "string"
    },
    {
      "path": "search_after_date_filter",
      "label": "Search after date",
      "description": "Restricts search results to content published after this date (MM/DD/YYYY).",
      "group": "provider_metadata",
      "type": "string"
    },
    {
      "path": "search_before_date_filter",
      "label": "Search before date",
      "description": "Restricts search results to content published before this date (MM/DD/YYYY).",
      "group": "provider_metadata",
      "type": "string"
    },
    {
      "path": "web_search_options.search_context_size",
      "label": "Search context size",
      "description": "Controls how much web search context is retrieved before generating the answer.",
      "group": "provider_metadata",
      "type": "enum",
      "default": "low",
      "values": [
        "low",
        "medium",
        "high"
      ]
    },
    {
      "path": "return_images",
      "label": "Return images",
      "description": "Controls whether the response may include related images from the search.",
      "group": "provider_metadata",
      "type": "boolean",
      "default": false
    },
    {
      "path": "return_related_questions",
      "label": "Return related questions",
      "description": "Controls whether the response includes suggested follow-up questions.",
      "group": "provider_metadata",
      "type": "boolean",
      "default": false
    }
  ]
}
