Get started
Quickstart
Straitly is one OpenAI-compatible API for 66 models. Keep the SDK you already use, change the base URL and the key, and every model is a string in the model field.
- Base URL
https://api.straitly.ai/v1- Auth
Authorization: Bearer sk-...- Formats
- OpenAI
/chat/completionsand Anthropic/messages
Make your first request
- Create a key. Open the API keys page and create one. Keep it in an environment variable such as
STRAITLY_API_KEY. - Point your client at Straitly. Set the base URL to
https://api.straitly.ai/v1. The request and response shapes are the ones your SDK already expects. - Send a request. Pick any id from the models page and send it like this:
curl https://api.straitly.ai/v1/chat/completions \ -H "Authorization: Bearer $STRAITLY_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "claude-sonnet-5", "messages": [{"role": "user", "content": "Hello"}] }'curl
Use it from your tools
Use the setup guide for your agent or app, or connect directly with your preferred SDK.
Good to know
- Prepaid, per token. You pay each model’s listed rate from your balance. When the balance runs out, requests return
402and nothing more is billed. Models & pricing - Failed requests are free. They still show in Activity at zero cost, with the reason.
- Limits. Accounts start at 300 requests a minute and 64 in flight, shared across keys. Every 429 says how long to wait. Errors & limits
- Streaming and tools work as usual.
stream: true, tool calling, vision and structured outputs pass through unchanged. Streaming - Keys you can hand out. Give each app or customer its own key with a daily cap or a lifetime budget. Child keys
Get help and join the community
Building with Straitly? Join our Discord for setup questions and integration discussions. For account or billing details, contact support privately.
Never share API keys or setup commands containing keys in a public channel. What to include in a support request