Timing large content runs around traffic, prices and limits

Content work splits neatly into two kinds. Interactive drafting, where a writer asks for a section and reads it straight away, and batch drafting, where a script works through a list of two hundred product pages or fifty location pages while nobody watches. Batch jobs do not care what time it is, which makes them perfect for running when the API is quieter and, with some providers, cheaper.
This article is for anyone who runs content jobs larger than they want to babysit. It covers how to decide when to run them, how time-of-day pricing affects the choice, how to pace requests so you stay inside rate limits, and, most importantly, how to make a batch resumable so a failure at item 143 does not mean starting from item 1.
The examples point at the free keyless endpoint on this site, which runs an independent open-weight model, free-ai. This site is not affiliated with DeepSeek, and nothing here gives access to DeepSeek models. The scheduling ideas apply equally to DeepSeek's own API or any other OpenAI-compatible service.
Frequently asked questions
What is off-peak pricing for an AI API?
It is a lower rate some providers charge during hours when their servers are less busy. DeepSeek has offered such discounts at various times. The hours and rates change, so check the provider's current pricing page before planning around them.
Why are some APIs slower at certain times of day?
Shared servers serve many users. When a large share of them is awake and working, queues get longer and responses slow down or fail with busy errors. Quieter hours usually mean faster, more consistent responses.
What is a resumable batch?
A batch job that records which items are finished, so that after a crash, a network error or a daily limit it can continue from where it stopped instead of starting over. It is the single most useful property a long content job can have.
How does a batch differ from a queue?
A batch is a fixed list processed once. A queue is a list that items can be added to over time, processed by a worker that keeps running. Small sites usually need a resumable batch; larger teams with ongoing requests benefit from a queue.
Which is better for content: one big batch or many small ones?
Several small batches are usually better. Each one can be reviewed before the next runs, prompt mistakes are caught early, and a failure affects fewer items. A single huge overnight run is only safe after the prompt has been proven on small runs.
What happens when the free endpoint's daily limit is reached?
Requests are refused with a 429 status until the counters reset at 00:00 UTC. The daily ceiling per IP is 10,000 requests or 10,000,000 tokens. A resumable batch simply waits or stops and continues after the reset.
Do batch prompts need to differ from interactive prompts?
Yes. Interactive prompts can be vague because a person corrects them in the next message. Batch prompts must be complete and strict, with output format, length and language rules spelled out, because nobody is there to clarify.
Should a batch publish automatically?
No. A batch should write drafts to files, a spreadsheet or a CMS draft state. Publishing should stay a separate, human step after editing, whatever model produced the text.
- Interactive work and batch work need different timing
- Time-of-day prices and what to do about them
- Pacing requests inside rate limits
- Making a batch resumable
- Prompts that survive without supervision
- Checking results in the morning
- When a batch should not run at night
- Free endpoint or paid API for scheduled runs?
Interactive work and batch work need different timing
An editor drafting interactively needs speed now. A delay of thirty seconds breaks concentration. A batch job has the opposite profile: it does not matter whether item 80 finishes at 02:10 or 02:40, but it matters a lot that all items finish correctly and that the run does not need a human to restart it.
That difference suggests a simple rule. Keep interactive drafting for working hours and move anything repetitive and large to hours when you are not using the API yourself. That also stops your own batch from competing with your own interactive requests for the same per-IP limits.
Your own limits are shared
Rate limits on the free endpoint apply per IP: one request per second, bursts of three and two parallel requests. If a batch runs on the same office connection as your editors' live drafting tools, they compete. Running the batch at night or from a separate machine avoids that.
Nights in which time zone?
Quiet hours depend on where the provider's users are, not where you are. A service with many users in Asia may be busiest during European nights. Watch latency over a few days and pick the window that is actually quiet rather than assuming.
Time-of-day prices and what to do about them
Some API providers charge less outside their busiest hours. DeepSeek has run off-peak discounts in the past, and users have even built small browser extensions that show whether the current hour counts as peak or off-peak. Whether such a discount exists today, and how large it is, is something only the provider's current pricing page can tell you.
When a discount exists, it can be worth more than any amount of prompt optimisation, because it applies to every token in the batch. When it does not, the case for night runs rests on speed and on not competing with your own daytime use.
Make the window a setting, not a habit
Store the allowed hours in your batch config and have the script check them before each request. If the provider changes its schedule, you change one line instead of retraining yourself to start jobs at a different time.
Price changes are a reason to re-measure
When a provider announces a price change, rerun your small cost sample rather than reacting to the headline. The article on cost per finished article shows how to measure what one piece really costs.

