Get started

Get an API key, make a verified request against the OpenAI-compatible endpoint, and check the attestation.

The Confidential Inference API is OpenAI-compatible: point an existing client at our base URL and keep the rest of your code. Versus non-confidential inference: 4% lower token throughput, negligible impact on Time to First Token.

1. Get an API key

API keys are provisioned by Confidential AI. Email hello@confidential.ai with the models you want, expected volume and use case, or use the request access form. DeepSeek V4 Flash is live; other models on request.

2. Make a request

All endpoints are served from https://api.confidential.ai. Call /v1/models to list the model IDs available to your key, then /v1/chat/completions:

curl https://api.confidential.ai/v1/chat/completions \
  -H "Authorization: Bearer $CONFIDENTIAL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "deepseek-v4-flash-0731",
    "messages": [{"role": "user", "content": "Explain remote attestation in one sentence."}]
  }'

Or with the OpenAI Python client:

from openai import OpenAI

client = OpenAI(
    base_url="https://api.confidential.ai/v1",
    api_key="$CONFIDENTIAL_API_KEY",
)

resp = client.chat.completions.create(
    model="deepseek-v4-flash-0731",
    messages=[{"role": "user", "content": "Explain remote attestation in one sentence."}],
)
print(resp.choices[0].message.content)

Every endpoint, field, and error code is in the API reference.

3. Verify before you trust

Before sending sensitive input, fetch the attestation with a fresh nonce and verify it against the hardware vendors' root certificates. Attestation covers the endpoint, the evidence it returns, and the verification flow. Overview explains how the pieces fit.