api.relai.fi

Checks prompt quality and x402 endpoint trust before inference.

InferenceLiveeip155:8453Exactvia facilitator:dexter
Settlements · 30d
6↓ 100%
No per-endpoint history for this service yet, so this is payments indexed to its PROVIDER's wallet over 30 days.
$34.92
Verified settled volume
1,090 settlements proven x402 by their on-chain EIP-3009 marker.
$0.050
Listed price
As published in the catalog. Always read the live 402 before paying.
Calls · 30d
Upstream's own call count for this endpoint, not ours.
Unique payers · 30d
Never called
Upstream on-chain volume
Reported by the source catalog.
Paid to
0xB40a687ca5483Ebc02F870348f6e08971Cae1308

The wallet the 402 directs payment to. Its whole payment record — every payer, every chain — is on the merchant page.

Asset 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913

Provider

The payTo wallet does not resolve to a registered ERC-8004 agent. That is not a verdict on the service — most of the catalog is unregistered.

Live 402 challenge

Captured by the enrichment pass, not read just now. Prices can change — always read the 402 the endpoint answers with.

{
  "error": "Payment required",
  "accepts": [
    {
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "extra": {
        "name": "USD Coin",
        "version": "2"
      },
      "payTo": "0xB40a687ca5483Ebc02F870348f6e08971Cae1308",
      "amount": "50000",
      "scheme": "exact",
      "iconUrl": "https://raw.githubusercontent.com/OnChainAIIntel/assets/main/onchainintel_profile_pic.png",
      "network": "eip155:8453",
      "category": "ai",
      "mimeType": "application/json",
      "description": "Combined PQS prompt quality + x402 endpoint trust check before inference",
      "serviceName": "Prompt Quality Score",
      "discoverable": true,
      "outputSchema": {
        "input": {
          "type": "http",
          "method": "POST",
          "bodyType": "json",
          "discoverable": true
        },
        "output": {
          "type": "object",
          "required": [
            "pqs_version",
            "clearance",
            "prompt"
          ],
          "properties": {
            "chain": {
              "enum": [
                "base",
                "solana"
              ],
              "type": "string"
            },
            "prompt": {
              "type": "object",
              "properties": {
                "grade": {
                  "type": "string"
                },
                "score": {
                  "type": "integer"
                },
                "out_of": {
                  "enum": [
                    80
                  ],
                  "type": "integer"
                },
                "feedback": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "top_issue": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "dimensions": {
                  "type": "object",
                  "properties": {
                    "total": {
                      "type": "integer",
                      "maximum": 80,
                      "minimum": 8
                    },
                    "clarity": {
                      "type": "integer",
                      "maximum": 10,
                      "minimum": 1
                    },
                    "context": {
                      "type": "integer",
                      "maximum": 10,
                      "minimum": 1
                    },
                    "examples": {
                      "type": "integer",
                      "maximum": 10,
                      "minimum": 1
                    },
                    "constraints": {
                      "type": "integer",
                      "maximum": 10,
                      "minimum": 1
                    },
                    "specificity": {
                      "type": "integer",
                      "maximum": 10,
                      "minimum": 1
                    },
                    "cot_structure": {
                      "type": "integer",
                      "maximum": 10,
                      "minimum": 1
                    },
                    "output_format": {
                      "type": "integer",
                      "maximum": 10,
                      "minimum": 1
                    },
                    "role_definition": {
                      "type": "integer",
                      "maximum": 10,
                      "minimum": 1
                    }
                  }
                },
                "threshold_met": {
                  "type": "boolean"
                }
              }
            },
            "endpoint": {
              "type": "object",
              "properties": {
                "wallet": {
                  "type": "string"
                },
                "trust_label": {
                  "type": "string"
                },
                "trust_score": {
                  "type": "number"
                },
                "resolution_source": {
                  "type": "string"
                }
              },
              "description": "Present only when endpoint_url was supplied"
            },
            "clearance": {
              "enum": [
                "CLEAR",
                "CAUTION",
                "BLOCK"
              ],
              "type": "string"
            },
            "confidence": {
              "type": "number"
            },
            "pqs_version": {
              "enum": [
                "2.0"
              ],
              "type": "string"
            }
          }
        }
      },
      "networkLegacy": "base",
      "maxAmountRequired": "50000",
      "maxTimeoutSeconds": 300,
      "maxAmountRequiredUSD": "$0.05"
    }
  ],
  "iconUrl": "https://raw.githubusercontent.com/OnChainAIIntel/assets/main/onchainintel_profile_pic.png",
  "preview": {
    "mode": "preview",
    "message": "This endpoint is POST-only with x402 payment. GET returns the 402 PaymentRequired envelope for discovery.",
    "upgrade": "POST /api/preflight with an x402 payment ($0.05 USDC on Base), or send Authorization: Bearer PQS_... with an API key from promptqualityscore.com/api-key, to receive a real response.",
    "powered_by": "PQS - promptqualityscore.com"
  },
  "resource": {
    "url": "https://promptqualityscore.com/api/preflight",
    "mimeType": "",
    "description": "Combined PQS prompt quality + x402 endpoint trust check before inference"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "prompt": "Explain PQS scoring in one sentence to an AI agent operator.",
            "vertical": "general",
            "endpoint_url": "https://example.com/api/weather"
          },
          "type": "http",
          "method": "GET",
          "bodyType": "json",
          "pathParams": {}
        },
        "output": {
          "type": "json",
          "example": {
            "prompt": {
              "grade": "C",
              "score": 46,
              "out_of": 80,
              "feedback": [
                "Specify the exact output format you want (bullets, JSON, prose).",
                "Name the target reader or persona explicitly.",
                "Add one concrete example of the ideal response."
              ],
              "top_issue": "Specify the exact output format you want (bullets, JSON, prose).",
              "dimensions": {
                "total": 46,
                "clarity": 7,
                "context": 6,
                "examples": 4,
                "constraints": 5,
                "specificity": 6,
                "cot_structure": 6,
                "output_format": 7,
                "role_definition": 5
              },
              "threshold_met": true
            },
            "endpoint": {
              "wallet": "0xD2DfC5796de622E08C13f3016E92cfa15Ea33D0F",
              "trust_label": "Established",
              "trust_score": 0.78,
              "resolution_source": "well_known"
            },
            "clearance": "CAUTION",
            "confidence": 0.68,
            "pqs_version": "2.0",
            "upgrade_url": "https://promptqualityscore.com"
          }
        }
      },
      "schema": {
        "type": "object",
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "required": [
          "input"
        ],
        "properties": {
          "input": {
            "type": "object",
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "properties": {
              "body": {
                "type": "object",
                "required": [
                  "prompt"
                ],
                "properties": {
                  "prompt": {
                    "type": "string",
                    "maxLength": 10000,
                    "minLength": 1,
                    "description": "Prompt to preflight"
                  },
                  "vertical": {
                    "enum": [
                      "software",
                      "content",
                      "business",
                      "education",
                      "science",
                      "crypto",
                      "general",
                      "research"
                    ],
                    "type": "string",
                    "default": "general",
                    "description": "Domain: software/content/business/education/science/crypto/general/research"
                  },
                  "endpoint_url": {
                    "type": "string",
                    "description": "Optional endpoint URL for trust scoring"
                  }
                }
              },
              "type": {
                "type": "string",
                "const": "http"
              },
              "method": {
                "enum": [
                  "GET"
                ],
                "type": "string"
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "pathParams": {
                "type": "object"
              }
            },
            "additionalProperties": false
          },
          "output": {
            "type": "object",
            "required": [
              "type"
            ],
            "properties": {
              "type": {
                "type": "string"
              },
              "example": {
                "type": "object"
              }
            }
          }
        }
      },
      "category": "ai",
      "discoverable": true,
      "routeTemplate": ":var1"
    }
  },
  "serviceName": "Prompt Quality Score",
  "x402Version": 2
}

