Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API 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.
openapi: 3.2.0
info:
title: Secure AI Sealed API
version: 1.0.0
description: 'Data loss prevention for AI agents. Inspects what an agent is about to do — the tool call, with its arguments — and allows, redacts or blocks it according to rules the account holds. Every inspected action is logged as kinds and locations, never as values.
The detector half is still here on its own: /redact swaps the people in a piece of text for plausible stand-ins before it reaches a model, and /restore puts them back.'
contact:
url: https://secureai.one/developers
servers:
- url: https://secureai.one/v1
security:
- apiKey: []
tags:
- name: Sealed
paths:
/sealed:
get:
summary: What Secure mode will trust
description: Where the enclave is, the PCR0 values of the builds Secure AI vouches for, and the models Secure mode can use. No key needed.
operationId: getSealed
security: []
responses:
'200':
description: Discovery
content:
application/json:
schema:
type: object
properties:
object:
type: string
const: sealed
available:
type: boolean
enclave:
type: string
format: uri
images:
type: array
items:
type: string
models:
type: array
items:
type: object
properties:
id:
type: string
provider:
type: string
default_model:
type: string
max_output_tokens:
type: integer
tags:
- Sealed
/sealed/chat:
post:
summary: 'Secure mode: a sealed conversation'
description: 'The body is an envelope sealed to the enclave''s attested key; the answer is a stream of sealed pieces. Use the TypeScript SDK''s secureChat rather than building this by hand. API subscription only. Charged a fixed price per message: the model''s rate for the request''s size plus 4,096 output tokens.'
operationId: sealedChat
parameters:
- name: X-Model
in: header
required: true
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- v
- k
- c
properties:
v:
type: integer
const: 1
k:
type: string
description: Session key wrapped with RSA-OAEP-SHA-256, base64
c:
type: string
description: IV and AES-256-GCM ciphertext of the request, base64
responses:
'200':
description: Sealed pieces as server-sent events
content:
text/event-stream: {}
'400':
description: Model not available in Secure mode
'402':
description: Out of balance
'403':
description: Needs the API subscription
'503':
description: Enclave unreachable; nothing sent or charged
tags:
- Sealed
components:
securitySchemes:
apiKey:
type: http
scheme: bearer
description: A key created in Settings → Developer. Shown once; what is stored is its SHA-256.