# PQS Batch Prompt Quality Score

> PQS Batch Prompt Quality Score is a paid API for AI agents from api.relai.fi, paid per call via x402, $0.25/call, status unknown (last checked 2026-09-14).

Scores up to 10 prompts in a single call for quality, returning a quality score for each prompt with optional vertical context.

## Facts

- Endpoint: GET https://api.relai.fi/relay/1779373065272/api/score/batch
- Price: $0.25/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pqs-batch-prompt-quality-score-8028185d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_BXhorTBvyWbUgPvgIq2KL

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability pqs-batch-prompt-quality-score-8028185d
```

Example prompt: Can you score the quality of these three prompts for me and tell me which is best — I want to use the 'software' vertical: 'Write a Python function to sort a list', 'Sort a list in Python', and 'Please write an efficient, well-commented Python function that sorts a list of integers in ascending order using a custom comparator'?

## When to prefer this

Use this endpoint when you need to evaluate or compare the quality of multiple prompts (up to 10) in one call, especially when working with domain-specific verticals like software, content, business, or research. Prefer this over single-prompt scoring when batch efficiency matters.

## Known failure modes

- More than 10 prompts submitted — returns validation error
- Empty prompt string — minLength:1 violation
- Invalid vertical enum value — schema validation error
- Payment not provided or insufficient — 402 Payment Required
- Network timeout on large prompt batch

## How this service works

Batch PQS scoring. Score up to 10 prompts in a single call.

## Output

Returns a quality score for each submitted prompt, indicating how well-formed, clear, and effective each prompt is likely to be for its intended vertical.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "prompts": {
   "type": "array",
   "items": {
    "oneOf": [
     {
      "type": "string",
      "maxLength": 10000,
      "minLength": 1
     },
     {
      "type": "object",
      "required": [
       "prompt"
      ],
      "properties": {
       "prompt": {
        "type": "string",
        "maxLength": 10000,
        "minLength": 1
       },
       "vertical": {
        "enum": [
         "software",
         "content",
         "business",
         "education",
         "science",
         "crypto",
         "general",
         "research"
        ],
        "type": "string"
       }
      }
     }
    ]
   },
   "maxItems": 10,
   "minItems": 1
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pqs-batch-prompt-quality-score-8028185d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.relai.fi](https://www.zero.xyz/host/api.relai.fi/llms.txt)
