API Usage
API IDENTIFIER
inference-net/schematron-v2-smallimport OpenAI from "openai";
const openai = new OpenAI({
baseURL: "https://api.inference.net/v1",
apiKey: process.env.INFERENCE_API_KEY,
});
const completion = await openai.chat.completions.create({
model: "inference-net/schematron-v2-small",
messages: [
{
role: "user",
content: "What is the meaning of life?"
}
],
stream: true,
});
for await (const chunk of completion) {
process.stdout.write(chunk.choices[0]?.delta.content as string);
}Playground
System
Start a conversation. Your assistant output and role context will appear here.
0.7
1,024
1.00
0.0
0.0
0/4
CONTACT
Meet with our research team
Schedule a call with our research team to learn more about how Specialized Language Models can cut costs and improve performance.


