Code Group

Code Group

Group related code samples into language or framework tabs so developers can choose the example that matches their stack.

How to use

How to use

How to use

In the canvas text editor, type “/code_block_cms” and choose Code_Block_CMS from the insert menu.

import { NovaAI } from "@novaai/sdk";
 
const client = new NovaAI({
apiKey: process.env.NOVA_API_KEY,
});
 
const response = await client.chat.create({
model: "nova-chat-4",
messages: [
{
role: "system",
content: "You are a helpful technical assistant."
},
{
role: "user",
content: "Explain what APIs are in simple terms."
}
]
});
 
console.log(response.output);


Was this helpful?

Was this helpful?

Create a free website with Framer, the website builder loved by startups, designers and agencies.