Metadata
The server metadata endpoint provides information about the server. A server metadata request is made with an HTTP GET to a server metadata endpoint.
OK
Bad Request
GET /v2 HTTP/1.1
Host:
Accept: */*
{
"name": "text",
"version": "text",
"extensions": [
"text"
]
}
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. 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.
OK
Not Found
GET /v2/models/{model_name}/versions/{model_version} HTTP/1.1
Host:
Accept: */*
{
"name": "text",
"versions": [
"text"
],
"platform": "text",
"inputs": [
{
"name": "text",
"datatype": "text",
"shape": [
1
],
"parameters": {
"content_type": "text",
"headers": {},
"ANY_ADDITIONAL_PROPERTY": "anything"
}
}
],
"outputs": [
{
"name": "text",
"datatype": "text",
"shape": [
1
],
"parameters": {
"content_type": "text",
"headers": {},
"ANY_ADDITIONAL_PROPERTY": "anything"
}
}
],
"parameters": {
"content_type": "text",
"headers": {},
"ANY_ADDITIONAL_PROPERTY": "anything"
}
}
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. 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.
OK
Not Found
GET /v2/models/{model_name} HTTP/1.1
Host:
Accept: */*
{
"name": "text",
"versions": [
"text"
],
"platform": "text",
"inputs": [
{
"name": "text",
"datatype": "text",
"shape": [
1
],
"parameters": {
"content_type": "text",
"headers": {},
"ANY_ADDITIONAL_PROPERTY": "anything"
}
}
],
"outputs": [
{
"name": "text",
"datatype": "text",
"shape": [
1
],
"parameters": {
"content_type": "text",
"headers": {},
"ANY_ADDITIONAL_PROPERTY": "anything"
}
}
],
"parameters": {
"content_type": "text",
"headers": {},
"ANY_ADDITIONAL_PROPERTY": "anything"
}
}
Was this helpful?