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

# Overview

> Run long-horizon agents on Sail.

Sail serves trillions of tokens, with support for the best open-source models and your own LoRA fine-tunes.
To achieve maximum efficiency for long-horizon agents, we serve traffic at higher latencies in tiers of service called [completion windows](/completion-windows).

<CodeGroup>
  ```python Python theme={null}
  from openai import OpenAI

  client = OpenAI(
      base_url="https://api.sailresearch.com/v1",
      api_key="YOUR_SAIL_API_KEY",
  )

  completion = client.chat.completions.create(
      model="zai-org/GLM-5.2-FP8",
      messages=[{"role": "user", "content": "What are the top 3 things to do in San Francisco?"}],
  )

  print(completion.choices[0].message.content)
  ```

  ```typescript TypeScript theme={null}
  import OpenAI from "openai";

  const client = new OpenAI({
    baseURL: "https://api.sailresearch.com/v1",
    apiKey: process.env.SAIL_API_KEY,
  });

  const completion = await client.chat.completions.create({
    model: "zai-org/GLM-5.2-FP8",
    messages: [
      {
        role: "user",
        content: "What are the top 3 things to do in San Francisco?",
      },
    ],
  });

  console.log(completion.choices[0].message.content);
  ```

  ```bash cURL theme={null}
  curl https://api.sailresearch.com/v1/chat/completions \
    -H "Authorization: Bearer $SAIL_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{
      "model": "zai-org/GLM-5.2-FP8",
      "messages": [
        {
          "role": "user",
          "content": "What are the top 3 things to do in San Francisco?"
        }
      ]
    }'
  ```
</CodeGroup>

<div className="sail-home">
  <div className="sail-simple-cards">
    <a className="sail-simple-card" href="/models">
      <span className="sail-simple-card-art sail-simple-card-art--model" aria-hidden="true" />

      <span className="sail-simple-card-title">Run an AI model</span>

      <span className="sail-simple-card-desc">
        Run leading open-source AI models with our OpenAI-compatible inference API.
      </span>
    </a>

    <a className="sail-simple-card" href="/sailboxes">
      <span className="sail-simple-card-art sail-simple-card-art--sailbox" aria-hidden="true" />

      <span className="sail-simple-card-title">Create a Sailbox</span>

      <span className="sail-simple-card-desc">
        Give long-horizon agents persistent compute that can run indefinitely.
      </span>
    </a>

    <a className="sail-simple-card" href="/requests_at_scale">
      <span className="sail-simple-card-art sail-simple-card-art--scale" aria-hidden="true" />

      <span className="sail-simple-card-title">Send requests at scale</span>

      <span className="sail-simple-card-desc">
        Use completion windows and background requests for large workloads.
      </span>
    </a>
  </div>
</div>

## Intelligence at scale

More agents thinking longer and harder, with space to act and explore, can do incredible things:

<ul className="sail-uses">
  <li>
    <a className="link" href="https://detail.dev/" target="_blank" rel="noopener noreferrer">
      Detail
    </a>

    {" "}

    uses Sail inference to deeply scan codebases for their most consequential
    yet hard-to-catch bugs
  </li>

  <li>
    <a className="link" href="https://www.jackandjill.ai/" target="_blank" rel="noopener noreferrer">
      Jack & Jill
    </a>

    {" "}

    runs large-scale deep research with Sail inference, matching job seekers'
    resumes with job descriptions from thousands of employers
  </li>

  <li>
    We{" "}

    <a className="link" href="https://www.sailresearch.com/news/browsecomp-plus" target="_blank" rel="noopener noreferrer">
      won Browsecomp-Plus
    </a>

    , the AI deep research benchmark, using open models running on Sail
    inference
  </li>

  <li>
    We{" "}

    <a className="link" href="https://www.sailresearch.com/news/introducing-sailboxes-persistent-sandboxes" target="_blank" rel="noopener noreferrer">
      built Redis in Rust
    </a>

    {" "}

    with a swarm of 4 long-horizon coding agents running on Sailboxes with Sail
    inference over 27 hours
  </li>
</ul>

<div className="sail-home-trust">
  <a className="link" href="https://trust.sailresearch.com" target="_blank" rel="noopener noreferrer">
    Trust Center
  </a>
</div>
