For the complete documentation index, see llms.txt. This page is also available as Markdown.

Quickstart

Quick start

The nexos.ai Gateway provides an OpenAI-compatible API, so you can use existing OpenAI-compatible SDKs and tools by changing only the API key and base URL.

Three steps to your first request

1

Generate an API key

Go to Gateway → API keys and click Generate API Key.

We recommend storing your API key as an environment variable.

export NEXOS_API_KEY="nexos-..."

Keep your API key secure. Never commit it to source control or expose it in client-side applications.

2

Make your first call

Send a basic chat completion - just a model and a messages array, where each message has a role and content.

curl https://api.nexos.ai/v1/chat/completions \
  -H "Authorization: Bearer $NEXOS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "GPT 5.6 Sol",
    "messages": [
      { "role": "user", "content": "Hello, world!" }
    ]
  }'

You can get list of available models here: https://docs.nexos.ai/gateway-api/models

3

Use the Python SDK

Because the Gateway is OpenAI-compatible, you can use the official OpenAI SDK. Simply set your nexos.ai API key and Gateway base URL.

Install the SDK

pip install openai
from openai import OpenAI

client = OpenAI(
    base_url="https://api.nexos.ai/v1",
    api_key="YOUR_NEXOS_API_KEY",
)

response = client.chat.completions.create(
    model="GPT 5.6 Sol",
    messages=[
        {"role": "user", "content": "Hello, world!"},
    ],
)

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

That's it — swap the model value to route the same request to any model in your Gateway.

Last updated