# Mozilla Llamafile in Supabase Edge Functions

DevFeed: [Mozilla Llamafile in Supabase Edge Functions](<https://devfeed.tech/articles/mozilla-llamafile-in-supabase-edge-functions-458.md>)

Original publisher: [Read original article](<https://supabase.com/blog/mozilla-llamafile-in-supabase-edge-functions>)

Author: Thor Schaeff

Published: 2024-08-21T07:00:00Z

Content type: tutorial

Language: en

Sources: [Supabase Blog](<https://devfeed.tech/sources/supabase-blog.md>)

Topics: [llamafile](<https://devfeed.tech/topics/llamafile.md>), [Supabase](<https://devfeed.tech/topics/supabase.md>), [AI Inference](<https://devfeed.tech/topics/ai-inference.md>), [API](<https://devfeed.tech/topics/api.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>), [Command-line interface](<https://devfeed.tech/topics/cli.md>), [Docker](<https://devfeed.tech/topics/docker.md>), [OpenAI](<https://devfeed.tech/topics/openai.md>), [fly.io](<https://devfeed.tech/topics/fly-io.md>), [Open Source](<https://devfeed.tech/topics/open-source.md>)

Tags: [ai-inference](<https://devfeed.tech/tags/ai-inference.md>), [api](<https://devfeed.tech/tags/api.md>), [cli](<https://devfeed.tech/tags/cli.md>), [docker](<https://devfeed.tech/tags/docker.md>), [fly-io](<https://devfeed.tech/tags/fly-io.md>), [llamafile](<https://devfeed.tech/tags/llamafile.md>), [llms](<https://devfeed.tech/tags/llms.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [openai](<https://devfeed.tech/tags/openai.md>), [vs-code](<https://devfeed.tech/tags/vs-code.md>)

## AI overview

This tutorial explains how to run Mozilla Llamafile as an OpenAI API-compatible inference server with Supabase Edge Functions. It covers calling Llamafile through the functions-js interface or the OpenAI Deno SDK, serving functions locally with the Supabase CLI and Docker, and deploying Llamafile and Supabase Edge Functions.

## Source excerpt

Use Mozilla Llamafile OpenAI API compatible server in Supabase Edge Functions.