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 時出現)。