AI SDK with Flask

AI SDK with Flask

Use Flask and AI SDK on Vercel with Serverless Functions using the Python Runtime.

0
boilerplate.detail.features.liveDemo

boilerplate.detail.metadata.lastUpdated

il y a 2 mois

R

boilerplate.detail.metadata.author

Renaud

boilerplate.detail.metadata.price

boilerplate.detail.metadata.free

Documentación

Flask + Vercel

This example shows how to use Flask and AI SDK on Vercel with Serverless Functions using the Python Runtime.

Demo

https://ai-sdk-preview-flask.vercel.app/api/generate?prompt="hey!"

How it Works

This example uses the Web Server Gateway Interface (WSGI) with Flask to handle requests on Vercel with Serverless Functions.

Running Locally

npm i -g vercel
python -m venv .venv
source .venv/bin/activate
uv sync  # or alternatively pip install flask gunicorn
gunicorn main:app

Your Flask application is now available at http://localhost:3000.

boilerplate.detail.sections.discussion

Comentarios (0)

FAQ

Preguntas Frecuentes

¿Tienes una pregunta? Tenemos las respuestas. Si no encuentras lo que buscas, no dudes en contactarnos.

Boilerapp es una plataforma comunitaria dedicada a compartir boilerplates, starter kits y plantillas de proyectos para desarrolladores. Nuestro objetivo es simple: hacerte ahorrar tiempo en la configuración inicial (setup) para que puedas programar lo que realmente importa. Ya busques una base de código simple o un proyecto SaaS completo, lo encontrarás aquí.

¿Tienes otras preguntas?

Nuestro equipo está aquí para ayudarte. Contáctanos y te responderemos lo antes posible.