# Create saved AI provider

Retired: users can no longer bring their own AI provider. Always refused.

```http
POST https://hiresweep.com/api/openapi/ai-providers
x-api-key: YOUR_API_KEY
```

## Request body

```json
{
  "type": "object",
  "properties": {
    "label": {
      "type": "string",
      "minLength": 1
    },
    "providerId": {
      "type": "string",
      "minLength": 1
    },
    "model": {
      "type": "string",
      "minLength": 1
    },
    "apiKey": {
      "type": "string",
      "minLength": 1
    }
  },
  "required": [
    "label",
    "providerId",
    "model",
    "apiKey"
  ]
}
```

## Responses

- `200`: OK
- `400`: 400
- `412`: 412
