API v2 · updated today

Documentation

SDKs

Official clients for TypeScript, Python, and Go.

Every official SDK wraps the same REST surface, adds retries with jitter, and exposes typed responses. They are generated from the OpenAPI spec, so they never drift from the API.

TypeScript

TS
import { Nexus } from "@nexus-ai/sdk";

const nexus = new Nexus({ apiKey: process.env.NEXUS_API_KEY });
const run = await nexus.agents.run({ model: "nexus-1-turbo", input: "ping" });

Python

PYTHON
from nexus import Nexus

nexus = Nexus(api_key=os.environ["NEXUS_API_KEY"])
run = nexus.agents.run(model="nexus-1-turbo", input="ping")
print(run.output_text)

Go

GO
client := nexus.New(os.Getenv("NEXUS_API_KEY"))

run, err := client.Agents.Run(ctx, nexus.RunParams{
    Model: "nexus-1-turbo",
    Input: "ping",
})

Community clients

  • Ruby: nexus-rb (community maintained)
  • Rust: nexus-rs (community maintained)
  • Elixir: ex_nexus (community maintained)
Demo · dados fictíciosVoltar ao portfólio