Quickstart: Make your first i14 API request
Send a short message to an i14 model and read its reply. This guide uses 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.
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.
-
Create your account
Log in or create an account on the i14 Platform with your email address or Google account.
-
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.
-
Choose a model
Set
I14_API_KEYto your i14 key in your terminal. Then callGET /v1/modelsto see the model IDs your key can use.bash or zsh export I14_API_KEY="your_api_key_here"curl https://api.i14.ai/v1/models \-H "Authorization: Bearer $I14_API_KEY"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.idThe 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. -
Send a message
Send a
POSTto/v1/chat/completionsin the same terminal. Replace the example’smodelvalue if you chose a different Chat Completions model:bash or zsh 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}'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.contentThe response is JSON. Read the answer at
choices[0].message.content. The last line of the PowerShell example prints this field.
Python Example
Section titled “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.
import osfrom 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)