Skip to main content
A test key, which starts with 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:
  • Generations run on 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 generation holds nothing from your balance or spend limits, so its quote is for information only.
Create a test key in ZeroGen under Settings → API keys.

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 generation and upload from a test key lands in the sandbox, and a projectId for any other project returns 404 not_found.
  • A test key can’t read, list, or cancel anything outside the sandbox.
  • ZeroGen deletes what test keys make or upload in the sandbox after 7 days.

Billing on test generations

A test generation reports billing.mode as test, with state and every amount null:
A test key’s quote reports billing.mode as test and the real quotedMicroUsd that a live create would hold.

Rehearse outcomes

Add a test 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.
This generation ends after about 10 seconds as 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.

Limits on test keys

Test keys have their own limits, so test traffic never delays live work:
  • Test keys count against a separate per-user request window. For details, see Rate limits.
  • Each organization’s test keys can have 4 generations queued or running at once.