Prerequisites
- A SaladCloud organization with a positive credit balance
- An organization-specific AI Gateway API key. Follow Pay-Per-Token Onboarding to create one.
Base URL
All requests go to:Authentication
Pass your organization-specific AI Gateway API key as a Bearer token in theAuthorization header:
Step 1: Test with curl
The quickest way to verify access is a single curl call:Step 2: Use the SaladCloud AI SDK Provider
For JavaScript and TypeScript applications built with the Vercel AI SDK, use the official@saladtechnologies-oss/ai-sdk-provider. The provider requires Node.js 22 or later and automatically uses the Salad AI
Gateway base URL.
Install the provider, Vercel AI SDK, and Zod:
SALAD_CLOUD_API_KEY. If you followed the pay-per-token onboarding guide, map the
existing variable before running your application:
index.mjs:
index.mjs
Step 3: Use the OpenAI Python SDK
Salad AI Gateway is fully compatible with the OpenAI Python SDK — just point it at a different base URL:Step 4: Streaming
For real-time output, enable streaming:Step 5: Use the OpenAI JavaScript/TypeScript SDK
Available Models
See the Models Reference for full details.
Next Steps
- Browse integration guides for agentic tools, IDEs, and frameworks
- Read the Models Reference for model capabilities and limits
- Review AI Gateway Pricing for monthly subscription and pay-per-token options