zg_test_, accepts exactly the requests that a
live key accepts. Validation and quotes are real: ZeroGen checks each request
against the real model’s schema and prices it at your organization’s rates.
Only the work differs:
- Runs use ZeroGen’s Echo provider, which returns placeholder media in the requested format, count, size, and duration. The placeholder rehearses the shape of a live output, not its content.
- Nothing reaches a model provider, and nothing is charged.
- A run holds nothing from your balance or spend limits, so its quote is for information only.
The API sandbox
Test keys work only inside your organization’s API sandbox project, which ZeroGen creates the first time a test key needs it.GET /v1/me returns its ID
as sandbox.projectId.
- Every run and upload from a test key lands in the sandbox, and a
projectIdfor any other project returns404 not_found. - A test key can’t read, list, or cancel anything outside the sandbox.
GET /v1/projectslists only the sandbox, and Library reads and writes reach only the sandbox’s assets. - Two kinds of Library request that would reach past the sandbox return
403 permission_deniedfor a test key: creating a folder, and creating, changing, archiving, or restoring a label. A test key can still read your organization’s labels and add them to sandbox assets. - Live keys don’t see the sandbox: its project and assets read as
404 not_found. - ZeroGen deletes what test keys make or upload in the sandbox after 7 days.
Billing on test runs
A test run reportsbilling.mode as test, with state and every
amount null:
billing.mode as test and the real
quotedMicroUsd that a live create would hold.
Rehearse outcomes
Add atest object to a create to rehearse what a live request can meet.
ZeroGen never reads directives from the prompt; only the test object controls
the outcome.
partial: the first output
succeeds, and the second fails with the content_moderation error a live
output would return.
Only test keys accept
test. A live key’s request with a test object fails
with 400 validation_failed, and param is test.