> ## Documentation Index
> Fetch the complete documentation index at: https://evolink.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Tasks, references, and results

> Shared task recovery, file expiry, downloading, previews, and support steps

This page maintains common task and file rules. See [CLI workflows](https://evolink.ai/docs/en/cli/workflows.md) and [MCP workflows](https://evolink.ai/docs/en/mcp/overview.md#workflows) for execution steps.

## Submit once and retain the task ID

Generation can return outputs directly or a task\_id. Retain the ID, model, inputs, and reported status, then query the original task until completion or confirmed failure. Interpret actual returned states; a tool wait timeout is not generation failure.

| Outcome | Action |
| - | - |
| A task\_id exists | Query/wait for the original task; batch multiple IDs |
| Still queued or running | Continue querying; stopping a wait does not cancel |
| Status not verified: `task_response_invalid`, `task_identity_mismatch` or `task_status_unknown`, with `status_check: unverified` | Keep the original task ID and query it again; the query is free. This is not a failure, a zero charge or a refund, so do not generate again |
| Accepted (`submission_state: accepted`) but no status yet | The task exists; query its task\_id instead of generating again |
| Completed | Save every original; report count, format, known costs, and expiry |
| Confirmed failed | Report the error code (`error.code`), its explanation (`error.message`) and time; the task is not charged, and the credits reserved at submission are returned automatically |
| Unknown submission without ID | Recover through the original route as described below |

Batch and list queries keep the tasks they could verify and mark the rest (`partial`, `missing`, `details_missing`). A missing detail does not mean the task never existed; query those IDs again. When a status, result or account record needs checking, responses include `dashboard_url` and English `dashboard_guidance`. Sign in to the [EvoLink Dashboard](https://evolink.ai/dashboard) with the same EvoLink account and keep the original task ID; the link alone does not confirm completion, a charge or a refund. Notices, link labels and generation confirmations are in English by default; ask the assistant if you prefer another language.

Released CLI and MCP currently have no usable public cancellation entry. Closing a terminal, conversation, or connection neither cancels the task nor establishes no charge.

## Recover timeouts and unknown outcomes

**1. Preserve the original identity and submission record**

CLI retains quote\_id and its recovery record; MCP retains client\_request\_id, original inputs, and errors. Prefer querying an existing task\_id over generating again.

**2. Recover through the original route**

Follow [CLI recovery](https://evolink.ai/docs/en/cli/billing.md#tasks-and-recovery) or [MCP recovery](https://evolink.ai/docs/en/mcp/billing.md#tasks-and-recovery). Keep the original identity, inputs, and request ID. Do not change accounts, Keys, or CLI/MCP routes and resubmit. EvoLink keeps a request ID for 24 hours: within that time the same ID and inputs return the original task without a new charge. CLI `tasks resume` replays it within 23 hours of the first submission, while the quote is unexpired and the price has not risen; otherwise it sends nothing. After 24 hours the ID no longer prevents a second task, so check recent tasks before submitting again.

**3. Establish task and billing facts**

Save completed outputs; inspect billing after confirmed failure. If still unknown, preserve the error/time and contact support. Unknown does not mean nothing generated or charged.

## Make references readable by the model

1. Check accepted image/video/audio types, counts, sizes, and reference combinations.
2. Use a file readable in the execution environment or a URL accessible to the server. Chat attachments and desktop paths are not automatically remote-readable.
3. Confirm the upload receipt and file URL before adding it to model inputs and estimating again.
4. Preserve the original upload\_id when the outcome is unknown. Request a replacement only after confirmed failure or expiry; receipt support depends on deployment.

| Route | Input location and limits | Instructions |
| - | - | - |
| CLI local file | Readable by the CLI; 95 MiB maximum, models may be stricter | [CLI references](https://evolink.ai/docs/en/cli/workflows.md#files) |
| Remote MCP URL/inline data | Server-readable URL; 1 MiB base64 limit | [MCP upload tools](https://evolink.ai/docs/en/mcp/tools.md) |
| Remote MCP single-use upload | prepare\_upload, upload from a file-capable environment, then get\_upload; 95 MiB limit | [MCP references](https://evolink.ai/docs/en/mcp/overview.md#files) |
| Local stdio | file\_path on the MCP process machine; model/file-service limits apply | [Local MCP](https://evolink.ai/docs/en/mcp/other-clients.md#local-mcp) |

## Expiry and storage

| Item | Current default |
| - | - |
| Original generated URL | Usually 24 hours; save promptly |
| Uploaded reference | Usually 72 hours; re-upload after expiry |
| Quote approval (CLI `quote_id`, MCP `pricing_quote`) | Holds for 24 hours from the estimate, for the same input at the approved price or lower; an expired one (`quote_expired`), a higher price (`price_changed`) or a changed input (`quote_input_changed`) needs a new estimate and approval |
| Request ID (`client_request_id`) | Kept by EvoLink for 24 hours from the first submission; CLI `tasks resume` replays it within 23 hours, only while the quote is unexpired and the price has not risen |
| Remote single-use upload authorization | Usually 15 minutes, one use |
| Remote upload status URL | Usually 1 hour; retain the original upload\_id |

Actual returned values apply. Receipt compatibility depends on file-service deployment. Downloaded originals remain in user storage; temporary URLs, documentation, and chat attachments are not permanent storage. Re-upload expired references and reconfirm changed inputs.

## Download and preview troubleshooting

1. Query the original task and confirm completion. Use its original URL; headers cannot fix expired, private, or invalid links.
2. CLI users can use download. MCP users can open originals in a browser or save them from a file-capable environment. See [CLI downloads](https://evolink.ai/docs/en/cli/reference.md) and [MCP delivery](https://evolink.ai/docs/en/mcp/overview.md#delivery).
3. Check HTTP status, Content-Type, and actual format. Error HTML/JSON is not media. Match extensions to real formats rather than renaming every image PNG.
4. Open the original when a preview is gray or only a link appears. If it works, deliver/save it. Host previews must not trigger unapproved regeneration or editing.

### Default Python requests rejected

When a valid original works in a browser/curl but default Python fails, controlled code can set a product User-Agent. This image example assumes result\_url is already a valid original URL:

```python theme={null}
from urllib.request import Request, urlopen
from shutil import copyfileobj

request = Request(result_url, headers={"User-Agent": "EvoLinkClient/1.0"})
with urlopen(request, timeout=60) as response:
    if not response.headers.get_content_type().startswith("image/"):
        raise ValueError("Expected an image response")
    with open("result.png", "xb") as output:
        copyfileobj(response, output)
```

The example rejects non-image responses and avoids overwrites. Change the extension when the actual format is not PNG. Video/audio need matching MIME checks, filenames, and separate verification. This approach was verified only for particular metadata/image cases, not every client, file, or network. CLI downloads already set a product UA.

## Information for support

Provide OS, agent/version, CLI/MCP version, route, failed stage, time, error code, expected/actual behavior, existing task\_id, quote\_id/client\_request\_id, upload\_id, and redacted diagnostics. Mention SSH, containers, or proxies.

Hide OAuth tokens, Keys, full authorization links, single-use upload URLs, signed private URLs, and private files. Do not share credential files or full environment dumps. Start with [CLI troubleshooting](https://evolink.ai/docs/en/cli/billing.md#faq) or [MCP troubleshooting](https://evolink.ai/docs/en/mcp/billing.md#faq) to locate the stage.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.