examples/quickstart/README.md
Simple, copy-paste scripts to get your first response from a local OmniRoute server in under a minute.
Start OmniRoute locally first:
npx omniroute
# Server is now live at http://localhost:20128/v1
| File | Language | Dependency |
|---|---|---|
python_requests.py | Python | pip install requests |
nodejs_axios.js | Node.js | npm install axios |
curl_terminal.sh | Bash / cURL | curl (pre-installed on Mac/Linux) |
php_curl.php | PHP | PHP 7.4+ with cURL |
All examples use felo/auto — a keyless, zero-configuration model that works immediately with no provider sign-up required.
| Setting | Value | Why |
|---|---|---|
model | felo/auto | Keyless provider, works out of the box |
stream | false | Returns standard JSON instead of SSE stream |
Authorization | Bearer dummy-key | Any non-empty string satisfies the header requirement |
To use a different model, replace felo/auto with any model ID from:
curl http://localhost:20128/v1/models