Skip to main content
Sail is a drop-in replacement for OpenAI and Anthropic-compatible inference providers, supporting the OpenAI Responses (/v1/responses), OpenAI Chat Completions (/v1/chat/completions), and Anthropic Messages (/v1/messages) APIs. Switching from OpenAI, Anthropic, or any compatible provider is just a configuration change.
Want an agent to do it?Copy a migration prompt, paste it into your coding agent, and then use the guide below to review the changes.
Using Claude Code or Codex? Install the Sail skills instead and ask your agent to “Migrate this app to Sail”. The sail-migrate skill guides the full migration, including moving sandboxed execution to Sail.

1. Get your API key

Sign up at the Sail dashboard and create an API key. Export it where your agent and app can read it:

2. See what changes

Already calling the OpenAI Responses API? The request and response are identical:
Sail Responses API
Already calling the Anthropic Messages API? Keep the Anthropic SDK and point it at the bare Sail host. The SDK appends /v1/messages itself:
Sail Messages API

Notes

  • Synchronous by default. responses.create blocks and returns the completed response, exactly like OpenAI. For long-running work, pass background=True to get an ID back immediately, then poll. This avoids HTTP timeouts. See the Quickstart.
  • Pick a service tier for each call site. Omit service_tier for the default low-latency behavior, which pairs low latency with Sail’s cost efficiency. Balanced and Flex give you more tokens per dollar for autonomous work and background agents. See Service tiers.
  • Prompt caching is automatic. Sail caches repeated prompt prefixes on every API, so you don’t need cache_control breakpoints; they are accepted and have no effect. On the Messages API, cache hits are reported in usage.cache_read_input_tokens and billed at the cached input rate. See the API support matrix.

Next steps

AI Quickstart

Set your coding agent up with Sail’s docs and skills.

Quickstart

Make your first request against Sail.

Models

Browse supported models and pick a replacement.

Service tiers

How the latency-for-price tradeoff works.

Pricing

Per-token rates by model and service tier.

Support

Email us if you hit anything unexpected.