StanfordUniversity IT Responsible AI for everyone
AI CatalystBeta

Slide deck · AI Catalyst · intermediate

Stanford AI API gateway Practical Guide

Hands-on guide to the Stanford AI API Gateway (aiapi-prod.stanford.edu), the University IT service that routes requests to OpenAI, Anthropic Claude, Google Gemini, DeepSeek and Llama models through a single OpenAI-compatible API. Covers how to request a key in ServiceNow, Bearer token authentication, listing the models your key can access, and the anatomy of a chat completion request. Includes worked examples for simple chat, streaming, SDK setup, embeddings, image generation, file input, reasoning models, prompt caching with Claude, tool calling, structured output and batch processing, plus rate limits, error handling and where to get support. Intended for developers, researchers and technical staff at Stanford building AI into applications, notebooks or platform workflows.

Private: Stanford sign-in required

Sign in to read this resource

This item is available to the Stanford community. Sign in with your Stanford Google account and you will be brought straight back here.

Sign in with Stanford Google