Get a key
API keys in the console. Shown once.
export DUETA_API_KEY="dueta_sk_..."
curl https://dueta.ai/ v1/ credits \
-H "Authorization: Bearer $DUETA_API_KEY"
# -> {"balance_usd": 20.0, "ledger": [...]}Call with a key
| Route | Credential |
|---|---|
| /v1/uploads, /v1/jobs | Your API key |
| /v1/credits, /v1/usage | Your API key |
| Account, keys, payment | The console |
Organization keys
| Read | With an organization key |
|---|---|
| Balance | The organization's credit. |
| balance_usd | null without the billing permission: /v1/credits, both quotes, the 402 context. |
| Ledger, usage, jobs | Your own jobs in the organization. |
| Idempotency-Key | Scoped to the organization. |
| Monthly limit | Optional. Past it: 402 spend_limit_reached. |
Rotate or revoke
Cases
- 401
- Missing, malformed, revoked or rotated key. Header is
Authorization: Bearer dueta_sk_…. - 401 console
- Session only.
- 401 account
- Account closed or disabled.
- 404
- Another account's id.
- 409
- Email unverified: storing or spending needs it confirmed.