Web Service Network - API

Use

The BetterAI Web Service Network is a high-performance modular API designed to orchestrate artificial intelligence services in production.

On this page

    The BetterAI Web Service Network is a high-performance modular API designed to orchestrate artificial intelligence services in production. It exposes a set of specialized routers β€” deep web research, document parsing, image generation and vector store management β€” all accessible via HTTP with API key authentication.

    The API is built on FastAPI and served with Uvicorn, offering automatic interactive documentation via Swagger UI (/docs) and native support for asynchronous requests. Each endpoint returns standardized responses with job_id, status, payload (result or content) and execution time metrics, making traceability and integration with data pipelines easier.

    Base URL: http://localhost:8000
    Authentication: X-API-Key in the header of all protected routes
    Current version: 1.0.0

    🌐 Domain Β· 🩺 Health Β· πŸ“„ Documentation

    #Start application

    # uvicorn web_services:app --reload
    INFO:     Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
    INFO:     Started reloader process [8036] using StatReload
    INFO:     Router included: /davinci
    INFO:     Router included: /deep-research
    INFO:     Router included: /parse-content
    INFO:     Router included: /vector-store
    INFO:     Started server process [30416]
    INFO:     Waiting for application startup.
    INFO:
    
        ╔═══════════════════════════════════════════════════════════════════════╗
    
            β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—      β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ•— ✦
            β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•”β•β•β•β•β•β•šβ•β•β–ˆβ–ˆβ•”β•β•β•β•šβ•β•β–ˆβ–ˆβ•”β•β•β•β–ˆβ–ˆβ•”β•β•β•β•β•β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—    β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘
            β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—     β–ˆβ–ˆβ•‘      β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•    β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘
            β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•”β•β•β•     β–ˆβ–ˆβ•‘      β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•”β•β•β•  β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—    β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘
            β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—   β–ˆβ–ˆβ•‘      β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘  β–ˆβ–ˆβ•‘    β–ˆβ–ˆβ•‘  β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘
            β•šβ•β•β•β•β•β• β•šβ•β•β•β•β•β•β•   β•šβ•β•      β•šβ•β•   β•šβ•β•β•β•β•β•β•β•šβ•β•  β•šβ•β•    β•šβ•β•  β•šβ•β•β•šβ•β•
    
        β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•
    
                            ✦ Where intelligence finds purpose. ✦
    
    INFO:     BetterAI Web Service Network initialized successfully at 2026-05-21 16:19:25.
    INFO:     Version: 1.0.0
    INFO:     Domain: http://localhost:8000
    INFO:     Health check available at: http://localhost:8000/health
    INFO:     Documentation available at: http://localhost:8000/docs
    INFO:     Application startup complete.

    #Routers

    #Healthy - /healthy

    GET/health
    curl -X GET "http://127.0.0.1:8000/health"

    #Healthy With Authorization - /health-authorization

    GET/health-authorization
    curl --location 'http://localhost:8000/health-authorization' \
    --header 'X-API-Key: ******'

    Author: Enzo Schitini

    Source: src/web_services_network/api.py

    Esc
    ↑↓navigate Enteropen