createFn lets your backend call Nuabase for individual inputs using your API key—no token exchange needed on the server.
Initialize Nua with your API key
Define and call a function
Pass a prompt and output schema tocreateFn, then invoke the returned function with your input value.
result.data in downstream server logic.