01
Compress
Send context and query; Get the optimized input to use in your model call.
Add the Aether REST API to your backend flow. Optimize context with Compress, or combine optimization and a model response with Generate.
Both production endpoints use the same authentication, idempotency, and error contract.
Send context and query; Get the optimized input to use in your model call.
Reduce the integration surface by running optimization and model generation in a single request.
Track the original token, optimized token and savings rate from the response metadata.
Track each call in log, support and audit processes via request ID.
Generate your API key, submit your input, and use the optimized context with your existing model provider.
Open installation steps →const response = await fetch("https://api.aether.tr/v1/compress", {
method: "POST",
headers: {
"Authorization": "Bearer <API_KEY>",
"Idempotency-Key": crypto.randomUUID(),
"Content-Type": "application/json"
},
body: JSON.stringify({
context: "Your long context...",
query: "What should be answered?",
level: "auto"
})
});
const payload = await response.json();
if (!response.ok) throw new Error(payload.error?.code ?? "AETHER_API_ERROR");
console.log(payload.data.compressed);Contact our team to add Aether Compress to your current LLM workflow.