Accepts

The payment requirements as published to the catalog. Read the live 402 before paying — a price here is a claim, not a quote.

0.05USDC≈ $0.05 USD
on Base · exact scheme

Pay 0.05 USDC on Base to 0xB40a…e1308. The signed payment is good for 5 minutes.

USD Coin contract
0x8335…02913
Payment window
5 minutes
As published
50000 smallest units
Buys
Combined PQS prompt quality + x402 endpoint trust check before inference
Returns
application/json
The catalog’s raw entry
[
  {
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "extra": {
      "name": "USD Coin",
      "version": "2"
    },
    "payTo": "0xB40a687ca5483Ebc02F870348f6e08971Cae1308",
    "amount": "50000",
    "scheme": "exact",
    "iconUrl": "https://raw.githubusercontent.com/OnChainAIIntel/assets/main/onchainintel_profile_pic.png",
    "network": "eip155:8453",
    "category": "ai",
    "mimeType": "application/json",
    "resource": "https://api.relai.fi/relay/1779373065272/api/preflight",
    "description": "Combined PQS prompt quality + x402 endpoint trust check before inference",
    "serviceName": "Prompt Quality Score",
    "discoverable": true,
    "outputSchema": {
      "input": {
        "type": "http",
        "method": "POST",
        "bodyType": "json",
        "discoverable": true
      },
      "output": {
        "type": "object",
        "required": [
          "pqs_version",
          "clearance",
          "prompt"
        ],
        "properties": {
          "chain": {
            "enum": [
              "base",
              "solana"
            ],
            "type": "string"
          },
          "prompt": {
            "type": "object",
            "properties": {
              "grade": {
                "type": "string"
              },
              "score": {
                "type": "integer"
              },
              "out_of": {
                "enum": [
                  80
                ],
                "type": "integer"
              },
              "feedback": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "top_issue": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "dimensions": {
                "type": "object",
                "properties": {
                  "total": {
                    "type": "integer",
                    "maximum": 80,
                    "minimum": 8
                  },
                  "clarity": {
                    "type": "integer",
                    "maximum": 10,
                    "minimum": 1
                  },
                  "context": {
                    "type": "integer",
                    "maximum": 10,
                    "minimum": 1
                  },
                  "examples": {
                    "type": "integer",
                    "maximum": 10,
                    "minimum": 1
                  },
                  "constraints": {
                    "type": "integer",
                    "maximum": 10,
                    "minimum": 1
                  },
                  "specificity": {
                    "type": "integer",
                    "maximum": 10,
                    "minimum": 1
                  },
                  "cot_structure": {
                    "type": "integer",
                    "maximum": 10,
                    "minimum": 1
                  },
                  "output_format": {
                    "type": "integer",
                    "maximum": 10,
                    "minimum": 1
                  },
                  "role_definition": {
                    "type": "integer",
                    "maximum": 10,
                    "minimum": 1
                  }
                }
              },
              "threshold_met": {
                "type": "boolean"
              }
            }
          },
          "endpoint": {
            "type": "object",
            "properties": {
              "wallet": {
                "type": "string"
              },
              "trust_label": {
                "type": "string"
              },
              "trust_score": {
                "type": "number"
              },
              "resolution_source": {
                "type": "string"
              }
            },
            "description": "Present only when endpoint_url was supplied"
          },
          "clearance": {
            "enum": [
              "CLEAR",
              "CAUTION",
              "BLOCK"
            ],
            "type": "string"
          },
          "confidence": {
            "type": "number"
          },
          "pqs_version": {
            "enum": [
              "2.0"
            ],
            "type": "string"
          }
        }
      }
    },
    "networkLegacy": "base",
    "maxAmountRequired": "50000",
    "maxTimeoutSeconds": 300,
    "maxAmountRequiredUSD": "$0.05"
  }
]

