# Quickstart: Make your first i14 API request

> Get an i14 API key, choose a model, and make your first Chat Completions request.

Source: https://i14.ai/docs/quickstart/

Send a short message to an i14 model and read its reply. This guide uses [Chat Completions](https://i14.ai/docs/api-reference/chat-completions/), the endpoint that accepts a list of messages and returns the assistant’s answer. If you already have an i14 key, skip to [choosing a model](#choose-a-model).

The shell examples in these docs are for macOS and Linux (bash or zsh). On Windows, run them in WSL or Git Bash, or use the PowerShell versions on this page.

1. **Create your account**

   Log in or create an account on the [i14 Platform](https://platform.i14.ai/) with your email address or Google account.

2. **Get your API key**

   Open **API Keys**. If you have a referral code, click **Redeem a code** and enter it. Then click **Create key** and copy the key. The dashboard shows the full key only once.

   No referral code? Join the waitlist. See [Get your API key](https://i14.ai/docs/authentication/#get-your-api-key).

   > **Caution**
   >
   > Treat your API key like a password. Never paste it into source code or commit it to a repository. Store it in an environment variable or a secrets manager instead.

3. **Choose a model**

   Set `I14_API_KEY` to your i14 key in your terminal. Then call `GET /v1/models` to see the model IDs your key can use.

   * macOS and Linux

     bash or zsh

     ```bash
     export I14_API_KEY="your_api_key_here"

     curl https://api.i14.ai/v1/models \
       -H "Authorization: Bearer $I14_API_KEY"
     ```

   * Windows

     PowerShell

     ```powershell
     $env:I14_API_KEY = "your_api_key_here"

     (Invoke-RestMethod https://api.i14.ai/v1/models `
       -Headers @{ Authorization = "Bearer $env:I14_API_KEY" }).data.id
     ```

   The next example uses Sugar Glider (`i14-sugarglider-nemotron3-super-120b-v1`). If it is not listed, use another model your key can access that supports Chat Completions. If you see no models, check which key you are using or ask your i14 contact to confirm access.

4. **Send a message**

   Send a `POST` to `/v1/chat/completions` in the same terminal. Replace the example’s `model` value if you chose a different Chat Completions model:

   * macOS and Linux

     bash or zsh

     ```bash
     curl https://api.i14.ai/v1/chat/completions \
       -H "Content-Type: application/json" \
       -H "Authorization: Bearer $I14_API_KEY" \
       -d '{
         "model": "i14-sugarglider-nemotron3-super-120b-v1",
         "messages": [
           {
             "role": "user",
             "content": "Explain the difference between a process and a thread in one sentence."
           }
         ],
         "max_tokens": 512
       }'
     ```

   * Windows

     PowerShell

     ```powershell
     $body = @{
       model = "i14-sugarglider-nemotron3-super-120b-v1"
       messages = @(
         @{
           role = "user"
           content = "Explain the difference between a process and a thread in one sentence."
         }
       )
       max_tokens = 512
     } | ConvertTo-Json -Depth 5

     $response = Invoke-RestMethod https://api.i14.ai/v1/chat/completions `
       -Method Post `
       -ContentType "application/json" `
       -Headers @{ Authorization = "Bearer $env:I14_API_KEY" } `
       -Body $body

     $response.choices[0].message.content
     ```

   The response is JSON. Read the answer at `choices[0].message.content`. The last line of the PowerShell example prints this field.

   > **Note**
   >
   > Set `max_tokens` on every request. Defaults can vary by model deployment. A completion that reaches its output limit can return `"finish_reason": "length"`.

## Python Example

To make the same request from Python, install the OpenAI SDK with `pip install openai`. Use the same `I14_API_KEY` and replace the example’s `model` value if you chose a different model.

```python
import os
from openai import OpenAI

client = OpenAI(
    base_url="https://api.i14.ai/v1",
    api_key=os.environ["I14_API_KEY"],
)

response = client.chat.completions.create(
    model="i14-sugarglider-nemotron3-super-120b-v1",
    messages=[
        {
            "role": "user",
            "content": "Explain the difference between a process and a thread in one sentence.",
        }
    ],
    max_tokens=512,
)

print(response.choices[0].message.content)
```

> **Note**
>
> For request fields and errors, see the [API reference](https://i14.ai/docs/api-reference/overview/). For TypeScript examples or incremental output, see [OpenAI SDK](https://i14.ai/docs/integrations/openai-sdk/) and [Streaming](https://i14.ai/docs/api-usage/streaming/).
