Skip to content

CompactifAI API

CompactifAI API

Compressed LLMs behind an OpenAI-compatible API. Swap the base URL, keep your code, and pay for a fraction of the compute.

  • Up to 70% lower inference cost
  • Up to 4× more requests per second
  • <5% typical benchmark loss

Make your first request

Full quickstart →
one SDK, any language
from openai import OpenAI
client = OpenAI(
base_url="https://api.compactif.ai/v1",
api_key="YOUR_API_KEY",
)
reply = client.chat.completions.create(
model="carina-60b",
messages=[{"role": "user", "content": "Hello!"}],
)
print(reply.choices[0].message.content)
200 OK“Hello! How can I help you today?”

What you can build

Browse features →

Use it in your tools

Already working in a coding tool? Point it at CompactifAI with an API key and the base URL. No change to your workflow.

Before you ship

What’s new

Full changelog →