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.
- Open Nexus Studio. On Sign in to your workspace, use the Sign in tab.
- Enter the email and password you use on nexus-projects.ai. No account yet? Use the Register tab.
- 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.
Add a Nexus API token by hand
- 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.
-
Copy it straight away. The full token (it starts with
nxr_) is shown once. If you lose it, revoke it and create another. - Open the AI servers in Studio. In the left sidebar choose Hosting, then the AI Servers tab, then Add Server.
-
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.
Add a Nextify API key
Studio uses a Nextify key when you host a project on Nextify's cloud machines.
-
Create a key. Sign in to the Nextify portal and open
Account → API tokens.
Copy the key — it starts with
nxt_. - 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.
- 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.
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_…
curl https://api.nexus-projects.ai/v1/models \
-H "Authorization: Bearer nxr_your_token"
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!"}]}'
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
| Method | Path | What it does |
|---|---|---|
POST | /v1/chat/completions | Chat, with tools and streaming |
POST | /v1/completions | Text completion |
POST | /v1/embeddings | Embeddings |
POST | /v1/audio/speech | Text to speech |
POST | /v1/audio/transcriptions | Speech to text |
POST | /v1/images/generations | Generate images |
POST | /v1/images/edits | Edit images |
GET | /v1/models | Models available now — add ?show_all=true for the full catalog |
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.