Code Blocks

Code Blocks

Display a focused, syntax-highlighted code sample with a copy action for quick implementation.

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: "user",
content: "Explain what an API is in one sentence."
}
]
});
 
console.log(response.output);
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: "user",
content: "Explain what an API is in one sentence."
}
]
});
 
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.