Keep products independent
Use separate server-side keys and scopes for each application, customer, or environment.
Use GPT Gray and ByteAI workflows through a stable API. Keep your product, customers, and data independent while ByteAI powers the AI features underneath.
// Keep your key in your backend
const response = await fetch(
'https://api.byteai.in/v1/chat/completions', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.BYTEAI_API_KEY}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({
model: 'gpt-gray',
messages: [{ role: 'user', content: 'Explain this clearly.' }]
})
}
)Use separate server-side keys and scopes for each application, customer, or environment.
Use GPT Gray chat, web search, and structured task endpoints from your own backend.
Create, review, and revoke keys in your workspace. Track request counts and latency.
Create a scoped key, call the API from your server, and keep an eye on usage in the workspace.
View the full API referenceName a key for a product or environment. ByteAI shows the secret once.
Keep credentials out of browsers, mobile bundles, and public repositories.
Review request count and average response time, then rotate or revoke keys when needed.