Guard a Sume run's text output with a yes/no model before you post it
Read output from a completed Sume run, ask a small decision model whether it is safe to publish, and treat a degraded outcome or null output as a hard stop.

Check the run first, then the content. Read outcome before anything else: ok means that you got usable output, degraded means that real artifacts exist but output is null, and error means that the run failed. Only on ok do you hand the text to a yes/no decision model that answers one question, such as whether the text may be posted. A model that approves bad output is still wrong, so keep a human path for the low-confidence cases.
Checks in order
The order below keeps the cheap, deterministic checks ahead of the model.
| Order | Check | On failure |
|---|---|---|
| 1 | outcome is ok | Review or retry |
| 2 | output is not null | Review artifacts |
| 3 | Decision model yes/no | Human review |
| 4 | Post | Done |
def gate(event: dict, ask_model) -> str:
if event.get("outcome") != "ok":
return "stop: outcome " + str(event.get("outcome"))
output = event["payload"].get("output")
if output is None:
return "stop: no output"
return "post" if ask_model(str(output)) else "human review"
event = {"outcome": "ok", "payload": {"output": {"text": "hi"}}}
print(gate(event, lambda t: True))
print(gate({"outcome": "degraded", "payload": {}}, lambda t: True))
Do not post twice
Dedupe deliveries on the envelope request_id, since a webhook can be retried. A second delivery of the same run must not post twice.
Check the docs before you ship
Sume's limits and field names change faster than blog posts do. Read the linked docs pages for the current request fields before you ship, and send a dry_run or a low spend cap on your first real call.
Sources
Related posts
More in Use cases
- 300x600 half-page ad image: render 720x1440, keep a 600x1200 copy
A 300x600 half-page ad is 1:2. GPT Image 2.5 can render 720x1440 in one call; scale by 2.4 for 1x or by 1.2 for a 600x1200 retina file. Checks and prices.
- Handheld selfie UGC prompt for Seedance 2.5: a template and cost
A five-line prompt template for handheld, selfie-style UGC clips on Seedance 2.5, with 9:16 settings and the Sume price at 480p, 720p and 1080p.
- Hardware Store DIY Tip Video With an AI Avatar: Cost per Clip
Weekly DIY tips from a hardware store host avatar: a short scene script, seconds per scene, request JSON, and Sume cost per clip on each quality tier.
- Hinge video prompt: 30 seconds, in-app recording, and Sume's role
Hinge says video prompts are up to 30 seconds, recorded inside the app, so a rendered file is not the route. Where Sume helps: rehearsal timing.
Written by Sume