Qubico
  1. Create Task
Qubico
  • Get Started
    • Overview
    • Quickstart
  • Endpoints
    • Flux
      • Flux with LoRA and Controlnet
      • Available LoRA and Controlnet
      • Flux API with Redux Variation, Fill, Inpaint and Outpaint
      • Create Task
        • Kontext
          POST
        • Text to Image
          POST
        • Image to Image
          POST
      • Get task
        GET
    • AI Hug
      • Get Task
      • Create Task
    • Faceswap
      • Multi Faceswap
      • Image Faceswap
      • Video Faceswap
      • Get Task
    • TTS
      • Zeroshot Text-to-Speech F5-TTS
      • Get Task
    • Trellis
      • Create Task
      • Get Task
    • WanX
      • 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
      • Get Task
      • Generate Video
    • Mmaudio
      • Get Task
      • Generate Audio
    • DiffRhythm
      • Generate Audio
      • Get Task
    • Ace Step
      • Create Task
        • Text to Audio
        • Audio to Audio
        • Audio Edit
        • Audio Extend
      • Get Task
    • Tools
      • File Upload API
      • Video Upscale
      • Video Upscale-Get Task
      • Remove Background API
      • Remove Background-Get Task
      • Segment With Prompt API
      • Segment With Prompt API-Get Task
      • Image Upscale(Super Resolution) API
      • Image Upscale-Get Task
    • Account Management
      • Account Info
      • Task List Info
      • User Task History
  • Resources
    • Change Log
    • Output Storage
    • Unified API Schema
    • Webhook
    • Billings
  1. Create Task

Kontext

POST
/api/v1/task
This is provided as part of the Flux API from Qubico.
Available models:
Qubico/flux1-dev-advanced
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/flux1-dev-advanced",
    "task_type": "kontext",
    "input": {
        "prompt": "",
        "image": "https://example.com/input_input.png",
        "width": 1024,
        "height": 1024,
        "steps": 10,
        "seed": -1
    },
    "config": {
        "webhook_config": {
            "endpoint": "",
            "secret": ""
        }
    }
}'
Response Response Example
{
    "code": 200,
    "data": {
        "task_id": "8718d5c1-aae9-4cd5-a243-84eeb1e01117",
        "model": "Qubico/flux1-dev-advanced",
        "task_type": "kontext",
        "status": "completed",
        "config": {
            "service_mode": "",
            "webhook_config": {
                "endpoint": "",
                "secret": ""
            }
        },
        "input": {
            "height": 1024,
            "image": "xxx.png",
            "prompt": "",
            "seed": -1,
            "steps": 10,
            "width": 1024
        },
        "output": {
            "image_base64": "",
            "image_url": "https://img.theapi.app/temp/10f0a646-6155-4938-bf50-76934c953e9c.png"
        },
        "meta": {
            "created_at": "2025-06-30T07:11:30.719851187Z",
            "started_at": "2025-06-30T07:11:31.891665902Z",
            "ended_at": "2025-06-30T07:12:03.388312371Z",
            "usage": {
                "type": "llm",
                "frozen": 0,
                "consume": 200000
            },
            "is_using_private_pool": false
        },
        "detail": null,
        "logs": [],
        "error": {
            "code": 0,
            "raw_message": "",
            "message": "",
            "detail": null
        }
    },
    "message": "success"
}

Request

Header Params

Body Params application/json

Examples

Responses

🟢200Success
application/json
Body

Modified at 2025-06-30 10:11:43
Previous
Flux API with Redux Variation, Fill, Inpaint and Outpaint
Next
Text to Image
Built with