# PQS Full Analysis - Prompt Quality Score with Before/After Outputs

> PQS Full Analysis - Prompt Quality Score with Before/After Outputs is a paid API for AI agents from pqs.onchainintel.net, paid per call via x402, $0.125/call, status unknown (last checked 2026-09-15).

Runs a full 8-dimensional prompt quality analysis returning the optimized prompt plus before/after LLM outputs to show the improvement

## Facts

- Endpoint: GET https://pqs.onchainintel.net/api/score/full
- Price: $0.125/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pqs-onchainintel-net-f13253af
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_zgt5DlFr3gnQWlsGyzYfv

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-onchainintel-net-f13253af
```

Example prompt: Run a full PQS analysis on this prompt I'm planning to send to GPT-4: 'Summarize the following document for a business audience' — give me the 8-dimension quality score, the optimized version of the prompt, and show me the before and after outputs so I can see the difference.

## When to prefer this

Choose this endpoint when you need the complete picture: not just a score but also the rewritten prompt and concrete before/after LLM outputs proving the improvement. Use it when you want to justify prompt changes to a stakeholder, debug why a prompt is underperforming, or validate that an optimized prompt genuinely produces better results — rather than just getting a pass/fail or a score alone.

## Known failure modes

- Empty or missing prompt input returns a validation error
- Prompt too long may exceed token limits
- Model parameter specifying unsupported target model returns an error
- Payment failure or insufficient USDC balance blocks the call
- Malformed request body returns a 400 error
- Downstream LLM unavailability causes a 503 or timeout

## How this service works

PQS full analysis - optimized prompt plus before/after outputs

## Output

Returns the full prompt quality analysis including an 8-dimensional score breakdown across 5 frameworks, the optimized version of the input prompt, the raw LLM output from the original prompt, the LLM output from the optimized prompt, and the top recommended fixes — letting the caller see exactly how much improvement the optimization delivers.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "prompt": {
   "type": "string",
   "maxLength": 10000,
   "minLength": 1,
   "description": "Prompt to score"
  },
  "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-onchainintel-net-f13253af/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from pqs.onchainintel.net](https://www.zero.xyz/host/pqs.onchainintel.net/llms.txt)
