摄图AI-开放API
    • 图片生成
      • 生图
        POST
      • 图片抠图
        POST
      • 图片变清晰
        POST
      • 画面扩展
        POST
      • 高清放大
        POST
      • 图像消除
        POST
      • 自动意图生图
        POST
      • 模板生成图片
        POST
    • 视频生成
      • 生成视频
    • 任务查询
      • 查询生成任务
    • 模板
      • 模板列表
    • 数据模型
      • TemplateCover
      • TemplateItem
      • TemplateListData
      • TemplateListEnvelope
      • Model
      • ImageModel
      • ImageBaseRequest
      • VideoModel
      • TextToImageRequest
      • ImageInputRequest
      • PromptedImageInputRequest
      • ExpansionRatios
      • ExpansionRequest
      • UpscaleRequest
      • EraseRequest
      • AutoImageRequest
      • TemplateImageRequest
      • VideoGenerationRequest
      • SubmissionData
      • TaskAsset
      • TaskLayer
      • TaskData
      • SubmissionEnvelope
      • TaskEnvelope

    TaskData

    {
        "id": 0,
        "content_type": 1,
        "function": 0,
        "model": 0,
        "rate": "string",
        "quality": 0,
        "resolution": "string",
        "status": 0,
        "reason": "string",
        "type": 0,
        "copyright_type": 0,
        "is_refund": 0,
        "res": {
            "text": "string",
            "data": [
                {
                    "id": 0,
                    "status": 0,
                    "preview_path": "http://example.com",
                    "width": 0,
                    "height": 0,
                    "reason": "string",
                    "reject": 0,
                    "property1": "string",
                    "property2": "string"
                }
            ]
        },
        "layers": [
            {
                "task_id": 0,
                "pid": 0,
                "layer_type": "img",
                "z_index": 0,
                "raw_json": {
                    "property1": "string",
                    "property2": "string"
                }
            }
        ]
    }
    Built with