Jobs and results
Every generation is a job that runs in the background. You send it, get an id, and check now and then until it finishes. This page explains every status, how often to check, what comes back at the end, how to pass files to a model and how to learn which parameters each model takes.
On this page
What a job is
A job is one generation: a clip, a set of images, a voiceover, music or an analysis. generate charges the price, creates the job and returns it at once, before the model has even started. From there the job moves forward in steps, and you read it until it finishes.
Each job keeps the model, the normalized parameters, the price, the status, the files and where it was sent from: web from the site, api from code, cli from the CLI or mcp from an AI assistant. Every field is in the API reference.
Statuses
| status | What it means | What to do |
|---|---|---|
| queued | Paid for and waiting to be sent to the model | Keep checking |
| running | Sent to the model, or its files are being copied to your library | Keep checking |
| succeeded | Every output file has been copied to your library and is ready | Stop and take the files from files |
| failed | The job failed and the credits were refunded | Stop. You can try again |
succeeded and failed are final: a job that reaches them never changes again.
How a job moves between statuses
- generate to queued. The charge and the job are saved together
- queued to running. Right after the answer, the job is sent to the model
- running to succeeded. The model finished, and the files were downloaded and saved to your library
- running to queued and back to running. The service running the model failed, and the job moves to another way of running the same model, only if the cost fits in what was paid
- queued or running to failed. No way to run is left, no result came back, copying the files failed, or two hours passed. The credits come back automatically
On a failed job error is generation_failed. The internal cause is never exposed.
Polling
We have no background worker that messages you when a job is ready, and there is no webhook, that is a call from our server to an address of yours. Instead you check the job yourself, which is called polling. And worth knowing: the read itself moves the job forward. When you read an open job, the server asks the model how it is doing, and if the result is ready it copies it to your library.
- Pace. GET /api/v1/jobs/{id} every 5 seconds or slower. The server asks the model at most once every 5 seconds per job, so faster checks do not speed anything up
- Lists. GET /api/v1/jobs also moves up to 10 open jobs forward on each call
- In the CLI. The --wait flag checks every 3 seconds, with no time limit
- In MCP. The job_status tool has wait_seconds, up to 25 seconds. The tool checks every 3 seconds and answers when the job finished or the time ran out, and the assistant simply calls it again
- When to stop. When status is succeeded or failed
Reading a job charges nothing and has no rate limit, but there is no point checking more than once every 5 seconds.
Time limit
A job never stays open for more than two hours from when it was created. After two hours the server asks the model one last time: a ready result is still saved and reaches you, and anything else fails with a full refund. An automatic check closes such jobs even if nobody reads them.
A job whose sending to the model did not succeed within 6 minutes fails and is refunded.
Output files and links
When a job succeeds, every file the model returned is copied to your library before the status becomes succeeded. Each file in files comes with id, mime, bytes, created_at and url.
- The link. It looks like https://low-cost.ai/f/<file id>?t=<signature>&e=<day>. t is a signature and e is the last day the link is valid
- Validity. 30 days from when the link was made. Every read of the job, the job list or the file list returns a fresh link, so for an expired link you simply ask again
- Who can open it. Anyone with a valid link to an output file. You yourself, with a key or a sign-in, open any of your files even without a valid link
- Downloading. The link redirects to a temporary download address, so curl needs the -L flag. Adding &dl=name to the link downloads the file as an attachment called name
- Storage. Output files count toward storage, as explained on the credits page
| Status | Text | Why |
|---|---|---|
| 404 | not found | The file does not exist or was deleted |
| 403 | forbidden | The link signature is missing, wrong or expired, or the account that owns the file was switched off. Get a fresh link |
| 402 | payment required or storage payment required | The account is held for storage fees, or the file was uploaded by an account with no credit history yet |
Input files
Models take files, such as a start frame, reference images, audio or a video, only as an https or http link, never as a file or as base64. Any public link that can be downloaded works. To use a file from your computer, upload it first and pass the link that comes back:
curl -X POST https://low-cost.ai/api/v1/files \ -H "Authorization: Bearer $LCA_KEY" \ -F "file=@frame.png;type=image/png"
Then pass the returned url as the parameter value, for example image to turn a picture into a clip:
curl -X POST https://low-cost.ai/api/v1/generate \ -H "Authorization: Bearer $LCA_KEY" \ -H "Content-Type: application/json" \ -d '{"model":"kling-3.0","params":{"prompt":"slow push in","image":"https://low-cost.ai/f/<file id>?t=<signature>&e=<day>","duration":5},"max_credits":12.5}'
- Up to 4 MB per file. Types: png, jpeg, webp, gif, mp4, webm, mov, mp3, wav, ogg, m4a and flac
- The start of the file is checked against the declared type, so send the right Content-Type on the file part
- Up to 60 uploads an hour. Uploading is free, but the file counts toward storage
- An account that has never added credits is limited to 50 MB and 30 uploaded files
- MCP has no upload tool. Upload through the API, the CLI or the library on the website, and give the assistant the link
Model parameters
Each model has its own parameter list, and the only way to know it is to ask: GET /api/v1/models/{id} in the API, the describe_model tool in MCP or the describe command in the CLI. The list shows only what can run right now, so read it rather than copying it once.
| type | What to send | How it is checked |
|---|---|---|
| enum | One of the values in values | Compared as text, so "5" and 5 are equal |
| number | A number | Within min and max, and on the step if there is one |
| boolean | true or false | true, "true", 1 and "1" are true. Everything else is false |
| text | Text | Up to max_length characters when shown. Always up to 10,000 characters, and up to 50,000 for the text parameter of speech |
| image, video, audio | One link | An http or https link, up to 8,192 characters |
| images | A list of links | Up to max items, or 16 when there is no max. A single string becomes a list of one |
- A parameter that is not on the model's list is refused with unknown parameter
- A parameter you did not send gets its default. A required parameter with no value is refused with required. An empty list counts as not sent
- Some combinations cannot run, such as end_image without image. Then the error is invalid_params with param: params
- Common parameters: prompt, negative_prompt, image, end_image, images, video, audio, duration, resolution, aspect_ratio, seed, generate_audio, num_images, output_format, text
Every possible reason for a parameter error is on the errors page.
Analysis jobs and their report
A model in the analysis category does not create media, it analyses it. hook-check checks the opening and pacing of a short clip and returns a score, an estimated attention curve and edit suggestions. Check the model list to see whether it is available right now.
- The video must be a file from your own library, that is one of our /f/ links with a valid signature, up to 15 seconds long and up to 64 MB. The length is measured from the file itself
- An estimate accepts any video link, but a generation only a library file
- The report is saved as an application/json file among the job's files, and also appears in the report field when you read the job on its own: in the API, in job_status in MCP and in status in the CLI. It is left out of lists
| Field | Meaning |
|---|---|
| kind | Always hook_report |
| version | Always 1 |
| language | The report language, he or en |
| duration | The clip length in seconds, or null |
| disclaimer | Always estimate_only: the report is an estimate, not a forecast |
| parsed | false when the model answer did not come in the expected shape. Most fields are then empty and raw holds the answer |
| score | Overall score from 0 to 100, or null |
| hook_score | Score for the first three seconds, from 0 to 100, or null |
| curve | Estimated attention per second, 0 to 100, up to 15 values |
| drop_offs | Up to 5 estimated drop-off points: { second, reason } |
| strongest_second | The strongest second, or null |
| summary | A summary, up to 600 characters |
| recommendations | Up to 5 recommendations, up to 300 characters each |
| raw | The model's raw answer, up to 8,000 characters, only when parsed is false |