Skip to content

Regenerate Workflow

The first generation on a cell is rarely the final one. You’ll iterate — swap the model, tweak the prompt, pass different assets, regenerate. This page covers the patterns and the credit behavior so you know what’s actually happening.

If you want to swap models or tweak the prompt, just POST a new generation with the updated data:

Terminal window
curl -X POST "https://api.gen.pro/v1/autocontentengine/$ENGINE_ID/cells/$CELL_ID/generate?agent_id=$AGENT_ID" \
-H "X-API-Key: $GEN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"generation_type": "video_from_text",
"data": {
"prompt": "... updated prompt ...",
"model": "veo_3_1_fast",
"aspect_ratio": "9:16",
"duration": 10
}
}'

A new generation_id is returned. The previous generation is still there in the history (you can find it via the cell’s generations list), but the cell’s displayed output updates to the new one once it completes.

If a generation is running long and you want to bail:

Terminal window
curl -X POST "https://api.gen.pro/v1/generations/789/stop" \
-H "X-API-Key: $GEN_API_KEY"

Credits for that generation are refunded to your workspace. The generation’s final status becomes stopped. You can then fire a new generation immediately.

Pattern 3 — continue a stopped generation

Section titled “Pattern 3 — continue a stopped generation”

If you stopped by accident, continue it:

Terminal window
curl -X POST "https://api.gen.pro/v1/generations/789/continue" \
-H "X-API-Key: $GEN_API_KEY"

Credits are re-charged and the job resumes from pending.

Want to regenerate a whole column across all rows (e.g. you swapped the script prompt)? Use mass_update on the cells + trigger each. No single endpoint regenerates N cells at once — trigger each POST /cells/:cell_id/generate in a tight loop.

EventCredit behavior
POST /cells/:id/generatePre-charge on creation.
Generation completes successfullyFinal cost reconciled (refund delta or charge extra).
Generation failsFull refund.
Generation stopped via /stopFull refund.
Generation resumed via /continueRe-charged.
Triggering a new generation on the same cellIndependent charge — previous generation’s credits are not reused.

Before kicking off N generations, read the org balance:

Terminal window
curl "https://api.gen.pro/v1/organizations/$ORG_ID" \
-H "X-API-Key: $GEN_API_KEY"

Response includes available_credit: { generic, aura }. If generic credits are too low for the expected batch cost, top up first — a 422 insufficient_credits_for_job mid-batch is painful.

A cell tracks all its generations, not just the latest. To see the history:

Terminal window
curl "https://api.gen.pro/v1/autocontentengine/$ENGINE_ID/cells/$CELL_ID?agent_id=$AGENT_ID" \
-H "X-API-Key: $GEN_API_KEY"

Response includes the current user_job_id (the generation currently displayed) and, via the engine’s user_jobs, all historical generations with timestamps and statuses.