Anthropic proxy
Configuration for Anthropic endpoints
Configuration
The Velvet gateway domain is gateway.usevelvet.com
.
Modify the baseURL
for Velvet's gateway URL.
https://gateway.usevelvet.com/api/anthropic/
Here's an example code snippet for JavaScript.
import Anthropic from "@anthropic-ai/sdk";
const anthropic = new Anthropic({
apiKey: process.env.ANTHROPIC_API_KEY,
baseURL: "https://gateway.usevelvet.com/api/anthropic/",
defaultHeaders: {
"velvet-auth": process.env.VELVET_API_KEY,
},
});
Updated 3 days ago