Pacing requests inside rate limits
A batch that fires requests as fast as possible will hit rate limits within seconds. Pacing is cheaper than retrying. On the free endpoint, one request per second with at most two in flight is the safe shape; a single worker with a one-second pause between calls is simple and stays well within the limits.
Paid APIs have their own limits, usually tied to account tier. Read them, set your pacing a little below them, and treat any 429 response as a signal to slow down rather than to retry immediately. Honour the Retry-After header when the server sends one.
Busy errors are normal at scale
A 503 response means the server is momentarily full. For a batch, the right reaction is a short wait, two to five seconds on the free endpoint, and a retry. Count these events in your log; if they spike, your chosen window may not be as quiet as you thought.
Prices are not the only reason
Even without a discount, night runs avoid contention with your own daytime use, give faster responses on quieter servers and leave the morning free for review. Those benefits alone justify scheduling most proven batch jobs outside working hours.
Making a batch resumable
The script below reads briefs from a JSON Lines file, writes each finished draft to its own file, and skips any brief that already has an output. If it crashes, hits the daily limit or loses the network, you simply start it again. It also stops cleanly on a 429 that lasts too long rather than hammering the server.
Storing one file per item is deliberately boring. It works with any editor, survives crashes without corruption, and makes it obvious which items still need doing.
Two workers at most
The free endpoint allows two parallel requests per IP. Running two workers, each pausing between calls, roughly doubles throughput without breaking the limits. More workers simply generate 429 responses and slow everything down.
import json, time, pathlib
from openai import OpenAI, RateLimitError, APIStatusError
client = OpenAI(base_url="https://api.apifreedeepseekkey.com/v1", api_key="free", max_retries=0)
out = pathlib.Path("drafts")
out.mkdir(exist_ok=True)
SYSTEM = "Write a 120-word product description in plain British English. No invented specifications."
with open("briefs.jsonl") as f:
briefs = [json.loads(line) for line in f if line.strip()]
for b in briefs:
target = out / f"{b['id']}.txt"
if target.exists():
continue # finished in an earlier run
for attempt in range(5):
try:
r = client.chat.completions.create(
model="free-ai", max_tokens=400, temperature=0.5,
messages=[{"role": "system", "content": SYSTEM},
{"role": "user", "content": b["notes"]}])
target.write_text(r.choices[0].message.content, encoding="utf-8")
break
except RateLimitError as e:
wait = int(e.response.headers.get("retry-after", "10"))
if wait > 600:
raise SystemExit("daily limit reached; rerun after 00:00 UTC")
time.sleep(wait)
except APIStatusError as e:
if e.status_code != 503:
raise
time.sleep(3)
time.sleep(1) # stay at one request per second

Prompts that survive without supervision
A prompt that works in a chat can fail quietly in a batch. In a chat you notice when the model adds a preamble like "Sure, here is your description". In a batch that preamble ends up on two hundred product pages. Batch prompts need explicit output rules: no greeting, no closing remark, no headings unless asked, a target length and the language.
Add a cheap automatic check for the most likely failures, such as a forbidden opening phrase, a length far outside the target or text in an unexpected script. Items that fail are written to a separate folder for a human to look at instead of silently passing.
Pilot ten items first
Before any large run, process ten representative items and read every output. Most prompt problems show up in the first ten. Fixing them before item eleven is far cheaper than fixing two hundred drafts after the fact.
Version your prompt
Save the prompt text with a version number next to each output. When an editor reports that the drafts from Tuesday read differently, you can tell whether the prompt changed or the model did.
Checking results in the morning
A good morning routine for a batch takes ten minutes. Count outputs against briefs. Look at the failure folder. Read a random sample of five drafts in full. Compare total token use with the previous run. If anything looks off, stop the next batch until you understand why.
Large users of cheap APIs sometimes process hundreds of millions of tokens in days, and at that scale small prompt mistakes become expensive. The habit of reading a sample every morning is what keeps that from happening to you.
- Outputs match the number of briefs
- Failure folder reviewed and either fixed or requeued
- Five random drafts read end to end
- Token totals compared with the last run
- No drafts published before editing

When a batch should not run at night
Some jobs need a person close by. A new prompt that has never been piloted, a new content type, or a run that writes directly into a live CMS should run during working hours, in small chunks, with someone checking as it goes. Night runs are for proven jobs.
Time-sensitive content is another exception. Anything that depends on today's news, prices or availability should not be drafted hours before someone can verify it, because the facts in the notes may already be out of date by the time the editor reads the draft.
Never let a batch publish
Even a perfectly piloted prompt can produce one wrong draft in a hundred. Writing to a draft state and having an editor approve keeps that one draft from reaching readers. The automatic review pass guide shows how to flag likely problems before a person looks.
Log the run summary
At the end of each batch, write a one-line summary with start and end time, items finished, items failed, retries and total tokens. A month of these lines tells you more about your pipeline's health than any single detailed log.
Free endpoint or paid API for scheduled runs?
For small and medium batches of short pieces, such as descriptions, meta tags and outlines, the free endpoint's daily allowance is usually plenty, and a resumable script handles the reset at midnight UTC without fuss. There is no SLA, so plan for the occasional slow night.
For large, business-critical batches with deadlines, or for long articles where quality matters most, a paid API with an account-level rate limit and support is the more dependable choice. Many teams use both: the free endpoint for pilots and low-stakes items, a paid model for the pieces that matter. The guide to rewriting product descriptions in bulk shows a full batch built on this pattern.

Send a short brief to the keyless endpoint on the home page and see what kind of first draft comes back, no account needed.
Read also
- One model or two: is a planner plus cheap writer better for content?
- Is a thinking mode worth it for outlines and blog drafts?
- Writing tool subscription vs pay-per-token API: which fits you?
- How can you tell which model actually wrote your draft?
- Is it safe to paste your API key into a writing plugin or add-on?