Provenance

Seen in the source catalog
2026-09-20 05:29Z
Last indexed by Roundhouse
2026-09-21 04:45Z
Last enriched (probe, favicon, geo)
2026-09-16 17:45Z
x402 version
2
Max timeout
300s
Liveness probe
HTTP 402
Report

Hand this page to an agent

Copy the prompt and paste it into Claude, an MCP client or your own agent — it will vet this service and call it over the free read API. No key, no account.

GET api.roundhouseai.io/v0/endpoints

No per-endpoint history for this service yet, so this is payments indexed to its PROVIDER's wallet over 30 days. Verified volume counts only settlements with an on-chain EIP-3009 marker.

Open skill.md
Show the prompt
Using Roundhouse, look up the x402 service api.relai.fi and tell me whether it is
worth paying: what a call costs, whether the endpoint answered when last probed, and what
its payment record actually shows.

curl -s 'https://api.roundhouseai.io/v0/endpoints?q=api.relai.fi'
curl -s 'https://api.roundhouseai.io/v0/merchants/<the payTo wallet returned above>'

Then call it: read the price from the live 402 at https://api.relai.fi/relay/1779373065272/api/preflight, never from
a cached figure, and pay with an x402 client.

The /v0 API needs an API key (`authorization: Bearer rh_live_…`) on everything except
/v0/unified* and /v0/endpoints. Mint a personal key for $0.01 at GET https://api.roundhouseai.io/v0/test/x402,
or use an organization key from https://roundhouseai.io/dashboard/team.

If you do not have Roundhouse tools or skills installed, read
https://roundhouseai.io/skill.md first — it is the whole procedure.