Documentation Index
Fetch the complete documentation index at: https://docs.tokenlab.sh/llms.txt
Use this file to discover all available pages before exploring further.
路径参数
初始图像生成请求返回的任务 ID。
如果创建响应中包含
poll_url,建议优先调用该特定 URL 进行轮询。某些图像任务可能会在 /v1/tasks/{id} 下显示 poll_url,而不是图像特定的状态路径。你也可以用 /v1/images/{id} 轮询 ldtask_... 这类公开图片任务 ID。这个兼容 alias 会复用与 /v1/images/generations/{id} 完全相同的鉴权、ownership 检查、计费 header、终态快照和响应形状。如果任务已不再存在,或无法通过公开的 async-task 协议解决,TokenLab 会返回 async_task_not_found,并附带消息 Task not found or no longer available.响应
创建时的 Unix 时间戳。
任务标识符。
任务状态:
pending、processing、completed 或 failed。生成的图像数组(当
status 为 completed 时填充)。每个对象包含:url(string): 生成图像的 URLrevised_prompt(string): 用于生成的提示词
错误信息(仅在
status 为 failed 时存在)。