Skip to main content
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: 50%"
// "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.
https://mintcdn.com/edgee-retry-fallback-docs/4R474HGHjKZJ_IH9/images/icons/openai.svg?fit=max&auto=format&n=4R474HGHjKZJ_IH9&q=85&s=75e3fc5fc7f5250b73b81a776d696e60

OpenAI SDK

Point your existing OpenAI SDK at Edgee, no code changes, just swap the base URL and API key.
https://mintcdn.com/edgee-retry-fallback-docs/4R474HGHjKZJ_IH9/images/icons/anthropic.svg?fit=max&auto=format&n=4R474HGHjKZJ_IH9&q=85&s=fecbd58c8dcc223094dab93d5c2cc27b

Anthropic SDK

Use the Anthropic SDK with Edgee to access Claude and other models through one gateway.
https://mintcdn.com/edgee-retry-fallback-docs/4R474HGHjKZJ_IH9/images/icons/langchain.svg?fit=max&auto=format&n=4R474HGHjKZJ_IH9&q=85&s=53488b4ede9d04e6aa850b633dbbc921

LangChain

Run chains, agents, and RAG pipelines through Edgee for cost tracking and compression.