> ## Documentation Index
> Fetch the complete documentation index at: https://docs.salad.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> For autonomous tasks, use live SaladCloud API responses for current state, availability, quotas, models, and other dynamic values. Use current OpenAPI specifications where provided for paths, schemas, required fields, and enums. Never invent endpoints, fields, prices, availability, quotas, models, or state. Prefer API workflows over Portal steps. Read before changing and never expose credentials, signed media URLs, prompts, or sensitive outputs. Retry only safe or idempotent operations with bounded backoff, honoring Retry-After. Verify every write with a read. Stop rather than repeat an uncertain non-idempotent or billable request. AI Gateway uses an organization-specific Bearer key and live /v1/models discovery. Do not delete, cancel, stop, or reduce capacity without explicit user intent. Bind shared operation IDs to the selected product path. Treat Container Engine instances as interruptible and local state as ephemeral. Install the SaladCloud skills (npx skills add https://docs.salad.com), start from the salad skill and /agents/overview; docs MCP: https://docs.salad.com/mcp.

# Salad AI Gateway Overview

> OpenAI-compatible LLM API powered by SaladCloud distributed GPU infrastructure.

*Last Updated: October 19, 2026*

> Use the `salad-ai-gateway-request` skill and [AI Gateway request
> runbook](https://docs.salad.com/agents/ai-gateway/select-model-and-send-request.md). Retrieve live model IDs from `/v1/models`, use only the
> organization-specific Bearer key, protect prompts and output, and never automatically repeat uncertain billable
> work.

> [!WARNING]
>
> Salad AI Gateway is currently in **beta**. Pay-per-token access is self-service.

## What is Salad AI Gateway?

Salad AI Gateway is a managed LLM API service that gives you direct access to powerful open-source models through a
single, OpenAI-compatible endpoint - with no infrastructure to deploy or manage. It is powered by SaladCloud's
distributed GPU network, bringing the same cost-efficiency of self-hosted models with the simplicity of a hosted API.

Any tool or library that supports a custom base URL - Aider, OpenCode, OpenClaw, Cline, Cursor, Goose, Vercel AI SDK,
and more - works with Salad AI Gateway out of the box.

## API Endpoint

```
https://ai.salad.cloud/v1
```

## Available Models

The following models are currently available:

| Model | Description |
| :- | :- |
| `qwen3.6-35b-a3b` | Qwen 3.6 35B Mixture of Experts - best for agentic tasks and complex reasoning |
| `qwen3.6-27b` | Qwen 3.6 27B dense - general purpose, balancing capability and speed |
| `qwen3.5-35b-a3b` | Qwen 3.5 35B Mixture of Experts - suited for agentic tasks and reasoning |
| `qwen3.5-9b` | Qwen 3.5 9B dense - fastest model, suited for high-volume simple queries |

Additional models will be added as the service moves toward general availability.

## Access Model

Access is self-service and billed per token. Each AI Gateway key belongs to one user and one organization, and requests
are billed to that organization's credits; a positive balance is required to admit new requests.

## Billing

Pay-per-token requests use the [published input and output token rates](https://docs.salad.com/ai-gateway/reference/pricing.md), with no
concurrency limit. Usage draws from the credit balance of the organization associated with your key. Requests already
admitted complete and are billed even if credits run out during generation or the key is revoked or regenerated.

Follow [Pay-Per-Token Onboarding](https://docs.salad.com/ai-gateway/tutorials/pay-per-token-onboarding.md) to add credits and create your AI
Gateway API key.

## Quick Start

The API follows the OpenAI `v1/chat/completions` format. Send requests using your organization-specific AI Gateway API
key in the `Authorization` header. This is not the account API key used with `Salad-Api-Key`:

```bash theme={null}
export SALAD_AI_GATEWAY_API_KEY="<your-ai-gateway-api-key>"

curl https://ai.salad.cloud/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $SALAD_AI_GATEWAY_API_KEY" \
  -d '{
    "model": "qwen3.6-35b-a3b",
    "messages": [
      {"role": "user", "content": "Explain distributed GPU computing in one paragraph."}
    ]
  }'
```

Replace `<your-ai-gateway-api-key>` with the key created for the organization you want to bill.

## Use with OpenAI-Compatible Tools

Because Salad AI Gateway exposes a standard OpenAI-compatible endpoint, you can use it with any tool that supports a
custom base URL.

We have integration guides for many popular agentic tools - Cline, Aider, OpenCode, OpenClaw, Kilo Code, Roo Code,
Continue, Goose, Hermes Agent, and more. In guides with both backends, follow the **Salad AI Gateway** tab. Self-hosted
Container Engine deployments use different endpoints and authentication. For AI Gateway, set your organization-specific
AI Gateway key in the tool's API key field (sent as `Authorization: Bearer`) and point the base URL to
`https://ai.salad.cloud/v1`. Do not add a `Salad-Api-Key` custom header.

> [card] [Cline](https://docs.salad.com/container-engine/tutorials/agentic-tools/use-cline-with-saladcloud.md)
>
> VS Code AI coding agent

> [card] [Aider](https://docs.salad.com/container-engine/tutorials/agentic-tools/use-aider-with-saladcloud.md)
>
> CLI AI pair programmer

> [card] [OpenCode](https://docs.salad.com/container-engine/tutorials/agentic-tools/use-opencode-with-saladcloud.md)
>
> Terminal coding agent

> [card] [OpenClaw](https://docs.salad.com/container-engine/tutorials/agentic-tools/use-openclaw-with-saladcloud.md)
>
> Always-on AI assistant

> [card] [Kilo Code](https://docs.salad.com/container-engine/tutorials/agentic-tools/use-kilo-code-with-saladcloud.md)
>
> VS Code coding agent

> [card] [Roo Code](https://docs.salad.com/container-engine/tutorials/agentic-tools/use-roo-code-with-saladcloud.md)
>
> VS Code AI coding agent

> [card] [Continue](https://docs.salad.com/container-engine/tutorials/agentic-tools/use-continue-with-saladcloud.md)
>
> VS Code + JetBrains coding assistant

> [card] [Vercel AI SDK](https://docs.salad.com/container-engine/tutorials/agentic-tools/use-vercel-ai-sdk-with-saladcloud.md)
>
> TypeScript AI app framework

> [card] [Goose](https://docs.salad.com/container-engine/tutorials/agentic-tools/use-goose-with-saladcloud.md)
>
> CLI + desktop AI agent

> [card] [Hermes Agent](https://docs.salad.com/container-engine/tutorials/agentic-tools/use-hermes-agent-with-saladcloud.md)
>
> Self-improving AI agent with MCP

**Python (openai SDK):**

```python theme={null}
import os
from openai import OpenAI

client = OpenAI(
    base_url="https://ai.salad.cloud/v1",
    api_key=os.environ["SALAD_AI_GATEWAY_API_KEY"],
)

response = client.chat.completions.create(
    model="qwen3.6-35b-a3b",
    messages=[{"role": "user", "content": "Hello from Salad AI Gateway!"}],
)
print(response.choices[0].message.content)
```

**Environment variables (for tools like Aider, etc.):**

```bash theme={null}
export OPENAI_BASE_URL=https://ai.salad.cloud/v1
export OPENAI_API_KEY="$SALAD_AI_GATEWAY_API_KEY"
```

These tool-specific variables contain the same AI Gateway key set in Quick Start, not an account API key or an OpenAI
API key.

## Why Salad AI Gateway?

* **No Infrastructure** - no container groups to deploy, no replicas to manage, no cold starts to worry about
* **Always on** - our distributed GPU network ensures high availability and reliability
* **OpenAI-compatible** - easy integration with any OpenAI-compatible tool
* **SaladCloud Pricing** - 90% cost savings vs traditional providers
* **[Data Privacy](https://salad.com/privacy/#4-ai-gateway-data-policy)** - your data is never used for training
* **Powered by Sustainable Computing** - utilizing otherwise wasted GPU resources to reduce carbon footprint

## Get Access

Pay-per-token access is available through self-service onboarding.

[Self-onboard for pay-per-token access](https://docs.salad.com/ai-gateway/tutorials/pay-per-token-onboarding.md) or
[learn more about Salad AI Gateway](https://salad.com/ai-gateway).

Already have a key? See [Manage Your AI Gateway API Key](https://docs.salad.com/ai-gateway/how-to-guides/manage-api-key.md) for rotation and
deletion, or [Errors](https://docs.salad.com/ai-gateway/reference/errors.md) for billing and access failures.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.