# pw ai providers create

> Source: https://parallelworks.com/docs/cli/pw/ai/providers/create

## pw ai providers create

Create an AI provider

### Synopsis

The **pw ai providers create** command creates a new AI provider.

For **custom** providers, --endpoint and --api-key are required.
For **azure** providers, --region, --model, --group, and --network are required.

```
pw ai providers create [flags]
```

### Examples

```
  # Create a custom provider
  pw ai providers create --name my-provider --csp custom --endpoint https://api.example.com --api-key sk-xxx
  
  # Create an Azure provider
  pw ai providers create --name my-azure --csp azure --region eastus --model gpt-4 --group my-group --network my-network
```

### Options

```
      --api-key string    API key (required for custom)
      --csp string        Cloud service provider (required, e.g. azure, custom)
      --endpoint string   API endpoint (required for custom)
      --group string      Resource group
  -h, --help              help for create
      --model string      Model name (required for azure)
      --name string       Provider name (required)
      --network string    Network
      --region string     Region (required for azure)
```

### Options inherited from parent commands

```
      --context string         The context to use. Overrides PW_CONTEXT environment variable and current context from config.
      --platform-host string   The Parallel Works ACTIVATE platform host to use. Will override any other platform host settings.
  -v, --verbose                Enable verbose logging
```

### SEE ALSO

* [pw ai providers](/docs/cli/pw/ai/providers)	 - Manage AI chat providers
