Qubico
  1. AI Hug
Qubico
  • Get Started
    • Overview
    • Quickstart
  • Endpoints
    • image
      • Flux
        • Flux with LoRA and Controlnet
        • Available LoRA and Controlnet
        • Flux API with Redux Variation, Fill, Inpaint and Outpaint
        • Create Task
          • Kontext
          • Text to Image
          • Image to Image
        • Get task
      • Qwen Image
        • Text to Image
        • Image Edit
        • Get Task
      • Image Upscaler
        • Image Upscale(Super Resolution) API
        • Image Upscale-Get Task
      • Image Background Remover
        • Remove Background API
        • Remove Background-Get Task
    • video
      • Wan
        • Generate WanX Task with LoRA Using Qubico
        • Available LoRA Types for Wanx
        • Use Cases for Wanx LoRA
        • Use Cases for Wanx Control Camera
        • Create Task
        • Get Task
      • Skyreels
        • Create Task
        • Get Task
      • Framepack
        • Create Task
        • Get Task
      • Hunyuan Video
        • How to Make a Hunyuan API Call
        • Generate Video
        • Get Task
      • AI Hug
        • Create Task
          POST
        • Get Task
          GET
      • Video Upscale
        • Video Upscale
        • Video Upscale-Get Task
    • other
      • Trellis
        • Create Task
        • Get Task
    • Tools
      • Segment With Prompt API
      • Segment With Prompt API-Get Task
    • Account Management
      • Account Info
      • Task List Info
      • User Task History
  • Resources
    • Change Log
    • Output Storage
    • Unified API Schema
    • Webhook
  1. AI Hug

Create Task

POST
/api/v1/task
This service allows you to generate a hugging video of two people from an image using Qubico's hardware. It uses Qubico's unified task structure.

Request

Header Params

Body Params application/json

Examples

Responses

🟢200OK
application/json
OK-Successful Response.
Body

🟠400Bad Request
🟠401Unauthorized
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/v1/task' \
--header 'X-API-Key;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "model": "Qubico/hug-video",
    "task_type": "image_to_video",
    "input": {
        "image_url": "https://i.ibb.co/znPyjxy/person2.jpg"
    }
}'
Response Response Example
200 - Success
{
    "code": 200,
    "data": {
        "task_id": "49439a00-465c-4501-9ce2-14581e01f616",
        "model": "Qubico/hug-video",
        "task_type": "image_to_video",
        "status": "",// pending/processing/failed/completed
        "config": {
            "webhook_config": {
                "endpoint": "",
                "secret": ""
            }
        },
        "input": { },
        "output": {},
        "meta": {},
        "detail": null,
        "logs": [],
        "error": {
            "code": 0,
            "raw_message": "",
            "message": "",
            "detail": null
        }
    },
    "message": "success"
}
Modified at 2025-12-03 09:58:39
Previous
Get Task
Next
Get Task
Built with