<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/how-to-create-an-ai-chatbot-using-one-api-to-access-multiple-llms-qy3ji9k4i" -->

---
title: How to create an AI chatbot using one API to access...
description: Learn to create an AI chatbot app using Replicate and Streamlit, integrating multiple LLMs with a single API call. The post covers basics of Replicate, a...
canonical: https://daily.dev/posts/how-to-create-an-ai-chatbot-using-one-api-to-access-multiple-llms-qy3ji9k4i
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: How to create an AI chatbot using one API to access multiple LLMs | daily.dev
og:description: Learn to create an AI chatbot app using Replicate and Streamlit, integrating multiple LLMs with a single API call. The post covers basics of Replicate, a...
og:url: https://daily.dev/posts/how-to-create-an-ai-chatbot-using-one-api-to-access-multiple-llms-qy3ji9k4i
og:image: https://api.daily.dev/og/posts/qy3Ji9k4I.png
og:image:alt: How to create an AI chatbot using one API to access multiple LLMs
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# How to create an AI chatbot using one API to access multiple LLMs

**[Streamlit](https://daily.dev/sources/streamlit)** · 8 min read · 51 upvotes · 0 comments

## Summary

Learn to create an AI chatbot app using Replicate and Streamlit, integrating multiple LLMs with a single API call. The post covers basics of Replicate, a platform for deploying and fine-tuning open-source AI models, and Streamlit, a Python framework for building interactive apps. It includes a step-by-step demo for setting up the chatbot app and best practices for using Replicate, such as choosing the right model for the prompt and utilizing webhooks and streaming for performance improvements.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://blog.streamlit.io/how-to-create-an-ai-chatbot-llm-api-replicate-streamlit/>

---

Tags: [#ai](https://daily.dev/tags/ai), [#machine-learning](https://daily.dev/tags/machine-learning), [#python](https://daily.dev/tags/python), [#bots](https://daily.dev/tags/bots)

[View this post on daily.dev](https://daily.dev/posts/how-to-create-an-ai-chatbot-using-one-api-to-access-multiple-llms-qy3ji9k4i)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"How to create an AI chatbot using one API to access multiple LLMs","url":"https://daily.dev/posts/how-to-create-an-ai-chatbot-using-one-api-to-access-multiple-llms-qy3ji9k4i","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/how-to-create-an-ai-chatbot-using-one-api-to-access-multiple-llms-qy3ji9k4i"},"datePublished":"2024-08-23T18:33:24.570Z","dateModified":"2024-11-07T09:11:45.967Z","description":"Learn to create an AI chatbot app using Replicate and Streamlit, integrating multiple LLMs with a single API call. The post covers basics of Replicate, a...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/3705c94a08ff3810aae9c2b00a3dc706?_a=AQAEuiZ","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/3705c94a08ff3810aae9c2b00a3dc706?_a=AQAEuiZ","isAccessibleForFree":true,"articleSection":"Streamlit","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Streamlit","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/57e699f17945462aa42a131ced64a60e","url":"https://daily.dev/sources/streamlit"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/how-to-create-an-ai-chatbot-using-one-api-to-access-multiple-llms-qy3ji9k4i","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":51},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"ai,machine-learning,python,bots","timeRequired":"PT8M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Streamlit","item":"https://daily.dev/sources/streamlit"},{"@type":"ListItem","position":3,"name":"How to create an AI chatbot using one API to access multiple LLMs"}]}
```

