All models run on your own hardware..... or not?

I am guided by ==> Models: Fine-tuned - Roboflow Inference

I wrote:

import os
os.environ[“ROBOFLOW_API_KEY”] = “my roboflow API key”

but when executing:
model = get_model(model_id=“my model id”)
i get:
inference.core.exceptions.RoboflowAPINotAuthorizedError: Unauthorized access to roboflow API - check API key. Visit Authentication | Roboflow Docs to learn how to retrieve one.

What’s wrong?

Can somehow help me? Please )

API keys are scoped to your workspace. Can you make sure that you are getting the api key from the workspace your model is? If that doesn’t work, instead of using an environment variable, try passing the API key to the get_model call

model = get_model(model_id="your model id", api_key="apikeyhere")

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.