Arize AI Provider Integration

Arize AI Provider Integration

Guides an agent in creating, listing, updating and deleting Arize AI integrations that store LLM provider credentials, using the ax CLI.

Skill files3 files

references/

SKILL.md281 lines
1
---
2
name: arize-ai-provider-integration
3
description: Creates, reads, updates, and deletes Arize AI integrations that store LLM provider credentials used by evaluators and other Arize features. Supports any LLM provider (e.g. OpenAI, Anthropic, Azure OpenAI, AWS Bedrock, Vertex AI, Gemini, NVIDIA NIM). Use when the user mentions AI integration, LLM provider credentials, create integration, list integrations, update credentials, delete integration, or connecting an LLM provider to Arize.
4
metadata:
5
author: arize
6
version: "1.0"
7
compatibility: Requires the ax CLI and a configured Arize profile.
8
---
9
10
# Arize AI Integration Skill
11
12
> **`SPACE`** — Most `--space` flags and the `ARIZE_SPACE` env var accept a space **name** (e.g., `my-workspace`) or a base64 space **ID** (e.g., `U3BhY2U6...`). Find yours with `ax spaces list`.
13
> **Note:** `ai-integrations create` does **not** accept `--space` — AI integrations are account-scoped. Use `--space` only with `list`, `get`, `update`, and `delete`.
14
15
## Concepts
16
17
- **AI Integration** = stored LLM provider credentials registered in Arize; used by evaluators to call a judge model and by other Arize features that need to invoke an LLM on your behalf
18
- **Provider** = the LLM service backing the integration (e.g., `openAI`, `anthropic`, `awsBedrock`)
19
- **Integration ID** = a base64-encoded global identifier for an integration (e.g., `TGxtSW50ZWdyYXRpb246MTI6YUJjRA==`); required for evaluator creation and other downstream operations
20
- **Scoping** = visibility rules controlling which spaces or users can use an integration
21
- **Auth type** = how Arize authenticates with the provider: `default` (provider API key), `proxy_with_headers` (proxy via custom headers), or `bearer_token` (bearer token auth)
22
23
## Prerequisites
24
25
Proceed directly with the task — run the `ax` command you need. Do NOT check versions, env vars, or profiles upfront.
26
27
If an `ax` command fails, troubleshoot based on the error:
28
- `command not found` or version error → see references/ax-setup.md
29
- `401 Unauthorized` / missing API key → run `ax profiles show` to inspect the current profile. If the profile is missing or the API key is wrong, follow references/ax-profiles.md to create/update it. If the user doesn't have their key, direct them to https://app.arize.com/admin > API Keys
30
- Space unknown → run `ax spaces list` to pick by name, or ask the user
31
- LLM provider call fails (missing OPENAI_API_KEY / ANTHROPIC_API_KEY) → run `ax ai-integrations list --space SPACE` to check for platform-managed credentials. If none exist, ask the user to provide the key or create an integration via the **arize-ai-provider-integration** skill
32
- **Security:** Never read `.env` files or search the filesystem for credentials. Use `ax profiles` for Arize credentials and `ax ai-integrations` for LLM provider keys. If credentials are not available through these channels, ask the user.
33
34
---
35
36
## List AI Integrations
37
38
List all integrations accessible in a space:
39
40
```bash
41
ax ai-integrations list --space SPACE
42
```
43
44
Filter by name (case-insensitive substring match):
45
46
```bash
47
ax ai-integrations list --space SPACE --name "openai"
48
```
49
50
Paginate large result sets:
51
52
```bash
53
# Get first page
54
ax ai-integrations list --space SPACE --limit 20 -o json
55
56
# Get next page using cursor from previous response
57
ax ai-integrations list --space SPACE --limit 20 --cursor CURSOR_TOKEN -o json
58
```
59
60
**Key flags:**
61
62
| Flag | Description |
63
|------|-------------|
64
| `--space` | Space name or ID to filter integrations |
65
| `--name` | Case-insensitive substring filter on integration name |
66
| `--limit` | Max results (1–100, default 15) |
67
| `--cursor` | Pagination token from a previous response |
68
| `-o, --output` | Output format: `table` (default) or `json` |
69
70
**Response fields:**
71
72
| Field | Description |
73
|-------|-------------|
74
| `id` | Base64 integration ID — copy this for downstream commands |
75
| `name` | Human-readable name |
76
| `provider` | LLM provider enum (see Supported Providers below) |
77
| `has_api_key` | `true` if credentials are stored |
78
| `model_names` | Allowed model list, or `null` if all models are enabled |
79
| `enable_default_models` | Whether default models for this provider are allowed |
80
| `function_calling_enabled` | Whether tool/function calling is enabled |
81
| `auth_type` | Authentication method: `default`, `proxy_with_headers`, or `bearer_token` |
82
83
---
84
85
## Get a Specific Integration
86
87
```bash
88
ax ai-integrations get NAME_OR_ID
89
ax ai-integrations get NAME_OR_ID -o json
90
ax ai-integrations get NAME_OR_ID --space SPACE # required when using name instead of ID
91
```
92
93
Use this to inspect an integration's full configuration or to confirm its ID after creation.
94
95
---
96
97
## Create an AI Integration
98
99
Before creating, always list integrations first — the user may already have a suitable one:
100
101
```bash
102
ax ai-integrations list --space SPACE
103
```
104
105
If no suitable integration exists, create one. The required flags depend on the provider.
106
107
### OpenAI
108
109
```bash
110
ax ai-integrations create \
111
--name "My OpenAI Integration" \
112
--provider openAI \
113
--api-key $OPENAI_API_KEY
114
```
115
116
### Anthropic
117
118
```bash
119
ax ai-integrations create \
120
--name "My Anthropic Integration" \
121
--provider anthropic \
122
--api-key $ANTHROPIC_API_KEY
123
```
124
125
### Azure OpenAI
126
127
```bash
128
ax ai-integrations create \
129
--name "My Azure OpenAI Integration" \
130
--provider azureOpenAI \
131
--api-key $AZURE_OPENAI_API_KEY \
132
--base-url "https://my-resource.openai.azure.com/"
133
```
134
135
### AWS Bedrock
136
137
AWS Bedrock uses IAM role-based auth. Provide the ARN of the role Arize should assume via `--provider-metadata`:
138
139
```bash
140
ax ai-integrations create \
141
--name "My Bedrock Integration" \
142
--provider awsBedrock \
143
--provider-metadata '{"role_arn": "arn:aws:iam::123456789012:role/ArizeBedrockRole"}'
144
```
145
146
### Vertex AI
147
148
Vertex AI uses GCP service account credentials. Provide the GCP project and region via `--provider-metadata`:
149
150
```bash
151
ax ai-integrations create \
152
--name "My Vertex AI Integration" \
153
--provider vertexAI \
154
--provider-metadata '{"project_id": "my-gcp-project", "location": "us-central1"}'
155
```
156
157
### Gemini
158
159
```bash
160
ax ai-integrations create \
161
--name "My Gemini Integration" \
162
--provider gemini \
163
--api-key $GEMINI_API_KEY
164
```
165
166
### NVIDIA NIM
167
168
```bash
169
ax ai-integrations create \
170
--name "My NVIDIA NIM Integration" \
171
--provider nvidiaNim \
172
--api-key $NVIDIA_API_KEY \
173
--base-url "https://integrate.api.nvidia.com/v1"
174
```
175
176
### Custom (OpenAI-compatible endpoint)
177
178
```bash
179
ax ai-integrations create \
180
--name "My Custom Integration" \
181
--provider custom \
182
--base-url "https://my-llm-proxy.example.com/v1" \
183
--api-key $CUSTOM_LLM_API_KEY
184
```
185
186
### Supported Providers
187
188
| Provider | Required extra flags |
189
|----------|---------------------|
190
| `openAI` | `--api-key <key>` |
191
| `anthropic` | `--api-key <key>` |
192
| `azureOpenAI` | `--api-key <key>`, `--base-url <azure-endpoint>` |
193
| `awsBedrock` | `--provider-metadata '{"role_arn": "<arn>"}'` |
194
| `vertexAI` | `--provider-metadata '{"project_id": "<gcp-project>", "location": "<region>"}'` |
195
| `gemini` | `--api-key <key>` |
196
| `nvidiaNim` | `--api-key <key>`, `--base-url <nim-endpoint>` |
197
| `custom` | `--base-url <endpoint>` |
198
199
### Optional flags for any provider
200
201
| Flag | Description |
202
|------|-------------|
203
| `--model-name` | Allowed model name (repeat for multiple, e.g. `--model-name gpt-4o --model-name gpt-4o-mini`); omit to allow all models |
204
| `--enable-default-models` | Enable the provider's default model list |
205
| `--function-calling-enabled` | Enable tool/function calling support |
206
| `--auth-type` | Authentication type: `default`, `proxy_with_headers`, or `bearer_token` |
207
| `--headers` | Custom headers as JSON object or file path (for proxy auth) |
208
| `--provider-metadata` | Provider-specific metadata as JSON object or file path |
209
210
### After creation
211
212
Capture the returned integration ID (e.g., `TGxtSW50ZWdyYXRpb246MTI6YUJjRA==`) — it is needed for evaluator creation and other downstream commands. If you missed it, retrieve it:
213
214
```bash
215
ax ai-integrations list --space SPACE -o json
216
# or by name/ID directly:
217
ax ai-integrations get NAME_OR_ID
218
```
219
220
---
221
222
## Update an AI Integration
223
224
`update` is a partial update — only the flags you provide are changed. Omitted fields stay as-is.
225
226
```bash
227
# Rename
228
ax ai-integrations update NAME_OR_ID --name "New Name"
229
230
# Rotate the API key
231
ax ai-integrations update NAME_OR_ID --api-key $OPENAI_API_KEY
232
233
# Change the model list (replaces all existing model names)
234
ax ai-integrations update NAME_OR_ID --model-name gpt-4o --model-name gpt-4o-mini
235
236
# Update base URL (for Azure, custom, or NIM)
237
ax ai-integrations update NAME_OR_ID --base-url "https://new-endpoint.example.com/v1"
238
```
239
240
Add `--space SPACE` when using a name instead of ID. Any flag accepted by `create` can be passed to `update`.
241
242
---
243
244
## Delete an AI Integration
245
246
**Warning:** Deletion is permanent. Evaluators that reference this integration will no longer be able to run.
247
248
```bash
249
ax ai-integrations delete NAME_OR_ID --force
250
ax ai-integrations delete NAME_OR_ID --space SPACE --force # required when using name instead of ID
251
```
252
253
Omit `--force` to get a confirmation prompt instead of deleting immediately.
254
255
---
256
257
## Troubleshooting
258
259
| Problem | Solution |
260
|---------|----------|
261
| `ax: command not found` | See references/ax-setup.md |
262
| `401 Unauthorized` | API key may not have access to this space. Verify key and space ID at https://app.arize.com/admin > API Keys |
263
| `No profile found` | Run `ax profiles show --expand`; set `ARIZE_API_KEY` env var or write `~/.arize/config.toml` |
264
| `Integration not found` | Verify with `ax ai-integrations list --space SPACE` |
265
| `has_api_key: false` after create | Credentials were not saved — re-run `update` with the correct `--api-key` or `--provider-metadata` |
266
| Evaluator runs fail with LLM errors | Check integration credentials with `ax ai-integrations get INT_ID`; rotate the API key if needed |
267
| `provider` mismatch | Cannot change provider after creation — delete and recreate with the correct provider |
268
269
---
270
271
## Related Skills
272
273
- **arize-evaluator**: Create LLM-as-judge evaluators that use an AI integration → use `arize-evaluator`
274
- **arize-experiment**: Run experiments that use evaluators backed by an AI integration → use `arize-experiment`
275
276
---
277
278
## Save Credentials for Future Use
279
280
See references/ax-profiles.md § Save Credentials for Future Use.
281

