Skip to main content
ethereal is compatible with the official OpenAI SDKs — you change the base_url and the key.
from openai import OpenAI

client = OpenAI(
    base_url="https://api.ethereal.llc/v1",
    api_key="eth-...",
)

resp = client.chat.completions.create(
    model="claude-sonnet-4-6",
    messages=[{"role": "user", "content": "Hello!"}],
)
print(resp.choices[0].message.content)
Streaming (stream=True) — see Streaming. Error handling — see Errors.