Guide
Use open models in CI/CD and test runs
Updated
Store a Tadly API key as a CI secret and send requests to https://api.tadly.dev/v1. The API is OpenAI-compatible, so any OpenAI SDK or plain curl works. Give each pipeline its own key to see its usage and cost, and pay in advance so a runaway job cannot run up a bill.
How do I call a model from a CI job?
- Create a key in the dashboard, named after the pipeline.
- Save it as a secret called
TADLY_API_KEYin your CI system. - Call the API from your job:
curl https://api.tadly.dev/v1/chat/completions \
-H "Authorization: Bearer $TADLY_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "qwen3.5", "messages": [{"role": "user", "content": "Summarise this test failure: ..."}]}'With an OpenAI SDK, set the base URL to https://api.tadly.dev/v1 and the API key to the secret. Models available now: Qwen-3.5.
How should an unattended job handle errors?
| Row label | Meaning | What the job should do |
|---|---|---|
| 429 | Rate limited, or the model is busy | Wait for Retry-After, then retry |
| 503 model_warming | The model is starting | Wait for Retry-After, then retry |
| 402 insufficient_balance | Your wallet is empty | Fail the job and add credit |
Every error code is listed in the API docs.
How do I pay for test traffic?
Add credit to a prepaid wallet and pay per request, or buy a one-time 30-day plan. Neither renews. See pricing and the no-subscription guide.
Common questions
Can I give each pipeline its own API key?
Yes. Create as many named keys as you need in the dashboard. Usage and cost are shown per key, and you can revoke one key without touching the others.
How do I stop a test job from overspending?
Billing is prepaid. A job can spend only the credit in your wallet; when it runs out the API answers HTTP 402 insufficient_balance instead of billing you later.
Which errors should a job retry?
Retry 429 and 503 after the Retry-After header. A 503 with code model_warming means the model is starting. Do not retry 402 or other 4xx errors; fix the request or add credit.