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 →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)import OpenAI from "openai";
const client = new OpenAI({baseURL: "https://api.compactif.ai/v1",apiKey: "YOUR_API_KEY",});
const reply = await client.chat.completions.create({model: "carina-60b",messages: [{ role: "user", content: "Hello!" }],});console.log(reply.choices[0].message.content);curl https://api.compactif.ai/v1/chat/completions \-H "Authorization: Bearer YOUR_API_KEY" \-H "Content-Type: application/json" \-d '{ "model": "carina-60b", "messages": [{"role": "user", "content": "Hello!"}]}'200 OK
“Hello! How can I help you today?”Models
Full catalog →What you can build
Browse features →Speaks three dialects
Use the OpenAI SDK you already have, or reach for the Responses and Anthropic Messages APIs.
- POST /v1/chat/completions
- POST /v1/responses
- POST /v1/messages
Tool calling
Describe your functions and the model replies with the call and its arguments.
toolsStructured output
Pass a JSON schema and get back JSON that validates against it.
response_formatSpeech to text
Compressed Whisper, about half the size.
Images and video
Send visual input to multimodal models like Qwen 3.8.
Web search
A /v1/web_search endpoint that returns ranked results as structured data, or a tool your model can call.
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 →GLM 5.4 and Comet 60B are now availableImage and video input, tool calling and structured output.Reasoning now carries across turnsEarlier reasoning stays in the prompt by default.Responses now show guardrail resultsSee when a request was flagged or had personal data masked.The API can now download remote imagesPass an image URL, up to 20 MB per image.