Getting Started
Quickstart
Already using the OpenAI SDK? Change one base URL and your app is private + green. Nothing else in your code changes.
OpenAI SDK
Point the client at Ealna and pass your key. Every response is computed in a confidential enclave and returns a Green Compute Certificate alongside the answer.
python
from openai import OpenAI
client = OpenAI(
base_url="https://api.ealna.com/v1",
api_key=EALNA_KEY,
)
resp = client.chat.completions.create(
model="ealna-glm", # or "ealna-kimi"
messages=[{"role": "user", "content": "Hello, Ealna"}],
)
print(resp.choices[0].message.content)
print(resp.certificate.serial) # GCC-...Over HTTP
Or straight over HTTP with a bearer key — pay-per-call settles over x402:
bash
curl https://api.ealna.com/v1/chat/completions \
-H "Authorization: Bearer $EALNA_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "ealna-glm",
"messages": [{"role": "user", "content": "Hello"}],
"stream": false
}'Embeddings
Create private embeddings for retrieval over your own data — same drop-in interface:
python
client.embeddings.create(
model="ealna-embed",
input=["confidential document chunk"],
)Next steps
- Authentication — wallet sign-in for the dApp, bearer keys for the API.
- The Veil / The Watt — how privacy and carbon are enforced per job.
- Chat completions — full request/response, streaming, and models.
Model names are stable aliases (ealna-glm, ealna-kimi, ealna-embed) — the network picks the cheapest, greenest node that meets your quality bar.