pending → processing → completed / failedsync_upstream=true,对仍在执行中的任务先主动刷新一次最新状态Documentation Index
Fetch the complete documentation index at: https://docs.foxapi.cc/llms.txt
Use this file to discover all available pages before exploring further.
results 字段格式说明status=completed)后,results 是一个数组,结构按模型不同而异。解析结果前请先根据响应中的 model 字段判定结构类型。
type)分组:
type | results[i] 结构 | 典型场景 |
|---|---|---|
image | {url} | 图片生成、编辑、增强 |
video | {url} | 视频生成、对口型、视频编辑 |
audio(TTS / 音乐) | {url} | 语音合成、音乐生成 |
llm | 完整 OpenAI ChatCompletion:{id, object:"chat.completion", created, model, choices[].message, usage} | LLM 生成(llm_router / llm_async) |
url 有效期均为 24 小时,请尽快保存。
model 区分)results[i] 结构不遵循上表通用格式。调用方必须按 model 单独处理。
model | type | results[i] 结构 | 说明 |
|---|---|---|---|
kling-video-create-voice | video | {voice_id} | 创建可复用的语音档案 ID,供后续 Kling 对口型 / 合成任务引用 |
minimax-voice-clone | audio | {voice_id} | MiniMax 声音克隆:提交参考音频生成可复用的声音 ID,供后续 MiniMax TTS 任务引用 |
sora-2-character | video | {character_id, name} | 从参考视频提取角色档案,供后续 Sora 2 任务实现角色一致性 |
phota-create-profile | image | {result_type, profile_id} | 训练人物档案,供其他 PHOTA 模型引用;result_type 固定为 profile |
model | type | results[i] 结构 | 说明 |
|---|---|---|---|
scribe-v2 | audio | {text, language_code, language_probability, words[]} | 语音转文本。words[] 为字级时间戳数组,每项含 text / start / end / type |
model | type | results[i] 结构 | 说明 |
|---|---|---|---|
seedance-2.0-text-to-video | video | {url, seed} | 额外返回生成种子,用于复现 |
seedance-2.0-fast-text-to-video | video | {url, seed} | 同上 |
seedance-2.0-image-to-video | video | {url, seed} | 同上 |
seedance-2.0-fast-image-to-video | video | {url, seed} | 同上 |
seedance-2.0-reference-to-video | video | {url, seed} | 同上 |
seedance-2.0-fast-reference-to-video | video | {url, seed} | 同上 |
model | type | results[i] 结构 | 说明 |
|---|---|---|---|
patina-pbr-maps | image | {url, content_type, result_type: "pbr_map", map_type} | PBR 贴图生成。map_type 标识贴图类型(如 albedo / normal / roughness 等) |
patina-material | image | 混合两种:{url, content_type, result_type: "texture"} 与 {url, content_type, result_type: "pbr_map", map_type} | 同时输出平铺纹理和多张 PBR 贴图;按 result_type 区分 |
patina-material-extract | image | 同 patina-material | 从现有图提取纹理生成 PBR 贴图组 |
model,再解析 results:同一 type 下不同 model 的结构可能完全不同url 有效期 24 小时,业务侧应在收到结果后立即下载转存voice_id / character_id / profile_id 是长期有效的资源标识,可直接用于后续任务参数使用时在请求头中添加:
Authorization: Bearer YOUR_API_KEY
任务ID,由提交任务接口返回
"task-unified-1757165031-uyujaw3d"
是否在返回前主动刷新一次任务状态。仅对仍在执行且已有关联远端任务的记录生效;否则直接返回当前任务状态。
true
查询成功
任务ID
"task-unified-1757165031-uyujaw3d"
任务的具体类型
video.generation.task, image.generation.task, audio.generation.task, llm.generation.task "video.generation.task"
任务的输出类型
video, image, audio, llm "video"
实际使用的模型名称
"lipsync-2"
任务状态
可选值:
| 值 | 含义 |
|---|---|
pending | 等待处理 |
processing | 处理中 |
completed | 已完成 |
failed | 已失败 |
pending, processing, completed, failed "pending"
任务进度百分比
0 <= x <= 1000
任务创建时间戳(Unix 秒)
1757165031
任务结果列表,仅在 status=completed 时有值。
结构按任务输出类型(type)不同:
type | results[i] 结构 | 典型场景 |
|---|---|---|
image | {url},部分模型附带 content_type;特殊任务(如 PHOTA 创建档案)为 {result_type, profile_id} | 图片生成、编辑、增强 |
video | {url},部分模型附带 content_type / seed;特殊子任务(Kling 创建语音 / Sora 2 角色档案)为 {voice_id} 或 {character_id, name} | 视频生成、对口型 |
audio(TTS / 音乐) | {url} | 语音合成、音乐生成 |
audio(STT / 转写) | {text, language_code, language_probability, words[]}(不含 url) | 语音转写(如 Scribe V2) |
llm | 完整 OpenAI ChatCompletion:{id, object:"chat.completion", created, model, choices[].message, usage} | LLM 生成(llm_gateway / llm_async) |
通用说明:
type=llm 的结果是对话响应,不产生 URLresults 不含 url 而是 id 类字段图片结果(type=image)。多数图片模型只返回 url;少数模型(Patina 家族)会附带 content_type;PHOTA 创建档案类任务返回 {result_type, profile_id}(非图片产物)
错误信息,仅在 status=failed 时有值
计费信息