# PQS: Prompt Quality Score - Full Analysis

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

Analyzes a prompt's quality, generates an optimized version, and returns before/after scores along with both original and improved outputs

## Facts

- Endpoint: GET https://api.relai.fi/relay/1779373065272/api/score/full
- Price: $0.125000/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pqs-prompt-quality-score-full-analysis-f9730686
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_cF7iUHbc-3WOVbcz2nYc6

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-prompt-quality-score-full-analysis-f9730686
```

Example prompt: Can you run a full PQS (Prompt Quality Score) analysis on this prompt: 'Explain how neural networks work' — use the 'education' vertical, and show me the optimized version along with the before and after quality scores?

## When to prefer this

Choose this endpoint when you need a comprehensive, end-to-end prompt quality evaluation — not just a score, but also the optimized prompt and side-by-side outputs. Prefer this over a basic scoring endpoint when you want actionable improvement, not just a number.

## Known failure modes

- Empty or missing prompt returns validation error
- Prompt exceeding 10,000 characters is rejected
- Invalid vertical enum value returns 400 error
- Payment not provided or insufficient results in 402 Payment Required
- Service timeout if prompt is unusually complex

## How this service works

Full PQS analysis: optimized prompt + before/after scoring + both outputs

## Output

Returns a full analysis object including: the original prompt's quality score, an optimized version of the prompt, the optimized prompt's quality score, the output generated by the original prompt, and the output generated by the optimized prompt — enabling direct before/after comparison.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "prompt": {
   "type": "string",
   "maxLength": 10000,
   "minLength": 1,
   "description": "Prompt to run through both Claude and GPT-4o for cross-model comparison"
  },
  "vertical": {
   "enum": [
    "software",
    "content",
    "business",
    "education",
    "science",
    "crypto",
    "general",
    "research"
   ],
   "type": "string",
   "default": "general",
   "description": "Domain: software/content/business/education/science/crypto/general/research"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pqs-prompt-quality-score-full-analysis-f9730686/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)
