Skip to Content
Reference

Provider price in context

GET
/v1/providers/{provider}/gpus/{gpu}/context

One provider's price for a GPU against its own recorded history.

Authorization

bearer
headerAuthorizationBearer <token>

Your API key: Authorization: Bearer opg_live_...

Path Parameters

provider*string

Provider id, e.g. lambda.

gpu*string

GPU id, e.g. nvidia-h100-80gb-sxm5. Older short names (h100-80gb-sxm5) are accepted as aliases; responses always return the id.

Query Parameters

segment?Segment
Default"on_demand"
Value in"on_demand""spot"

Header Parameters

OpenGrid-Version?"2026-11-03"

The API version to shape the response for. Default: the version pinned to your key.

Value in"2026-11-03"

Response Body

Success

application/json
  1. response
data*
meta*

Present on every success. List routes add limit, next_cursor (null on the last page) and total.

Example Request
curl -X GET 'https://data.tryopengrid.com/v1/providers/lambda/gpus/nvidia-h100-80gb-sxm5/context'
Example Response
{  "data": {    "current": 0,    "gpu": "string",    "gpu_name": "string",    "historical": {      "from_high_pct": 0,      "from_low_pct": 0,      "high": {        "hour": "string",        "value": 0      },      "low": {        "hour": "string",        "value": 0      },      "samples": 0,      "since": "string"    },    "hour": "string",    "interruptible": true,    "label": null,    "label_reason": "string",    "label_window": null,    "price_concept": "string",    "provider": "string",    "provider_name": "string",    "reason": null,    "recorded_since": "string",    "segment": "string",    "summaries": [      "string"    ],    "vs_market_median_pct": 0,    "windows": {      "property1": {        "coverage": 0,        "distance_from_median_pct": null,        "first_sample": "string",        "label": null,        "max": null,        "median": null,        "min": null,        "percentile": null,        "reason": "string",        "samples": 0,        "window": "string",        "window_hours": 0      },      "property2": {        "coverage": 0,        "distance_from_median_pct": null,        "first_sample": "string",        "label": null,        "max": null,        "median": null,        "min": null,        "percentile": null,        "reason": "string",        "samples": 0,        "window": "string",        "window_hours": 0      }    }  },  "meta": {    "as_of": "2019-08-24T14:15:22Z",    "api_version": "string",    "request_id": "string",    "next_cursor": "string",    "limit": 0,    "total": 0  }}