# AI Gradio - Documentation

> Explore ai-gradio and Novita AI to build interactive AI demos effortlessly with powerful large language models.

> For the complete documentation index, see [llms.txt](/llms.txt). Markdown is available with `Accept: text/markdown` and `.md` URL variants.

Source: /docs/guides/ai-gradio

# AI Gradio

Explore ai-gradio and Novita AI to build interactive AI demos effortlessly with powerful large language models.

AI-gradio simplifies AI development with its intuitive Python package, built on Gradio’s framework. Pairing it with Novita AI unlocks powerful capabilities through cutting-edge large language models, which deliver exceptional value through Novita AI’s reliable APIs, optimized performance, and cost-effective pricing—all within AI-gradio’s user-friendly interface.
This step-by-step guide will access Novita AI’s LLMs API on ai-gradio including methods to install ai-gradio and use Novita AI’s LLMs in ai-gradio.

##

[​](#how-to-install-ai-gradio)

How to Install ai-gradio

```
# Install core package
pip install ai-gradio

# Install with specific provider support
pip install 'ai-gradio[openai]' # OpenAI support
pip install 'ai-gradio[gemini]' # Google Gemini support
pip install 'ai-gradio[anthropic]' # Anthropic Claude support
pip install 'ai-gradio[groq]' # Groq support

# Install all providers
pip install 'ai-gradio[all]'
```

##

[​](#how-to-use-novita-ai’s-llms-in-ai-gradio)

How to use Novita AI’s LLMs in ai-gradio

###

[​](#step-1-set-up-environment-variables)

Step 1: Set up environment variables.

- Set NOVITA_API_KEY to your Novita API key.

```
export NOVITA_API_KEY=
```

###

[​](#step-2-modify-the-app-py-entry-file)

Step 2: Modify the app.py entry file.

```
import gradio as gr
import ai_gradio
gr.load(
name='novita:deepseek/deepseek-r1',
src=ai_gradio.registry,
).launch()
```

###

[​](#step-3-run-the-app-py-file-with-python-​)

Step 3: Run the app.py file with python.[​](https://novita.ai/docs/guides/third-party-langflow-guide#accessing-novita-ai-llm-api-on-langflow)

Last modified on September 1, 2025
