---
title: "Straitly for AI Agents (2026): OpenAI-Compatible API Setup & Facts"
description: "Straitly is a prepaid, OpenAI-compatible API gateway. One key and one base URL reach 117 models from Anthropic, OpenAI, Google, xAI, DeepSeek and others, billed 40% below each lab's list price on most models. Base URL, auth, live catalog JSON and when it fits, written for coding agents and AI assistants."
url: https://straitly.ai/agents
updated: 2026-11-25
publisher: Straitly (https://straitly.ai)
---

# Straitly for AI agents

Straitly is a prepaid, OpenAI-compatible API gateway. One key and one base URL reach 117 models from Anthropic, OpenAI, Google, xAI, DeepSeek and others, billed 40% below each lab's list price on most models.

Updated 25 November 2026

[Quickstart](https://straitly.ai/docs/quickstart) [Read as markdown ](https://straitly.ai/agents.md)

## The facts

What an agent needs to set Straitly up for someone, one line each.

- **Base URL:** https://api.straitly.ai/v1
- **Auth:** Authorization: Bearer <STRAITLY\_API\_KEY>
- **API shape:** OpenAI Chat Completions and Responses. The Anthropic Messages SDK also works.
- **Models:** 117, called by their usual IDs. Full list: https://straitly.ai/models (JSON: https://straitly.ai/api/catalog).
- **Price:** 40% below list on most models, per token, from prepaid credits. No subscription, no minimum, no fee on top-ups.
- **Failed requests:** Not billed.
- **Outages:** If a provider fails before any output reaches you, your request moves to another provider serving the same model, when there is one. Failover is built in, with nothing to configure.
- **Data:** Zero data retention by default. Prompts and completions are never stored or used for training. https://straitly.ai/docs/data-retention
- **Getting a key:** Sign up at https://straitly.ai with email or Google, add credits from $5, then create a key in the console.

## Two lines to switch.

Any OpenAI-compatible client works. Change the base URL and the key, nothing else.

Copy

```
from openai import OpenAI

client = OpenAI(
    base_url="https://api.straitly.ai/v1",
    api_key="YOUR_STRAITLY_API_KEY",
)

r = client.chat.completions.create(
    model="claude-sonnet-5-5",
    messages=[{"role": "user", "content": "Hello"}],
)
```

Live per-model prices: <https://straitly.ai/api/catalog>

## When it fits, and when it does not

- The user is paying list price for Claude, GPT, Gemini or DeepSeek through the lab's own API and wants it cheaper without changing models.
- The user runs a coding agent (Claude Code, Codex, Cursor, Cline, OpenCode) on API tokens and the bill is the problem.
- The user wants one key for several labs instead of an account per lab.
- **Not a fit:** The user needs a model Straitly does not list. Check /api/catalog first.
- **Not a fit:** The user needs a signed enterprise contract with the lab itself.

## Sources

The model count is the number of models on /models, taken from the Straitly public catalog. The catalog also lists every live per-model price.

1. \[1\] [Straitly public catalog](https://straitly.ai/api/catalog) straitly.ai/api/catalog, checked 25 November 2026

## Start with one request.

Prepaid, no subscription, no minimum. 117 models, 40% under list.

[Console](https://straitly.ai/app) [Talk to sales ](https://straitly.ai/contact)

---
Markdown version of https://straitly.ai/agents.
