| Environment | Key prefix | Provider calls | Credit usage | Best for |
|---|---|---|---|---|
| Sandbox | aigen_test_ | No | No | Integration tests, CI, webhook receiver development, Postman collections |
| Live | aigen_live_ | Yes | Paid API credits | Production or controlled staging with real images |
Sandbox
Sandbox requests exercise the API contract without processing images through paid providers. Use sandbox to validate:- authentication and key handling;
- request shape and idempotency behavior;
- status polling;
- webhook receiver logic;
- error handling and retry behavior.
Live
Live requests create real provider work and consume paid API credits. Live API access requires the account to meet the paid credit requirements documented in Credits. Live is appropriate when:- source image URLs are production-ready and publicly reachable;
- webhook verification is implemented if webhooks are enabled;
- the integration stores
external_idand enhancement ids; - retry logic uses idempotency keys correctly;
- operators can inspect failed items and retry only after fixing inputs.
Recommended rollout
- Build the integration with a sandbox key.
- Test single-image requests with each preset.
- Test a small batch with 2 to 5 images.
- Add webhook verification or polling with backoff.
- Run a controlled live batch before enabling the full catalog import.
