puter.ai.listModelProviders()Returns the AI providers that are available through Puter.js.
puter.ai.listModelProviders()
None
A Promise that will resolve to an array of string containing each AI providers.
<html>
<body>
<script src="https://js.puter.com/v2/"></script>
<script>
(async () => {
// Fetch all providers
const providers = await puter.ai.listModelProviders();
puter.print(providers)
})();
</script>
</body>
</html>