Q&A: why does a video request return 200 but no video URL?
Video generation is asynchronous. A successful submission only gives you a task_id; beginners must save it, poll the status, and distinguish accepted from completed.
The conclusion first
HTTP 200 does not mean that a video has finished rendering. In SalpX video APIs, a successful submission normally returns a task_id; the client must poll with that ID and read the video URL only after the status becomes successful1. If the client stops after the first 200 and finds no video URL, that is expected behavior rather than proof that the API is broken.
This differs from a chat endpoint, which usually returns text in one response. Video generation may queue work, call an upstream provider, process references, and store the result, so it separates “accepted” from “completed.” A relay or client that treats both as one synchronous call invites timeouts, duplicate submissions, and duplicate pre-authorization.
Question one: what does a successful submission mean?
A 200 from the create endpoint usually means that the request format, authentication, model, and initial checks passed and the system accepted the job. The task_id is the unique handle for the job, not the media URL. Persist at least:
- the
task_id; - model, duration, and resolution;
- submission time and request ID;
- current status, progress, and the latest error;
- the media URL or downloaded result after success.
If the client does not save the task_id, a page refresh or process restart can remove the query handle. Do not infer job existence from a button state. Use the task ID returned by the server.
Question two: how do you poll without submitting again?
Polling is a query, not a new job. Use the same task_id to query status. Do not POST another video request just because the first one has not completed after a few seconds. A duplicate submission can create multiple jobs, increase waiting time, and trigger another pre-authorization.
A reliable flow is:
- Send one video-create request.
- Save the
task_idimmediately after the 200 response.
- Query with increasingly spaced intervals rather than hammering every second.
- On
succeeded, save the video URL and stop polling.
- On
failedor a clear moderation failure, record the reason and stop.
- At the client business timeout, keep the
task_idand let a background worker or an operator continue the query.
SalpX's official documentation recommends a long HTTP timeout for long video jobs; that does not mean holding one connection forever. Submission timeout, polling timeout, and total business timeout should be separate. A client disconnect does not necessarily cancel the server-side job.
Question three: does an unchanged status mean failure?
No. An asynchronous job can be queued, processing, or complete. At minimum, distinguish:
- In progress: continue waiting while recording progress and the last update.
- Succeeded: read the result URL and download it promptly because upstream temporary links can expire.
- Failed: read the reason, confirm whether the charge was refunded, and only retry after correcting the request if needed.
Do not treat “still processing” as failure, and do not retry every failure automatically. OpenAI's official error guide distinguishes 401 authentication errors, 404 missing resources, 429 rate limits or exhausted limits, and 500/503 server or overload errors. Exhausted credits are not fixed by repeated retries; for rate limits, honor Retry-After or use exponential backoff with jitter2.
Question four: how do you avoid charging twice?
Record the request ID and task_id before deciding to retry. When a network connection breaks, the client may not know whether the server accepted the job. Re-POSTing immediately is the most dangerous action. First query the original task ID; if there is no task ID, check whether the service provides an idempotency key or request lookup endpoint.
Also record “pre-authorization succeeded,” “upstream submission succeeded,” “job failed and was refunded,” and “final charge” separately. That lets you answer three user questions: was the job created, was money charged, and was it refunded after failure? A frontend that shows only “request failed” collapses four different states.
Minimal pseudocode
response = POST /v1/videos
save(response.task_id)
while true:
status = GET /v1/videos/{task_id}
if status == succeeded:
save(status.video_url)
break
if status == failed:
record(status.error)
break
wait_with_backoff()
Use the model-specific documentation for the actual fields. Do not assume every video route uses the same query path, status enum, or media field. When a relay serves multiple upstreams, also save the protocol version and model name so a 404 or field change can be diagnosed.
Beginner checklist
- Did you mistake
task_idfor the video URL?
- Did you stop after the first 200 without polling?
- Did you submit again because the first job took too long?
- Did you mistake a client connection timeout for a server job failure?
- Did you save the request ID, task ID, status, and error body?
- Did you distinguish authentication, path, rate, quota, and server errors?
- Did you confirm refund status before paying or submitting again?
- Did you download the temporary video URL promptly after success?
The first video request does not “get the video.” It gets a task handle. Reliably save the task_id before thinking about polling, retries, or billing.
1: SalpX API Reference lists video endpoints as asynchronous jobs, returning a task_id to be polled through a status endpoint: https://www.salpx.com/api-docs/ 2: OpenAI Developer Documentation, “Error codes,” explains 401, 404, 429, 500, and 503 handling: https://developers.openai.com/api/docs/guides/error-codes
Sources & attribution
This article references the public materials listed below. Analysis and wording are SalpX's own; quoted material remains the property of its original authors and publishers.
- SalpX API Reference — SalpX · accessed 2026-11-21Note:SalpX's official API reference lists POST /v1/videos and POST /v1/video/generations as asynchronous jobs and explains that clients poll status with the returned task_id.
- Error codes and retries — OpenAI Developer Documentation · accessed 2026-11-21Note:OpenAI's official error guide supports the distinction between authentication, resource, rate-limit and server errors; not every error should be retried.
One key for Claude, GPT and 50+ models
The SalpX gateway is OpenAI-SDK compatible. Point base_url at https://www.salpx.com/v1 and you are done.