Skip to content
LLM Router
Get started

Integrate Edgee to your stack

Learn how to integrate Edgee to your stack and start using Edgee services in your application.

Edgee can be integrated to your stack in different ways. You can use our SDKs, use our API directly, or use our official integrations with other tools.

Use our SDKs

npm install edgee

Then, you can start using Edgee in your application. Here is a quick example:

import Edgee from 'edgee';

const edgee = new Edgee(process.env.EDGEE_API_KEY);

const response = await edgee.send({
  model: 'gpt-5.2',
  input: 'What is the capital of France?',
});

console.log(response.content);
// "The capital of France is Paris."

if (response.compression) {
  console.log(`Tokens saved: ${response.compression.saved_tokens}`);
  console.log(`Reduction: ${response.compression.reduction}%`);
  console.log(`Cost savings: ${(response.compression.cost_savings / 1_000_000).toFixed(4)}`);
  console.log(`Compression time: ${response.compression.time_ms}ms`);
}
// "Tokens saved: 100"
// "Reduction: 18%"
// "Cost savings: $0.0093"
// "Compression time: 100ms"

To learn more about the SDKs, see the individual SDK pages.

Use Edgee in your Framework

You can use Edgee in your preferred Framework by using our official integrations.