Perplexity · Schema

ResponsesResponse

Non-streaming response returned when stream is false

Properties

Name Type Description
created_at integer Unix timestamp when the response was created
error object Error details if the response failed
id string Unique identifier for the response
model string Model used for generation
object object Object type identifier
output array Array of output items (messages, search results, tool calls)
status object Status of the response
usage object Token usage and cost information
View JSON Schema on GitHub

JSON Schema

perplexity-responsesresponse-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/ResponsesResponse",
  "title": "ResponsesResponse",
  "description": "Non-streaming response returned when stream is false",
  "properties": {
    "created_at": {
      "description": "Unix timestamp when the response was created",
      "format": "int64",
      "type": "integer"
    },
    "error": {
      "$ref": "#/components/schemas/ErrorInfo",
      "description": "Error details if the response failed"
    },
    "id": {
      "description": "Unique identifier for the response",
      "type": "string"
    },
    "model": {
      "description": "Model used for generation",
      "type": "string"
    },
    "object": {
      "$ref": "#/components/schemas/ResponsesObjectType",
      "description": "Object type identifier"
    },
    "output": {
      "description": "Array of output items (messages, search results, tool calls)",
      "items": {
        "$ref": "#/components/schemas/OutputItem"
      },
      "type": "array"
    },
    "status": {
      "$ref": "#/components/schemas/Status",
      "description": "Status of the response"
    },
    "usage": {
      "$ref": "#/components/schemas/ResponsesUsage",
      "description": "Token usage and cost information"
    }
  },
  "required": [
    "id",
    "object",
    "created_at",
    "status",
    "model",
    "output"
  ],
  "type": "object"
}