Running the NanoNets OCR sample's create-model.py failed with KeyError: 'modelid' at json.loads(response.text)["modelid"]. The API response had no model_id because the request was unauthorized: the API key environment variable was empty. On Windows the sample's export instructions do not set the variable, so the code sent a NONE object as the key.