Roboflow API キーの見つけ方
Roboflow API と Roboflow Inference で認証するための API キーを見つけます
最終更新
役に立ちましたか?
役に立ちましたか?
export ROBOFLOW_API_KEY=YOUR_API_KEYfrom inference import get_model
model = get_model(model_id="...", api_key="YOUR_API_KEY")import requests
my_api_key = "YOUR_API_KEY"
url = f"http://localhost:9001/soccer-players-5fuqs/1?api_key={my_api_key}"
response = requests.post(url)
url = "http://localhost:9001/infer/object_detection"
payload = {
"api_key": my_api_key,
"model_id": "soccer-players-5fuqs/1",
}
response = requests.post(url, json=payload)docker run -it --rm --network=host -e ROBOFLOW_API_KEY=YOUR_API_KEY roboflow/roboflow-inference-server-cpu:latest