Frontier AI inference.
Lowest price.
Integration
Same SDK. Same code.
Better price.
codelace is OpenAI-compatible. Set two environment variable and your existing code works — no migration, no new library.
from openai import OpenAI
client = OpenAI(
base_url="https://api.codelace.com/v1",
api_key="cl_your_key",
)
stream = client.chat.completions.create(
model="anthropic/claude-opus-4.6",
messages=[{"role": "user", "content": "Hello"}],
stream=True,
)
for chunk in stream:
print(chunk.choices[0].delta.content or "", end="")