# prov.trace.probes.create

prov.trace.probes.create in Python SDK.

## Signature

```python
prov.trace.probes.create(model_version: str, name: str, weights_b64: str, threshold: float, card: dict, bias: float = …) -> Any
```

## Parameters

- `model_version` (str)
- `name` (str)
- `weights_b64` (str)
- `threshold` (float)
- `card` (dict)
- `bias` (float, optional)

## Returns

`Any`

## HTTP operation

[`POST /v1/trace/probes`](https://provenanceauth.com/docs/api/probes.md#post-v1-trace-probes): Register a probe

## Errors

- [`authentication_required`](https://provenanceauth.com/docs/platform/errors.md#authentication_required)
- [`invalid_json`](https://provenanceauth.com/docs/platform/errors.md#invalid_json)
- [`parameter_invalid`](https://provenanceauth.com/docs/platform/errors.md#parameter_invalid)
- [`parameter_missing`](https://provenanceauth.com/docs/platform/errors.md#parameter_missing)
- [`plan_required`](https://provenanceauth.com/docs/platform/errors.md#plan_required)
- [`probe_dimension_mismatch`](https://provenanceauth.com/docs/platform/errors.md#probe_dimension_mismatch)
- [`rate_limit_exceeded`](https://provenanceauth.com/docs/platform/errors.md#rate_limit_exceeded)
- [`resource_missing`](https://provenanceauth.com/docs/platform/errors.md#resource_missing)

## Example

**Node**

```ts
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/trace/probes`, {
  method: "POST",
  headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
  body: JSON.stringify({
    "model_version": "qwen2.5-0.5b-instruct@7ae55760",
    "name": "refund_fraud",
    "weights_b64": "AAAAAA",
    "threshold": 0.7,
    "card": {
      "precision": 0.91,
      "recall": 0.84,
      "auroc": 0.95,
      "n": 400,
      "dataset": "Refund-fraud eval set, 400 labeled prompts"
    }
  }),
})).json();
```

**Python**

```python
import os
import httpx

api = os.environ["PROVENANCE_API"]
data = httpx.post(f"{api}/v1/trace/probes", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
    "model_version": "qwen2.5-0.5b-instruct@7ae55760",
    "name": "refund_fraud",
    "weights_b64": "AAAAAA",
    "threshold": 0.7,
    "card": {
        "precision": 0.91,
        "recall": 0.84,
        "auroc": 0.95,
        "n": 400,
        "dataset": "Refund-fraud eval set, 400 labeled prompts"
    }
}).json()
```
