26 print(f"Error saving JSON to file: {e}") 27 28 def get_model_version_info(hash_value): 29 api_url = f"https://civitai.com/api/v1/model-versions/by-hash/{hash_value}" 30 response = requests.get(api_url) 31 32 if response.status_code == 200: 33 return response.json()