Velarion Benchmark API
The Benchmark API from Velarion, for benchmark.
The Benchmark API from Velarion, for benchmark.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/velarion-ai:velarion-ai-benchmark-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Velarion Ai Benchmark API
version: 1.0.0
description: 'Operations tagged Benchmark across 2 of this provider''s published API definitions: openapi.json, velarion-ai-openapi.json. Each path carries the servers of the definition it was published in.'
tags:
- name: Benchmark
paths:
/benchmark:
post:
summary: Benchmark
description: 'P5 private-benchmarking endpoint. Proxied by velarion-intel /api/benchmark.
T773: every figure comes from the one store -- lib.report_facts.benchmark_json builds the
benchmark fact set in memory (no write; the profile is never logged or stored) and returns the
page''s JSON contract from those facts, the same figures the benchmark PDF prints.'
operationId: benchmark_benchmark_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/BenchmarkBody'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Benchmark
/benchmark/preview:
post:
summary: Benchmark Preview
description: 'F1 pre-payment cohort gate. Public + rate-limited. Runs P0 cohort selection
only and persists a single-use preview for publishable cohorts. NEVER renders
a report (a free preview must not produce the paid artifact).'
operationId: benchmark_preview_benchmark_preview_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/BenchmarkPreviewBody'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Benchmark
/benchmark/render:
post:
summary: Benchmark Render
description: 'Render-before-purchase. Produces the 30-page PDF + per-page HTML preview
payload for an existing benchmark preview WITHOUT emailing or consuming it.
Idempotent on preview_id. Returns 200 {status:completed} if the artifact
already exists, else dispatches a background render and returns 202
{status:rendering}. Auth is upstream (CompBrief cost caps) — mirrors the
public, rate-limited /benchmark/preview.'
operationId: benchmark_render_benchmark_render_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/BenchmarkRenderBody'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Benchmark
/benchmark/render-status:
get:
summary: Benchmark Render Status
description: 'Status of an in-flight PrivateCo render. Storage-state-derived (no DB
job row): preview.json present → completed; error.json present → failed
(or "needs_human" — D&H&R Lane 2, 2026-07-10: the marker''s own JSON body
carries {"status":"needs_human", "reason":...} when the repair loop
exhausted rather than an infra error; older/plain error markers with no
"status" field still read as "failed", preserving backward compatibility
for the storefront poller); neither → rendering.'
operationId: benchmark_render_status_benchmark_render_status_get
parameters:
- name: preview_id
in: query
required: true
schema:
type: string
title: Preview Id
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Benchmark
/benchmark/preview-html:
get:
summary: Benchmark Preview Html
description: 'Signed URL to the per-page HTML preview payload for a rendered PrivateCo
artifact. CompBrief''s /api/benchmark/preview-html route proxies this after
verifying its own signed token; the render_hash query param is an extra
integrity check that the caller derived the same key from preview_id.'
operationId: benchmark_preview_html_benchmark_preview_html_get
parameters:
- name: preview_id
in: query
required: true
schema:
type: string
title: Preview Id
- name: render_hash
in: query
required: true
schema:
type: string
title: Render Hash
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Benchmark
/benchmark/deliver:
post:
summary: Benchmark Deliver
description: 'Deliver an already-rendered PrivateCo benchmark report by email. Admin-
authed (post-purchase webhook). Locates the pre-rendered PDF by preview_id,
signs a 30-day download URL (mirrors /benchmark/generate), emails it.
Returns 404 if no artifact exists so the caller falls back to
/benchmark/generate. Idempotent: artifact is static, email is idempotency-
keyed, so webhook retries are safe.'
operationId: benchmark_deliver_benchmark_deliver_post
parameters:
- name: x-velarion-admin-token
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-Velarion-Admin-Token
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/BenchmarkDeliverBody'
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Benchmark
/benchmark/generate:
post:
summary: Benchmark Generate
description: 'DEPRECATED 2026-06-23 — kept as the fallback path for the render→deliver
flow (CompBrief calls this when no pre-rendered artifact exists at
fulfillment) and as the deprecation runway; remove after 7d of clean
/render→/deliver operation.
F2 full pipeline: preview_id → PDF → Supabase Storage → signed URL → email.
Admin-auth this lane; a Stripe webhook signature replaces the auth next lane.
Replay-protected: a preview is single-use (atomic consumed_at claim).'
operationId: benchmark_generate_benchmark_generate_post
parameters:
- name: x-velarion-admin-token
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-Velarion-Admin-Token
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/BenchmarkGenerateBody'
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Benchmark
components:
schemas:
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
input:
title: Input
ctx:
type: object
title: Context
type: object
required:
- loc
- msg
- type
title: ValidationError
BenchmarkDeliverBody:
properties:
preview_id:
type: string
title: Preview Id
delivery_email:
type: string
title: Delivery Email
type: object
required:
- preview_id
- delivery_email
title: BenchmarkDeliverBody
BenchmarkGenerateBody:
properties:
preview_id:
type: string
title: Preview Id
subject_comp:
anyOf:
- additionalProperties: true
type: object
- type: 'null'
title: Subject Comp
delivery_email:
type: string
title: Delivery Email
type: object
required:
- preview_id
- delivery_email
title: BenchmarkGenerateBody
BenchmarkPreviewBody:
properties:
profile:
additionalProperties: true
type: object
title: Profile
options:
anyOf:
- additionalProperties: true
type: object
- type: 'null'
title: Options
type: object
required:
- profile
title: BenchmarkPreviewBody
BenchmarkRenderBody:
properties:
preview_id:
type: string
title: Preview Id
sbid:
anyOf:
- type: string
- type: 'null'
title: Sbid
saved_payload:
anyOf:
- additionalProperties: true
type: object
- type: 'null'
title: Saved Payload
type: object
required:
- preview_id
title: BenchmarkRenderBody
BenchmarkBody:
properties:
profile:
additionalProperties: true
type: object
title: Profile
options:
anyOf:
- additionalProperties: true
type: object
- type: 'null'
title: Options
type: object
required:
- profile
title: BenchmarkBody
x-refined-from:
- openapi.json
- velarion-ai-openapi.json