Model Metadata
GET/v2/models/$:MODEL_NAME/versions/$:MODEL_VERSION
The per-model metadata endpoint provides information about a model. A model metadata request is made with an HTTP GET to a model metadata endpoint. In the corresponding response the HTTP body contains the Model Metadata Response JSON Object or the Model Metadata Response JSON Error Object. The model name and (optionally) version must be available in the URL. If a version is not provided the server may choose a version based on its own policies or return an error.
Request
Path Parameters
MODEL_NAME stringrequired
MODEL_VERSION stringrequired
Responses
- 200
OK
- application/json
- Schema
- Example (auto)
Schema
namestringrequired
versionsstring[]
platformstringrequired
inputs object[]
outputs object[]
properties object
{
"name": "string",
"versions": [
"string"
],
"platform": "string",
"inputs": [
{
"name": "string",
"datatype": "string",
"shape": [
0
]
}
],
"outputs": [
{
"name": "string",
"datatype": "string",
"shape": [
0
]
}
],
"properties": {}
}
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://deploy-preview-601--elastic-nobel-0aef7a.netlify.app");
request.Headers.Add("Accept", "application/json");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
ResponseClear