© arize · MIT · source · posted by @OpenSourceBuffGuy on promptparty.com

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0 followers · 14,621 prompts

More by @OpenSourceBuffGuy

See all
Sea turtle carrying floating film studio island prompt image

Sea turtle carrying floating film studio island

Draws a giant sea turtle carrying a floating island film studio through a starry sky, where fairies polish rough film strips into golden film.

image-prompt, nano-banana, 3d-render, cartoon, fantasy-world, creatures, animals, whimsical, dreamy, cinematic, dramatic-lighting, vibrant-colors, bokeh, miniature, widescreen, night-scene, illustration, concept-art, surreal, storytelling, clay-3d

Desert buggy escapes drones past industrial outpost prompt image

Desert buggy escapes drones past industrial outpost

Builds a 15-second desert chase video where a racer in an armored buggy escapes drones past an industrial outpost, using five reference images with set jobs.

video-prompt, hailuo, action, multi-shot, timed-beats, camera-movement, reference-image, character-consistency, negative-prompt, cinematic, sci-fi, cars, landscape, aerial-view, tracking-shot, photorealistic, sound-effects, structured-output, long-form, widescreen

1 view
Cozy Pixel Art Farm Island Village prompt image

Cozy Pixel Art Farm Island Village

Draws a cozy 16-bit pixel-art farming village across six small islands joined by bridges, with exact counts for buildings, animals and crops.

image-prompt, gpt-image, pixel-art, isometric, game-assets, concept-art, maps, worldbuilding, cozy, vibrant-colors, ocean, landscape, wide-shot, widescreen, game-development, video-games, structured-output, whimsical, summer, high-angle, aerial-view, animals, negative-prompt, cityscape

1 view

Reviews

Loading reviews…

Discussion

Loading comments…