---
metadata:
  - name: generator
    content: Diplodoc Platform v5.66.0
alternate:
  - https://sourcecraft.dev/portal/docs/en/sourcecraft/concepts/ai-models.md
  - https://sourcecraft.dev/portal/docs/ru/sourcecraft/concepts/ai-models.md
  - href: https://sourcecraft.dev/portal/docs/en/sourcecraft/concepts/ai-models.md
    type: text/markdown
    title: Markdown version
  - href: https://sourcecraft.dev/portal/docs/en/llms.txt?revision=r21973087
    rel: describedby
title: AI models in SourceCraft
description: 'How AI models work in SourceCraft: the default model, internal and external models, user access, and neurocredit consumption.'
---
> **Documentation Index:** Fetch the complete configuration index at https://sourcecraft.dev/portal/docs/en/llms.txt?revision=r21973087


# AI models in SourceCraft

<!-- source: en/_includes/sourcecraft/ai-models-intro.md -->
SourceCraft offers a wide range of _AI models_. They are used in the [SourceCraft UI chat](https://sourcecraft.dev/portal/docs/en/sourcecraft/operations/ca-chat.md), [AI coworkers](https://sourcecraft.dev/portal/docs/en/sourcecraft/concepts/ai-coworkers.md), [Code Assistant](https://sourcecraft.dev/portal/docs/en/code-assistant/index.md) IDE plugins, and [SourceCraft CLI](https://sourcecraft.dev/portal/docs/en/sourcecraft/operations/cli-quickstart.md).

<!-- source: en/_includes/sourcecraft/ai-models-vibecraft-note.md -->
{% note info %}

Model selection in [VibeCraft](https://sourcecraft.dev/portal/docs/en/vibecraft/index.md) will become available later.

{% endnote %}
<!-- endsource: en/_includes/sourcecraft/ai-models-vibecraft-note.md -->

{% note tip %}

We are constantly updating the list of models. You can view the current list and descriptions of models on the ![image](../../_assets/sourcecraft/ai-models.svg) [AI models](https://sourcecraft.dev/me/settings/models) page of your personal organization. To view, log in or [sign up](https://sourcecraft.dev/portal/docs/en/sourcecraft/security/registration.md) to SourceCraft. You can view another organization's models in the organization settings.

{% endnote %}
<!-- endsource: en/_includes/sourcecraft/ai-models-intro.md -->

## Default model {#default-model}

The **SourceCraft Default** model is an _ensemble of models_ managed by SourceCraft. SourceCraft automatically selects a model to solve your task. This mode allows for operation without having to select a model manually.

## Internal and external models {#model-types}

* _Internal models_ are deployed within the Yandex Cloud infrastructure. Data sent to the model does not leave the Yandex Cloud infrastructure.

  The infrastructure is [protected](https://yandex.cloud/en/security/standards/152-fz) in accordance with the requirements of the Russian Federal Law No. 152-FZ on Personal Data.

  Therefore, you may use internal models to process personal data in compliance with the requirements of Federal Law No. 152-FZ, as indicated by a specific note on the ![image](../../_assets/sourcecraft/ai-models.svg) [AI Models](https://sourcecraft.dev/me/settings/models) page.

  You can use the organization's [gift quota of neurocredits](https://sourcecraft.dev/portal/docs/en/sourcecraft/pricing.md#gift) for internal models.

* _External models_ are deployed outside the Yandex Cloud infrastructure.

  When selecting such a model, the data required to process the request is transmitted to an external provider. External models are not suitable for tasks requiring compliance with Federal Law No. 152-FZ. The organization's gift quota is unavailable for them.

## Access to models {#access}

<!-- source: en/_includes/sourcecraft/ai-model-control-intro.md -->
{% note info %}

To manage models, you need the organization [Administrator](https://sourcecraft.dev/portal/docs/en/sourcecraft/security/index.md#organization-manager-admin) or [Owner](https://sourcecraft.dev/portal/docs/en/sourcecraft/security/index.md#organization-manager-organizations-owner) role. They determine which models may be used by the organization's members. For example, you can leave only the internal models accessible. The setting is available regardless of the administrator's or organization owner's subscription.

{% endnote %}
<!-- endsource: en/_includes/sourcecraft/ai-model-control-intro.md -->

For more information, see [Configuring AI models in an organization](https://sourcecraft.dev/portal/docs/en/sourcecraft/operations/ai-models.md#organization).

<!-- source: en/_includes/sourcecraft/ai-model-access-conditions.md -->
Model switching becomes available to the user if the following conditions are met:
* A [paid subscription](https://sourcecraft.dev/portal/docs/en/sourcecraft/pricing.md) has been set up for the user within the organization they selected for neurocredit deductions.
* An administrator or organization owner has configured the use of models other than the [default model](https://sourcecraft.dev/portal/docs/en/sourcecraft/concepts/ai-models.md#default-model).

If a user has subscriptions assigned across multiple organizations, they can choose which organization to deduct neurocredits from. Access to models is determined by the subscription and the settings of the selected organization.

{% note info %}

Without a [paid subscription](https://sourcecraft.dev/portal/docs/en/sourcecraft/pricing.md), models appear in the list, but you can only use the default model.

{% endnote %}

<!-- source: en/_includes/sourcecraft/ai-models-legacy-tariff-note.md -->
{% note warning %}

Archived **Code Assistant Pro** plan does not grant access to [selecting AI models](https://sourcecraft.dev/portal/docs/en/sourcecraft/operations/ai-models.md#select-model).

{% endnote %}
<!-- endsource: en/_includes/sourcecraft/ai-models-legacy-tariff-note.md -->
<!-- endsource: en/_includes/sourcecraft/ai-model-access-conditions.md -->

## Neurocredit consumption {#consumption}

The use of all models is charged in [neurocredits](https://sourcecraft.dev/portal/docs/en/sourcecraft/pricing.md#cu). Different models consume different amounts of neurocredits. An indicative consumption level for each model is indicated on the ![image](../../_assets/sourcecraft/ai-models.svg) [AI ​​models](https://sourcecraft.dev/me/settings/models) page.

For internal models, [gift neurocredits](https://sourcecraft.dev/portal/docs/en/sourcecraft/pricing.md#gift), neurocredits from the service plan, and [additional paid usage](https://sourcecraft.dev/portal/docs/en/sourcecraft/pricing.md#payg) are utilized. For external models, only the neurocredits included in the service plan and additional paid usage are available; you cannot use gift neurocredits for them.

{% note tip %}

You can track consumption in the [Code Assistant statistics](https://sourcecraft.dev/portal/docs/en/sourcecraft/operations/code-assistant-stats.md).

{% endnote %}

## Use cases {#examples}

* To have the service select a model for your tasks, use the [default model](#default-model).
* To select a model based on neurocredit usage, review its description and consumption rate on the ![image](../../_assets/sourcecraft/ai-models.svg) [AI ​​models](https://sourcecraft.dev/me/settings/models) page.
* To ensure that organization member requests are processed within the Yandex Cloud infrastructure, enable internal models and disable external ones.

#### Useful links {#see-also}

* [Configuring AI models in SourceCraft](https://sourcecraft.dev/portal/docs/en/sourcecraft/operations/ai-models.md)
* [AI in SourceCraft](https://sourcecraft.dev/portal/docs/en/sourcecraft/concepts/code-assistant.md)
* [Models in SourceCraft Code Assistant](https://sourcecraft.dev/portal/docs/en/code-assistant/operations/agent/api-configuration-profiles.md)
* [SourceCraft pricing policy](https://sourcecraft.dev/portal/docs/en/sourcecraft/pricing.md)
