OpenAI
Create or manage an OpenAI Platform API key in your own OpenAI account.
Get API key ↗API
The authoritative compiler is the Rust/Axum UPEC backend. The Next.js application reaches it through a same-origin server-side proxy.
Registration and login use email and password. Successful authentication returns a bearer session token and an organization id. The application proxy stores browser session context in httpOnly cookies and forwards the bearer token server-side.
POST /api/auth/register POST /api/auth/login POST /api/auth/logout GET /api/me
POST /api/premium/compile compiles the problem model and returns classification, strategy, diagnostics, done-state, execution contract, explainability, hashes and the final compiled prompt in one response.
curl -X POST https://<your-upec-host>/api/premium/compile \
-H "authorization: Bearer <UPEC_TOKEN>" \
-H "content-type: application/json" \
-d '{
"problem": "Checkout returns 500 under load",
"goal": "Keep p99 < 400ms at 2x peak",
"target": "coding_agent",
"risk": "medium",
"accuracy_profile": "verified",
"permissions": ["read_only", "edit"],
"success_criteria": ["Zero 500s in load test"]
}'| field | type | description |
|---|---|---|
| quality_score | number | Deterministic 0–100 quality score |
| readiness | string | Ready | NeedsPermission | Blocked | Unverified |
| done_state | string | Done | Partial | Blocked | Unverified |
| compiled_prompt | string | Rendered target-specific AI specification |
| source_hash | string | Integrity hash for normalized source material |
| prompt_hash | string | Integrity hash for the compiled prompt |
| build_fingerprint | string | Deterministic compilation fingerprint |
| lint_issues[] | object | Structured code, severity and message |
| execution_contract | object | Target/tool/permission execution decision |
Bring your own key
UPEC does not provide or resell OpenAI, Anthropic or Gemini API keys. Create the key in your own provider account, enable provider billing there when required, and then save that credential in UPEC.
Create or manage an OpenAI Platform API key in your own OpenAI account.
Get API key ↗Create or manage a Claude Platform API key in your own Anthropic account.
Get API key ↗Create or manage a Gemini API key in Google AI Studio.
Get API key ↗