Docs
SrotGateway works like the OpenAI API. Use base URL https://api.srotgateway.com/v1 and your sg- key with any OpenAI library or tool.
Quick start
Make your first SrotGateway API call in 3 minutes.
Python
Call SrotGateway from Python with the official OpenAI library.
JavaScript
Call SrotGateway from Node.js or the browser with the official OpenAI library.
curl
Call the SrotGateway API from the command line with curl.
Use SrotGateway in Cursor
Set up Cursor to use low-cost SrotGateway models with an OpenAI-compatible base URL.
Use SrotGateway in Cline
Set up the Cline coding agent in VS Code to use low-cost SrotGateway models.
Use SrotGateway in n8n
Use SrotGateway models in n8n AI workflows by setting a custom base URL on OpenAI credentials.
Use streaming for long answers
Why and how to use streaming with SrotGateway so long answers never time out.
Errors and limits
SrotGateway API error codes, rate limits (60 requests a minute per key, 5 calls at once) and how to retry.