POST /v1/private-inference/jobs
B3IQ-native async API for encrypted private jobs against a known enrolled node. This is not hosted OpenAI chat.

Authentication

API Key (header: X-B3IQ-Customer-ID) API Key (header: X-B3IQ-Customer-Token)

Request Body required

application/json
job_id string
node_id string REQUIRED
model_id string REQUIRED
max_price_wei string
encrypted_request object REQUIRED
version string REQUIRED
Enum: b3iq-private-transport-v1
key_id string REQUIRED
algorithm string REQUIRED
Enum: x25519-hkdf-sha256-chacha20poly1305
client_public_key_x25519 string REQUIRED
Base64url X25519 client public key.
nonce string REQUIRED
Base64url 12-byte AEAD nonce.
ciphertext string REQUIRED
Base64url encrypted payload.
aad_hash string
Optional sha256 hash of the AAD used when sealing the envelope.

Responses

202 Job queued and customer balance reserved.
application/json
status string REQUIRED
Enum: queued
job_id string REQUIRED
node_id string REQUIRED
command_id string REQUIRED
billing object REQUIRED
customer_id string
policy_version string
quoted_price_wei string
reserved_price_wei string
payout_price_wei string
status string
created_at string (date-time) REQUIRED
default B3IQ-native problem response.
curl -X POST 'https://{controlPlaneHost}/v1/private-inference/jobs' \  -H 'X-B3IQ-Customer-ID: YOUR_API_KEY' \  -H 'Content-Type: application/json' \  -d '{  "job_id": "string",  "node_id": "string",  "model_id": "string",  "max_price_wei": "string",  "encrypted_request": {    "version": "b3iq-private-transport-v1",    "key_id": "string",    "algorithm": "x25519-hkdf-sha256-chacha20poly1305",    "client_public_key_x25519": "string",    "nonce": "string",    "ciphertext": "string",    "aad_hash": "string"  }}'
const response = await fetch('https://{controlPlaneHost}/v1/private-inference/jobs', {  method: 'POST',  headers: {      "X-B3IQ-Customer-ID": "YOUR_API_KEY",      "Content-Type": "application/json"  },  body: JSON.stringify({    "job_id": "string",    "node_id": "string",    "model_id": "string",    "max_price_wei": "string",    "encrypted_request": {      "version": "b3iq-private-transport-v1",      "key_id": "string",      "algorithm": "x25519-hkdf-sha256-chacha20poly1305",      "client_public_key_x25519": "string",      "nonce": "string",      "ciphertext": "string",      "aad_hash": "string"    }  })});const data = await response.json();console.log(data);
202 Response
{  "status": "queued",  "job_id": "<string>",  "node_id": "<string>",  "command_id": "<string>",  "billing": {    "customer_id": "<string>",    "policy_version": "<string>",    "quoted_price_wei": "<string>",    "reserved_price_wei": "<string>",    "payout_price_wei": "<string>",    "status": "<string>"  },  "created_at": "2024-01-01T00:00:00Z"}
Ask a question... ⌘I