> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nx1cloud.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Generate a semantic model

> Create business-ready semantic models from your data using AI.

Using AI, you can automatically create a semantic model without having to manually add columns or
provide a SQL command.

## Prerequisites

* Appropriate permissions: `nx1_semantic_admin`, `nx1_semantic_modeller`, or `nx1_semantic_user`
* An existing domain created using [DataHub](/platform-components/datahub)
* A previously ingested dataset within a DataHub domain

## Generate a semantic model

<Tabs>
  <Tab title="Web portal" icon="browser">
    Perform these steps to generate a semantic model.

    1. Log in to NexusOne.
    2. On the top navigation bar, hover your mouse over **Catalog & Models** and then select **Semantic Models**.
    3. At the top right corner of the page, click **Generate with AI**.
    4. Select a DataHub domain.
    5. Select a table scope. Three table scope options are available:
       * **All tables**: NexusOne considers all tables.
       * **Include only**: You manually include specific tables.
       * **Exclude**: You manually exclude specific tables.
    6. Optional: Describe the purpose of the semantic model.
    7. Select a catalog and schema.
    8. Click the toggle button to automatically submit the generated model for review.
    9. Click **Generate Models**.

    CrewAI generates the semantic model.
  </Tab>

  <Tab title="REST API" icon="code">
    Use the following API endpoint to:

    * [Generate semantic models](/api-reference/endpoints/semantic-models/generate-semantic-models)

    Because you are selecting an existing catalog, domain, schema, or table, you can use
    the following API endpoints to:

    * [Get catalogs](/api-reference/endpoints/metastore/get-catalogs)
    * [Get catalog schemas](/api-reference/endpoints/metastore/get-catalog-schemas)
    * [Get domains](/api-reference/endpoints/metastore/get-domains)
    * [Get tables](/api-reference/endpoints/metastore/get-tables)
  </Tab>
</Tabs>

## Additional resources

For an overview of the Semantic Models feature, refer to [Semantic Models overview](/documentation/catalog-and-models/overview/semantic-models).
