Skip to main content
Last Updated: October 19, 2026
Salad AI Gateway is currently in beta. Pay-per-token access is self-service.

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. Usage is billed to the organization associated with that key:
Use the key created on your organization’s AI Gateway page, not the account’s Current API Key. The Salad-Api-Key header used by other SaladCloud APIs does not authenticate AI Gateway requests.
Store your key in the environment before running any example below:
Keep the key server-side and out of source control. See Manage Your AI Gateway API Key to copy, regenerate, or delete it.

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:

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