Documentation Index
Fetch the complete documentation index at: https://mintlify.com/GingerlyData247/SOTeam4-P2/llms.txt
Use this file to discover all available pages before exploring further.
Endpoint
Path Parameters
Type of artifact:
model, dataset, or codeThe unique numeric identifier of the artifact (1-12 digits)
Query Parameters
If
true, includes costs from all parent artifacts in the lineage graph. If false, returns only the standalone cost for this artifact.Response
Returns a cost breakdown object keyed by artifact ID.Standalone Mode (dependency=false)
Cost information for the requested artifact onlyProperties:
total_cost(number): Total estimated monthly cost in USD
Dependency Mode (dependency=true)
Cost information for each artifact in the lineage graphProperties:
standalone_cost(number): Cost for this artifact alone, excluding dependenciestotal_cost(number): Cumulative cost including all parent dependencies
Cost Components
The cost estimation aggregates four hardware cost factors from artifact metadata:- GPU cost per hour (
gpu_cost_hourorgpu_cost) - CPU cost per hour (
cpu_cost_hourorcpu_cost) - Memory cost per hour (
memory_cost_hourormem_cost_hour) - Storage cost per month (
storage_cost_monthorstorage_cost)
total_cost is the sum of these four components.
Hardware Compatibility Scores
The/artifact/model/{id}/rate endpoint returns size_score, which provides compatibility ratings (0.0 to 1.0) for different hardware platforms:
- Raspberry Pi: Low-power edge device (typically 4-8GB RAM)
- Jetson Nano: NVIDIA edge AI platform (4GB RAM, 128-core GPU)
- Desktop PC: Consumer workstation (16-32GB RAM, consumer GPU)
- AWS Server: Cloud instance (configurable RAM and GPU)
Example Requests
Standalone Cost
Cost with Dependencies
Example Responses
Standalone Cost
Cost with Dependencies
- Artifact 42 costs $125.50 standalone
- Artifact 42 has a parent (artifact 15) that costs $153.25
- Total cost to deploy artifact 42 with all dependencies: $278.75
Cost Calculation with Dependencies
Whendependency=true, the cost calculation works as follows:
- Build lineage graph: Use the same parent detection logic as
/artifact/model/{id}/lineage - Compute standalone costs: For each artifact in the graph, sum GPU + CPU + memory + storage costs
- Compute total costs: For each artifact, add its standalone cost to the total costs of all its parents (recursive)
- Return full breakdown: All artifacts in the lineage graph are included in the response
Error Responses
Invalid artifact type (must be “model”, “dataset”, or “code”) or invalid artifact ID format
Artifact not found - the specified ID does not exist in the registry
Behavior Notes
- Missing metadata: If cost fields are not present in artifact metadata, they default to 0.0
- External parents: Dependencies not in the registry (marked as
external:*in lineage) have zero cost - Recursive calculation: Costs are memoized during tree traversal to avoid redundant computation
- All artifact types: This endpoint works for models, datasets, and code artifacts
- Deterministic output: Same artifact ID and dependency flag always return the same result
Size Estimation
Model size (in bytes) is computed from Hugging Face model files:.binfiles (PyTorch checkpoints).safetensorsfiles (SafeTensors format).ptfiles (PyTorch serialized tensors)
size_score metric, which maps model size to deployment feasibility on different platforms.