Skip to content
OpenRelay is in early access, and the /v1 API is stable. New capabilities ship in the changelog.
Skip to Content
API ReferenceInferenceModel Imports

Get a model import

One of your organization's model imports: its status, progress, the revision it pinned, and why it failed, with the artifact it produces. Another organization's import reads as not found.

Required permission

Requires the import.read permission. See Permissions for the roles and API key permissions that include it.

Command line

The orl CLI wraps this endpoint:

orl imports get <import-id>
GET
/v1/inference/imports/{importId}

Authorization

apiKey
headerAuthorizationBearer <token>

OpenRelay API key. Send it as Authorization: Bearer or_… (legacy vl_… keys still work).

Path Parameters

importId*string

Response Body

Import

application/json
  1. response
id*string
orgId*string
artifactId*string

The artifact the import produces, pending until it succeeds.

status*string
Value in"queued""copying""validating""succeeded""failed"
source*
attempt*integer

Importer tasks started for this import.

progress*
failure?
artifact?
createdAt*string
Formatdate-time
updatedAt*string
Formatdate-time
Example Request
curl -X GET 'https://api.openrelay.inc/v1/inference/imports/string'
Example Response
{  "id": "string",  "orgId": "string",  "artifactId": "string",  "status": "queued",  "source": {    "uri": "string",    "revision": "string",    "pinnedRevision": "string",    "credentialId": "string"  },  "attempt": 0,  "progress": {    "filesDone": 0,    "filesTotal": 0,    "bytesDone": 0,    "bytesTotal": 0  },  "failure": {    "code": "string",    "message": "string"  },  "artifact": {    "id": "string",    "importId": "string",    "status": "pending",    "weightsRef": "string",    "digest": "string",    "format": "string",    "architecture": "string",    "dtype": "string",    "quantization": "string",    "paramCount": 0,    "bytes": 0,    "files": 0,    "compat": {      "evaluatedAt": "2019-08-24T14:15:22Z",      "policyId": "string",      "policyVersion": 0,      "fits": [        "string"      ],      "refusals": {        "property1": "string",        "property2": "string"      }    }  },  "createdAt": "2019-08-24T14:15:22Z",  "updatedAt": "2019-08-24T14:15:22Z"}