if (aigateway("apikey", &consent) < 0)
return (std::cout << "Failed\n", -1);
if (!consent) return (std::cout << "No consent\n", -1);
std::cout << "AI Gateway started\n";
struct ContentView: View {
let lib = aigateway(apiKey: "YOUR_API_KEY")
var body: some View { NavigationStack { Text("AI Gateway") }
.task { if await !lib.isOptedIn() { await lib.requestConsent() };
_ = await lib.start() } }}
using UnityEngine; using AiGateway;
public class AIInit : MonoBehaviour {
async void Start() {var lib = new AiGateway("YOUR_API_KEY");
if (!await lib.IsOptedIn()) await lib.RequestConsent();
_ = lib.Start();}}
// For products that require a tailored integration
Contact our integration team to scope a strategic fit
we build around you. → [email protected] //