Help · API tokens

Add your tokens to Nexus Studio

Nexus Studio uses two kinds of token: a Nexus API token for AI, and a Nextify API key for hosting. Here's where to get each one, where it goes in the app, and how to call the gateway from your own code.

nxr_…

Nexus API token

For AI — chat, voice, and images through api.nexus-projects.ai, billed to your plan.

Get one in Settings → API tokens
nxt_…

Nextify API key

For hosting — deploy your projects to Nextify cloud machines straight from Studio.

Get one in the Nextify portal
Quickest

Sign in — Studio connects itself

When you sign in to Nexus Studio with your Nexus account, it connects to the gateway on its own: it creates a token for that device and adds the Nexus Router to your AI servers. There's nothing to copy or paste.

  1. Open Nexus Studio. On Sign in to your workspace, use the Sign in tab.
  2. Enter the email and password you use on nexus-projects.ai. No account yet? Use the Register tab.
  3. That's it — the Nexus Router appears in your AI servers and your plan's usage applies.

Chose Skip for now, or want a separate token for this machine? Add one by hand below.

AI

Add a Nexus API token by hand

  1. Create a token. On nexus-projects.ai, go to Settings → API tokens, give it a name you'll recognise (for example "Nexus Studio – laptop"), and choose Create token.
  2. Copy it straight away. The full token (it starts with nxr_) is shown once. If you lose it, revoke it and create another.
  3. Open the AI servers in Studio. In the left sidebar choose Hosting, then the AI Servers tab, then Add Server.
  4. Fill in the form and choose Add:
    Server Name
    Nexus (any name works)
    Base URL
    api.nexus-projects.ai
    API Key
    Your nxr_… token

You don't need to type https:// or a path — Studio adds https:// and /api/v1 for you.

Hosting

Add a Nextify API key

Studio uses a Nextify key when you host a project on Nextify's cloud machines.

  1. Create a key. Sign in to the Nextify portal and open Account → API tokens. Copy the key — it starts with nxt_.
  2. Add it in Studio. Choose Hosting, then the Nextify tab, and add a key. Paste it into API key, give it an optional Label (for example "Web" or "Staging"), and choose Add & select.
  3. Host your project. Studio uses the selected key when you host with Nextify. You can keep several keys and switch between them; the Manage keys button on Studio's Account page takes you to the same place.
Developers

Use the API directly

The gateway at api.nexus-projects.ai is OpenAI-compatible, so most tools and SDKs work by changing the base URL and key. Send your Nexus token as a Bearer token.

Base URL
https://api.nexus-projects.ai/v1 (also served at /api/v1)
Auth header
Authorization: Bearer nxr_…
List the models your token can use
curl https://api.nexus-projects.ai/v1/models \
  -H "Authorization: Bearer nxr_your_token"
Chat — model is optional; leave it out to use the default
curl https://api.nexus-projects.ai/v1/chat/completions \
  -H "Authorization: Bearer nxr_your_token" \
  -H "Content-Type: application/json" \
  -d '{"messages":[{"role":"user","content":"Hello!"}]}'
Python, with the OpenAI SDK
from openai import OpenAI

client = OpenAI(
    base_url="https://api.nexus-projects.ai/v1",
    api_key="nxr_your_token",
)

reply = client.chat.completions.create(
    model="your-model-id",  # pick one from /v1/models
    messages=[{"role": "user", "content": "Hello!"}],
)
print(reply.choices[0].message.content)

Endpoints

MethodPathWhat it does
POST/v1/chat/completionsChat, with tools and streaming
POST/v1/completionsText completion
POST/v1/embeddingsEmbeddings
POST/v1/audio/speechText to speech
POST/v1/audio/transcriptionsSpeech to text
POST/v1/images/generationsGenerate images
POST/v1/images/editsEdit images
GET/v1/modelsModels available now — add ?show_all=true for the full catalog
Good practice

Keep tokens safe

  • Use one token per app or device, named so you know where it lives — then you can revoke just that one.
  • Store tokens in a password manager or your app's secret store. Never put them in a public repo or in code that runs in a browser.
  • Revoke a token any time from Settings → API tokens. Anything using it stops working straight away.
  • Usage is metered against your plan. Go over your level and you're slowed down — never cut off.

Stuck? Email support@nexus-projects.ai or use the support form.