Skip to main content
Last Updated: September 2, 2026
Salad AI Gateway is currently in beta.

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 the Authorization header:

Step 1: Test with curl

The quickest way to verify access is a single curl call:
You should receive a JSON response containing the model’s reply.

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:
The provider reads your key from SALAD_CLOUD_API_KEY. If you followed the pay-per-token onboarding guide, map the existing variable before running your application:
Create index.mjs:
index.mjs
Run the example:
The provider also supports streaming, tool calling, structured output, reasoning options, and image inputs. See the SaladCloud AI SDK Provider repository for configuration and additional examples.

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:
Store your key in an environment variable rather than hardcoding it:

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