---
metadata:
  - name: generator
    content: Diplodoc Platform v5.52.0
alternate:
  - https://catboost.ai/docs/en/features/export-model-to-core-ml.md
  - href: en/features/export-model-to-core-ml.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 CoreML

<!-- source: en/_includes/work_src/reusage-python/core-mle__intro.md -->
Trained CatBoost models can be exported to CoreML.
<!-- endsource: en/_includes/work_src/reusage-python/core-mle__intro.md -->


<!-- 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

**Method**

- [save_model](https://catboost.ai/docs/en/concepts/python-reference_catboost_save_model.md) ([CatBoost](https://catboost.ai/docs/en/concepts/python-reference_catboost.md))
- [save_model](https://catboost.ai/docs/en/concepts/python-reference_catboostclassifier_save_model.md) ([CatBoostClassifier](https://catboost.ai/docs/en/concepts/python-reference_catboostclassifier.md))
- [save_model](https://catboost.ai/docs/en/concepts/python-reference_catboostregressor_save_model.md) ([CatBoostRegressor](https://catboost.ai/docs/en/concepts/python-reference_catboostregressor.md))


**Parameters**

`format`

**Description**


<!-- source: en/_includes/work_src/reusage/python__save__export-format__short_desc.md -->
The output format of the model.
<!-- endsource: en/_includes/work_src/reusage/python__save__export-format__short_desc.md -->


Set this parameter to “coreml”.

**Method**

 `export_parameters`

**Parameters**

<!-- source: en/_includes/work_src/reusage/python__export-parameters__intro.md -->
Additional format-dependent parameters for:

{% cut "Apple CoreML" %}

Possible values (all are strings):
 - `prediction_type`. Possible values are <q>probability </q>and <q>raw</q>.
 - `coreml_description`
 - `coreml_model_version`
 - `coreml_model_author`
 - `coreml_model_license`

{% endcut %}

{% cut "ONNX-ML" %}

<!-- source: en/_includes/work_src/reusage-export-formats/additional-parameters__onnx-model__possible-values__list-only.md -->
- `onnx_graph_name`
- `onnx_domain`
- `onnx_model_version`
- `onnx_doc_string`
<!-- endsource: en/_includes/work_src/reusage-export-formats/additional-parameters__onnx-model__possible-values__list-only.md -->

See the [ONNX-ML parameters](https://catboost.ai/docs/en/references/onnx-parameters.md) reference for details.

{% endcut %}

{% cut "PMML" %}

Possible values (all are strings):

<!-- source: en/_includes/work_src/reusage-export-formats/additional-parameters__pmml__possible-values__list-only.md -->
- `pmml_copyright`
- `pmml_description`
- `pmml_model_version`
<!-- endsource: en/_includes/work_src/reusage-export-formats/additional-parameters__pmml__possible-values__list-only.md -->

See the [PMML parameters](https://catboost.ai/docs/en/references/pmml-parameters.md) reference for details.

{% endcut %}
<!-- endsource: en/_includes/work_src/reusage/python__export-parameters__intro.md -->


The following values are supported for Apple CoreML:

- `prediction_type`. Possible values are <q>probability </q>and <q>raw</q>.

- `coreml_description`

- `coreml_model_version`

- `coreml_model_author`

- `coreml_model_license`


Refer to [the example](https://catboost.ai/docs/en/concepts/python-usages-examples.md) for more details.

## Command-line version

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

**Command**

[catboost fit](https://catboost.ai/docs/en/references/training-parameters/index.md)

**Command keys**

`--model-format`

**Key description**

<!-- source: en/_includes/work_src/reusage/cli__mode-format__short-desc.md -->
A comma-separated list of output model formats.
<!-- endsource: en/_includes/work_src/reusage/cli__mode-format__short-desc.md -->


Set the value of this key to “json”.

