Zorveus LogoZorveusDOCS
OAuth Integration

Use the scoped OAuth token

View Markdown

Execute inference calls using the user-provided OAuth access token.

The access_token returned by /oauth/token is a standard Zorveus API key (zrv_...). Pass it directly in the Authorization: Bearer zrv_... header, the official Zorveus SDK constructors, or OpenAI SDK apiKey parameters.


Make an inference request

Client SDK / Framework:
import { Zorveus } from "@zorveus/sdk";

// Initialize Zorveus client using the user's wallet access token
const client = new Zorveus({
  apiKey: userOAuthAccessToken,
});

const completion = await client.chat.completions.create({
  model: "openai/gpt-4.1-mini",
  messages: [{ role: "user", content: "Hello Zorveus!" }],
});

console.log(completion.choices[0].message.content);
Was this page helpful?
Edit this page on GitHub

On this page