curl --request GET \
--url https://api-dev.narrative.io/models \
--header 'Authorization: Bearer <token>'{
"prev_page": null,
"current_page": 1,
"next_page": null,
"total_records": 2,
"total_pages": 1,
"records": [
{
"id": 1,
"company_id": 1,
"name": "Llama-3.2-1B",
"license_id": "META-LLAMA-COMMUNITY-3.2",
"repository": {
"type": "hugging_face",
"organization": "meta-llama"
},
"collaborators": {
"training": {
"type": "all"
},
"inference": {
"type": "all"
}
},
"description": "Base Llama 3.2 1B model",
"tags": [
"llm",
"base"
],
"base_model_id": null,
"created_at": "2024-01-10T08:00:00Z",
"updated_at": null,
"archived_at": null,
"version": 1,
"status": "active"
},
{
"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"
}
]
}Returns a paginated list of models accessible to the authenticated company.
Models can be filtered by repository type and sorted by creation date.
curl --request GET \
--url https://api-dev.narrative.io/models \
--header 'Authorization: Bearer <token>'{
"prev_page": null,
"current_page": 1,
"next_page": null,
"total_records": 2,
"total_pages": 1,
"records": [
{
"id": 1,
"company_id": 1,
"name": "Llama-3.2-1B",
"license_id": "META-LLAMA-COMMUNITY-3.2",
"repository": {
"type": "hugging_face",
"organization": "meta-llama"
},
"collaborators": {
"training": {
"type": "all"
},
"inference": {
"type": "all"
}
},
"description": "Base Llama 3.2 1B model",
"tags": [
"llm",
"base"
],
"base_model_id": null,
"created_at": "2024-01-10T08:00:00Z",
"updated_at": null,
"archived_at": null,
"version": 1,
"status": "active"
},
{
"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"
}
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Page number. Starts from the first (1) page.
Number of records to return per page.
Filter models by repository type. Can be specified multiple times to filter by multiple types.
hugging_face, narrative Sort order for results.
created_at_asc, created_at_desc OK
Show child attributes
The number of previous page (if exists).
1
The number of requested page.
1
The number of next page (if exists).
2
Total number of model records.
15
Total number of pages.
2
Was this page helpful?