--- title: Getaround Pricing API emoji: 🚗 colorFrom: blue colorTo: green sdk: docker app_port: 7860 --- # Getaround Pricing API This API predicts the optimal daily rental price for a car based on its features. ## Endpoints ### GET / Check if the API is running. ### GET /health Returns API status and model loading state. ### POST /predict Predict rental price. ### Example input { "input": [ { "model_key": "Citroën", "mileage": 140000, "engine_power": 100, "fuel": "diesel", "paint_color": "black", "car_type": "sedan", "private_parking_available": true, "has_gps": false, "has_air_conditioning": true, "automatic_car": false, "has_getaround_connect": false, "has_speed_regulator": true, "winter_tires": false } ] } ### Example output { "prediction": [120.5] } ## Model - Random Forest Regressor - Preprocessing: StandardScaler + OneHotEncoder (Pipeline) - Trained on Getaround dataset ## Tech Stack - FastAPI - Scikit-learn - Pandas - Joblib ## Documentation Interactive API documentation available at: /docs