from medrouter.client import MedRouter
client = MedRouter(api_key="your API key")
response = client.segmentation.process(
source="your input files path (local)",
model="total-segmentator",
model_id=777,
prechecks=False,
extra_output_type="ply",
notes="The patient has issue in the liver",
check_interval=15,
max_retries=2,
verbose=True
)
print("Final response:", response)
curl -X POST "$URL" \
-H "Authorization: $API_KEY" \
-F "file=@$INPUT_FILE" \
-F "model=total-segmentator" \
-F 777 \
-F "notes=this is a note from the doctor" \
-F "extra_output_type=stl" \