Skip to main content
GET
/
models
/
{model_id}
Get a model
curl --request GET \
  --url https://api-dev.narrative.io/models/{model_id} \
  --header 'Authorization: Bearer <token>'
{
  "id": 2,
  "company_id": 1,
  "name": "Llama-3.1-8B-Instruct",
  "license_id": "META-LLAMA-COMMUNITY-3.1",
  "repository": {
    "type": "hugging_face",
    "organization": "meta-llama"
  },
  "collaborators": {
    "training": {
      "type": "all"
    },
    "inference": {
      "type": "all"
    }
  },
  "description": "Fine-tuned Llama model for instruction following",
  "tags": [
    "llm",
    "instruct"
  ],
  "base_model_id": null,
  "created_at": "2024-01-15T10:30:00Z",
  "updated_at": null,
  "archived_at": null,
  "version": 1,
  "status": "active"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

model_id
integer<int64>
required

Unique identifier for a model.

Response

OK

id
integer<int64>
required

Unique identifier for the model.

company_id
integer<int64>
required

The ID of the company that owns this model.

name
string
required

A unique identifier for the model within the company's namespace.

Model names must consist of only alphanumeric characters, underscores, dashes, and dots, and be <= 256 characters long.

license_id
string
required

The license identifier (e.g., "META-LLAMA-COMMUNITY-3.1", "apache-2.0").

repository
object
required
Example:
{
"type": "hugging_face",
"organization": "meta-llama"
}
collaborators
object
required

Defines which companies have access to train and run inference on this model.

Example:
{
"training": { "type": "all" },
"inference": {
"type": "inclusion",
"companies": [1, 2, 3]
}
}
tags
string[]
required

List of tags associated with the model.

created_at
string<date-time>
required

When the model was created.

version
integer
required

Model version number.

status
enum<string>
required

Current status of the model.

Available options:
active,
archived
display_name
string

A human readable name for the model.

Model names must be non-empty and can only contain up to 512 characters.

description
string

Optional description of the model.

base_model_id
integer<int64>

ID of the base model this model was derived from (if applicable).

updated_at
string<date-time>

When the model was last updated.

archived_at
string<date-time>

When the model was archived (if applicable).