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

# Client$New()

> Call Client$new() to initialize the Arize client prior to publishing prediction and actual records

## Overview

Initializing the client with `Client$new()` returns a client object you can use to log predictions and actuals.You need only call `Client$new()` once to initialize a session. Sessions are tied to a specific space, however, you can log records for any model in your space.

## Keyword arguments:

| Argument          | Input Type | Description                   | Required | Default Value |
| ----------------- | ---------- | ----------------------------- | -------- | ------------- |
| api\_key          | character  | the Arize-AI api key          | Required | N/A           |
| organization\_key | character  | the Arize-AI organization key | Required | N/A           |

## Initializing Client Examples

```java theme={null}
ORGANIZATION_KEY <- 'ORGANIZATION_KEY'
API_KEY <- 'API_KEY'
arize_client <- Client$new(
    organization_key = ORGANIZATION_KEY, 
    api_key = API_KEY)
```

### Retrieving Space and API Keys

<Frame caption="">
  <img src="https://storage.googleapis.com/arize-phoenix-assets/assets/images/arize-docs-images/6c695bb8-image.jpeg" />
</Frame>

<Info>
  Questions? Email us at [support@arize.com](mailto::support@arize.com) or [Slack us](https://arize-ai.slack.com/) in the #arize-support channel
</Info>
