# PQS: Prompt Quality Score — Venice.ai Chat with Preflight Scoring

> PQS: Prompt Quality Score — Venice.ai Chat with Preflight Scoring is a paid API for AI agents from api.relai.fi, paid per call via x402, $0.050000/call, status unknown (last checked 2026-09-14).

Sends a prompt to Venice.ai for LLM completion while simultaneously returning an 8-dimension quality score for the prompt, all in a single paid API call with no signup or API key required.

## Facts

- Endpoint: GET https://api.relai.fi/relay/1779373065272/api/proxy/venice
- Price: $0.050000/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-venice-ai-chat-with-preflight-scoring-a1776e67
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_lbg-Wg520ZDTj0BVeJhfK

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-venice-ai-chat-with-preflight-scoring-a1776e67
```

Example prompt: Score this prompt for quality across all 8 dimensions and also return the Venice.ai completion for it, using the 'software' vertical: 'You are a senior software engineer. Explain the difference between a mutex and a semaphore with a real-world analogy.'

## When to prefer this

Choose this endpoint when you want to both evaluate the quality of a prompt AND get an LLM response in a single call without needing to register or obtain an API key. Ideal for agents that need automated prompt quality feedback alongside generation, or when building prompt engineering workflows that benefit from structured multi-dimension scoring. Prefer this over raw Venice.ai access when prompt quality metrics are needed alongside the completion.

## Known failure modes

- Unknown model ID returns 400 before any payment is settled
- Prompt below 1 character or above 10,000 characters returns validation error
- Payment of 0.05 USDC not fulfilled results in 402 Payment Required
- Invalid vertical enum value returns 400
- Venice.ai backend unavailable causes 502/503 error

## How this service works

Venice.ai chat completion with PQS preflight scoring. Returns LLM response plus 8-dimension quality score in one paid call. No signup, no API key.

## Output

Returns both the LLM-generated response from Venice.ai and an 8-dimension prompt quality score (PQS) for the submitted prompt, delivered together in a single response. The quality score evaluates the prompt along dimensions like clarity, specificity, and appropriateness for the selected vertical.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "model": {
   "type": "string",
   "description": "Optional Venice.ai model override. Defaults to venice-uncensored-1-2. Call GET /api/proxy/venice/models (free, no payment) for the live list of supported model IDs and aliases. Unknown IDs return 400 before settlement."
  },
  "prompt": {
   "type": "string",
   "maxLength": 10000,
   "minLength": 1,
   "description": "Prompt to score and send to Venice.ai"
  },
  "vertical": {
   "enum": [
    "software",
    "content",
    "business",
    "education",
    "science",
    "crypto",
    "general",
    "research"
   ],
   "type": "string",
   "default": "general"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pqs-prompt-quality-score-venice-ai-chat-with-preflight-scoring-a1776e67/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)
