---
metadata:
  - name: generator
    content: Diplodoc Platform v5.54.5
alternate:
  - https://catboost.ai/docs/en/features/export-model-to-json.md
  - href: en/features/export-model-to-json.md
    type: text/markdown
    title: Markdown version
  - href: ../llms.txt
    type: text/markdown
    title: llms.txt
---
> **Documentation Index:** Fetch the complete configuration index at https://catboost.ai/docs/en/llms.txt

# Export a model to JSON

The trained CatBoost model can be saved as a JSON file. This file can be accessed later to apply the model. Refer to the [CatBoost JSON model tutorial](https://github.com/catboost/tutorials/blob/master/model_analysis/model_export_as_json_tutorial.ipynb) for format details.

<!-- source: en/_includes/work_src/reusage-common-phrases/choose-the-required-implementation-for-more-details.md -->
Choose the implementation for more details.
<!-- endsource: en/_includes/work_src/reusage-common-phrases/choose-the-required-implementation-for-more-details.md -->


## Python package

|methods| Parameters| description|
|-------|-----------|-----------|
|- [save_model](../concepts/python-reference_catboost_save_model.md) ([CatBoost](../concepts/python-reference_catboost.md)) <br> - [save_model](../concepts/python-reference_catboostclassifier_save_model.md) ([CatBoostClassifier](../concepts/python-reference_catboostclassifier.md)) <br> - [save_model](../concepts/python-reference_catboostregressor_save_model.md) ([CatBoostRegressor](../concepts/python-reference_catboostregressor.md)) <br> - [save_model](../concepts/python-reference_catboostranker_save_model.md) ([CatBoostRanker](../concepts/python-reference_catboostranker.md))| `format`| The output format of the model. <br> Set this parameter to “json”.|


## Command-line version

The following command keys can be specified for the corresponding commands and are used when the model is trained:

|command|Command keys| description|
|-------|-----------|-----------|
|[catboost fit](../references/training-parameters/index.md)| `--model-format`| A comma-separated list of output model formats. <br> Set the value of this key to “json”.|
