convez.ai
PluginIntegração & APIsIntermediário
furkankyildirim

Anthropic FastAPI Service

furkankyildirim/anthropic-fastapi-service

API REST para Claude com FastAPI e Docker

Ver no GitHub
InicialPluginScore · de 0 a 100

Serviço FastAPI que expõe uma API RESTful para o modelo Claude da Anthropic, permitindo integrar IA em aplicações web. Inclui documentação interativa via Swagger e suporte para mensagens de sistema customizadas.

Instalação

$npx convez-ai furkankyildirim/anthropic-fastapi-service

1 comando no terminal: detecta o formato do repositório (marketplace ou plugin avulso) e instala via Claude Code. Requer Node 18+ e o Claude Code instalado.

Métricas

Estrelas
3
Forks
4
Acompanhando
1
Saúde
28%
Último commit
há 1 ano
Versão
—
Issues abertas
0
Contribuidores
1

Casos de uso

  • Criar backends de IA para aplicações web
  • Integrar Claude em microsserviços
  • Prototipar chatbots com API padronizada

Veredito

Solução prática e bem estruturada para expor Claude via HTTP, ideal para equipes que precisam de uma camada de API antes de usar o modelo em produção. Docker e documentação Swagger reduzem fricção de deployment.

README

A tradução para o português deste README ainda está na fila.

Anthropic FastAPI Service

This is a FastAPI service that provides a RESTful API for the Anthropic Claude AI model using anthropic-sdk-python. For more information on the model, please refer to the Anthropic Claude AI model

Documentation

The API documentation can be found at http://localhost:8000/docs

Running the Project

Running the Project Locally

  1. Clone the repository
git clone https://github.com/furkankyildirim/anthropic-fastapi-service.git
cd anthropic-fastapi-service/
  1. Create a .env file in the root directory and add the following environment variables
ANTHROPIC_API_KEY=YOUR_API_KEY
  1. Create a system message file on src/data/system-messages.txt (Optional)
echo "You are a personal AI assistant" > src/data/system-messages.txt
  1. Create a virtual environment and install the dependencies
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
  1. Run the following commands to start the server
chmod +x runner.sh
./runner.sh

Running the Project with Docker

  1. Clone the repository
git clone https://github.com/furkankyildirim/anthropic-fastapi-service.git 
cd anthropic-fastapi-service/
  1. Create a .env file in the root directory and add the following environment variables
ANTHROPIC_API_KEY=YOUR_API_KEY
  1. Create a system message file on src/data/system-messages.txt (Optional)
echo "You are a personal AI assistant" > src/data/system-messages.txt
  1. Build and run the docker container
docker-compose up --build
Ver o original no GitHub

Bom para

Relacionados