Quickstart
Get a response from a Nexus model in under 5 minutes.
1. Install the SDK
$ pip install nexus-ai
2. Get your API key
Sign up at nexus.ai and grab a key from the dashboard.
3. Make your first request
import nexus
client = nexus.Client()
response = client.complete(
model="nexus-llama-70b",
prompt="Hello, world",
max_tokens=100,
)
print(response.text)
4. Stream tokens
for chunk in client.stream(prompt="Hi"):
print(chunk.text, end="")
That's it. Read the full reference for advanced options.