| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- {
- "name": "jimeng-work-result",
- "displayName": "即梦作品结果查询",
- "description": "根据 workId 查询 ImagineWork 表,获取生成的图片/视频 URL。在 jimeng-task-query 返回 isFinish:true 后调用此接口获取最终结果。",
- "category": "jimeng",
- "version": "1.0.0",
- "endpoint": {
- "method": "GET",
- "url": "https://server.fmode.cn/parse/classes/ImagineWork/{{workId}}",
- "headers": {
- "X-Parse-Application-Id": "ncloudmaster"
- }
- },
- "parameters": {
- "type": "object",
- "required": ["workId"],
- "properties": {
- "workId": {
- "type": "string",
- "description": "生成任务返回的 workId(即 ImagineWork 表的 objectId),来自提交任务接口的响应"
- }
- }
- },
- "response": {
- "type": "object",
- "description": "ImagineWork 记录,包含生成结果",
- "properties": {
- "objectId": {
- "type": "string",
- "description": "记录ID(即 workId)"
- },
- "images": {
- "type": "array",
- "items": { "type": "string" },
- "description": "图片 URL 列表(已转存华为云OBS,永久有效)。图片生成类任务的结果在此字段"
- },
- "videos": {
- "type": "array",
- "items": { "type": "string" },
- "description": "视频 URL 列表(已转存,永久有效)。视频生成类任务的结果在此字段"
- },
- "prompt": {
- "type": "string",
- "description": "原始提示词"
- },
- "progress": {
- "type": "number",
- "description": "生成进度,1 表示完成"
- },
- "usage": {
- "type": "object",
- "description": "扣费详情"
- }
- }
- },
- "notes": "此接口通过 Parse REST API 直接查询 LeanCloud 的 ImagineWork 表。images/videos 中的 URL 已转存至华为云 OBS,永久有效。图片生成类 skill(text2img、img2img、img-v4 等)结果在 images 字段;视频生成类 skill(video-v3、actor 等)结果在 videos 字段。",
- "usageExamples": [
- {
- "name": "查询文生图结果",
- "input": {
- "workId": "WCAMhCMpG4"
- },
- "description": "查询 workId 对应的图片生成结果,返回 images 数组",
- "expectedOutput": {
- "objectId": "WCAMhCMpG4",
- "images": ["https://nova-cloud.obs.cn-south-1.myhuaweicloud.com/storage/aigc/imagine/WCAMhCMpG4-0.png"],
- "videos": null,
- "prompt": "一只可爱的橘猫在阳光下打盹,水彩画风格",
- "progress": 1
- }
- }
- ],
- "relatedSkills": [
- "jimeng-task-query",
- "jimeng-text2img-v3",
- "jimeng-text2img-v31",
- "jimeng-img-v4",
- "jimeng-video-v3-720p"
- ],
- "timeout": 10000,
- "retry": {
- "maxAttempts": 2,
- "delay": 1000,
- "backoffMultiplier": 2
- }
- }
|