Skip to main content

List Models

Lists all models currently available in your Jan instance.

Response

string
Always list.
array
Array of model objects available in Jan.Each model contains:
  • id (string): The model identifier that can be referenced in API endpoints
  • object (string): Always "model"
  • created (number): Unix timestamp of when the model was created
  • owned_by (string): The organization or author of the model
  • name (string): Human-readable name of the model
  • version (string): Model version
  • format (string): Model format (e.g., "gguf")
  • engine (string): Inference engine (e.g., "llama.cpp")
  • description (string): Model description
  • settings (object): Model configuration settings
  • parameters (object): Runtime parameters
  • metadata (object): Additional model metadata

Example Response

Retrieve Model

Retrieves detailed information about a specific model.

Path Parameters

string
required
The ID of the model to retrieve.

Response

Returns a model object with the following fields:
string
The model identifier that can be referenced in API endpoints.
string
Always "model".
number
Unix timestamp (in seconds) of when the model was created.
string
The organization or author that created the model.
string
Human-readable name used in the UI.
string
The version of the model.
string
The format of the model file (e.g., "gguf", "safetensors").
string
The inference engine used to run this model (e.g., "llama.cpp", "onnxruntime").
string
A description of the model and its capabilities.
array
Download sources for the model.
  • filename (string): The filename of the model artifact
  • url (string): URL where the model can be downloaded
object
Model configuration settings.Common settings:
  • ctx_len (number): Context length/window size
  • ngl (number): Number of GPU layers to offload
  • embedding (boolean): Whether this is an embedding model
  • prompt_template (string): Template for formatting prompts
  • system_prompt (string): Default system prompt
  • cpu_threads (number): Number of CPU threads to use
  • n_parallel (number): Number of parallel sequences
  • temperature (number): Sampling temperature
  • top_p (number): Nucleus sampling threshold
  • top_k (number): Top-k sampling parameter
  • min_p (number): Minimum probability threshold
  • repeat_penalty (number): Repetition penalty
  • presence_penalty (number): Presence penalty
  • frequency_penalty (number): Frequency penalty
object
Default runtime parameters for inference.
  • temperature (number): Default sampling temperature
  • top_p (number): Default nucleus sampling parameter
  • top_k (number): Default top-k parameter
  • max_tokens (number): Default maximum tokens to generate
  • stream (boolean): Whether streaming is enabled by default
  • stop (array): Default stop sequences
  • frequency_penalty (number): Default frequency penalty
  • presence_penalty (number): Default presence penalty
object
Additional metadata about the model.
  • author (string): Model author or organization
  • tags (array): Tags describing the model
  • size (number): Model file size in bytes
  • cover (string): URL to model cover image

Example Response

Model Types

Jan supports different types of models:

Chat Models

Models optimized for conversational interactions. These models have:
  • embedding: false
  • Prompt templates for chat formatting
  • Support for multi-turn conversations
Examples: llama3-8b-instruct, qwen2.5-7b-instruct, mistral-7b-instruct

Embedding Models

Models that generate vector embeddings for text. These models have:
  • embedding: true
  • Different API endpoint (/v1/embeddings)
  • Output vector representations instead of text
Examples: nomic-embed-text, sentence-transformers

Vision Models

Models that can process both text and images. These models have:
  • vision_model: true
  • mmproj setting for vision projection
  • Support multimodal input in chat completions
Examples: llava-v1.6-7b, bakllava

Model Settings

Key model settings you can configure:

Context Length (ctx_len)

The maximum number of tokens the model can process in its context window. Larger values allow longer conversations but require more memory.

GPU Layers (ngl)

Number of model layers to offload to GPU. Higher values improve performance but require more VRAM.

CPU Threads (cpu_threads)

Number of CPU threads to use for inference. More threads can improve performance on CPU.

Prompt Template

Defines how messages are formatted before being sent to the model. Different models require different formatting.

Error Responses

Model Not Found

Status: 404 Not Found

Unauthorized

Status: 401 Unauthorized