Zorveus LogoZorveusDOCS

Using the Scoped OAuth Token

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

Using the Scoped OAuth Token

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

from openai import OpenAI

# Initialize client using the OAuth access token
client = OpenAI(
    base_url="https://api.zorveus.com/v1",
    api_key="zrv_oauth_token_from_exchange",
)

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

print(response.choices[0].message.content)
Was this page helpful?
Edit this page on GitHub

On this page