Interact with Your Results
With your model deployed, you can now interact with it to process new data, either through the hosted API or by downloading the model for use in your own environment.
Using the Hosted API:
API Authentication:
API Key: Obtain from your account dashboard.
Header Format:
Authorization: Bearer YOUR_API_KEY
Endpoints:
Submit Data for Processing:
POST https://api.marketpay.app/v1/process
Request Body:
{
"model_id": "damage_assessment_v1",
"data": {
"claim_description": "A severe hailstorm damaged the roof and windows.",
"damage_images": ["https://example.com/image1.jpg", "https://example.com/image2.jpg"]
}
}
Retrieve Processed Data:
GET https://api.marketpay.app/v1/results/{job_id}
Replace {job_id}
with the ID received after submitting data.
Example Response:
{
"job_id": "job_xyz789",
"status": "completed",
"results": {
"Damage Location": ["Roof", "Windows/Doors"],
"Damage Severity": "Severe",
"Damage Type": "Hail",
"Requires Immediate Attention": true
}
}
Downloading the Model:
Steps:
Access Model Files:
In the "Model Management" section, select your model.
Click on "Download Model."
Choose Format:
Select the desired format (e.g., TensorFlow SavedModel, ONNX).
Integrate Locally:
Use the downloaded model within your own infrastructure.
Note: Ensure compatibility with your deployment environment.
Benefits:
Hosted API: Quick and easy access without managing infrastructure.
Downloaded Model: Greater control and customization in your own environment.
Last updated