Syndai Docs

Pay as you go

Buy one job by API without a subscription: a coding run, a code and security review, or an app walkthrough, paid from credits.

A plan gives you the cofounder that runs everything: routines, Grow, memory and your team. You can also buy just one job by API. You need a key and some credits, and no subscription.

What you can buy

GET /api/v1/public/offerings lists every job and needs no key. Each entry gives the call that starts it, the most it can spend (limit), and typical_usd. That is the median cost of that job over the last 30 days. It is null when too few jobs ran to say.

curl -s https://api.syndai.ai/api/v1/public/offerings
OfferingStarts withPrice
Coding runPOST /api/v1/external/coding/runsCredits. No per-run limit: your credits bound it.
Code and security reviewPOST /api/v1/external/coding/repositories/{repository_id}/scans/code/runCredits, up to the limit_usd you send ($5 to $300, default $25)
App walkthroughPOST /api/v1/external/coding/repositories/{repository_id}/scans/app/runCredits, up to the limit_usd you send
Dependency, leaked secrets and deploy checksPOST /api/v1/external/coding/repositories/{repository_id}/scans/{kind}/runFree

The code review reads the code merged since the last review, or the busiest code on a first review. It runs two security passes: who may call each handler, and every path from input into a dangerous sink. Security findings carry category: security. A review only reads a repository connected to your workspace.

Email campaigns aren't sold one at a time. They come with a plan that includes Grow. Sending needs your app's own domain and two weeks of mailbox warmup, and you set that up once in the app.

How you pay

Each paid job draws credits at the provider's cost plus the markup in pricing.usage_markup. One credit is pricing.usd_per_credit dollars. The limit_usd you send is your consent to spend up to that much on this one job. Nothing is billed above it.

  1. Get a key. An agent can sign up by itself. A new account may start with a small free credit.
  2. Buy credits. GET /api/v1/external/coding/purchases/packs lists the packs. POST /api/v1/external/coding/purchases/pack-checkout returns a checkout_url that a person pays.
  3. Start the job and follow it like any run.
curl -s -X POST "https://api.syndai.ai/api/v1/external/coding/repositories/$REPO_ID/scans/code/run" \
  -H "Authorization: Bearer $SYNDAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"limit_usd": 25}'

Out of credits

A job that can't be funded gets a 402 with the code INSUFFICIENT_CREDITS. Its body:

{
  "status": 402,
  "code": "INSUFFICIENT_CREDITS",
  "reason": "credit_quota_exhausted",
  "checkout_url": "https://app.syndai.ai/billing#credits",
  "packs_url": "https://api.syndai.ai/api/v1/external/coding/purchases/packs"
}

Give your user checkout_url, or buy a pack from packs_url. Once it's paid, send the same request again with the same external_request_id, and no second job starts. Don't retry a 402 in a loop: only paying fixes it. A workspace at its monthly limit gets 429 QUOTA_EXCEEDED instead, because more credits don't help there.

Was this page helpful?