The Open Standard for Generative UI
import { CloudIntegrationSetup, type CloudIntegrationStep } from "../CloudIntegrationSection";
import styles from "./sections.module.css";
const STEPS: CloudIntegrationStep[] = [
{
title: "Generate an API key",
description: "Create a Gateway key in the OpenUI console.",
href: "https://console.thesys.dev/keys",
},
{
title: "Update your base URL and model",
description:
"Use the Gateway endpoint as your base URL and choose any provider/model identifier.",
},
{
title: "Enable Gateway in your prompt",
description: "Include your component schema so Gateway can validate each response.",
},
];
const GATEWAY_EXAMPLE = `const client = new OpenAI({
apiKey: process.env.THESYS_API_KEY,
baseURL: "https://api.thesys.dev/v1/embed",
});
const response = await client.chat.completions.create({
model: "openai/gpt-5",
messages: [
{ role: "system", content: generatePrompt({ cloud: true }) },
...messages,
],
});`;
export function IntegrateSection() {
return (
<section className={styles.adoptionSection} aria-labelledby="gateway-integrate">
<CloudIntegrationSetup
title={
<>
Adopt it by changing
<br className={styles.adoptionTitleBreak} /> your base URL
</>
}
titleId="gateway-integrate"
steps={STEPS}
code={GATEWAY_EXAMPLE}
highlightLines={[2, 6, 8]}
codeLabel="OpenUI Gateway client configuration"
action={{ label: "Read integration guide", href: "/docs/gateway/generate-openui-lang" }}
titleSize="medium"
/>
</section>
);
}