Qubico
  1. Create Task
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
            POST
          • Text to Image
            POST
          • Image to Image
            POST
        • Get task
          GET
      • 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
        • Get Task
      • 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. Create Task

Text to Image

POST
/api/v1/task
This is provided as part of the Flux API from Qubico.
Available models:
Qubico/flux1-dev
Qubico/flux1-schnell
Qubico/flux1-dev-advanced
Check Flux with LoRA and Controlnet to learn how to send Flux tasks with LoRA and ControlNet.
Check Flux with Redux and Fill to learn how to send Flux tasks for variation, inpaint, and outpaint.
Below is an example of a text-to-image request and response.

Request

Header Params

Body Params application/json

Examples

Responses

🟢200Success
application/json
Body

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",
    "task_type": "txt2img",
    "input": {
        "prompt": "a little cat",
        "width": 1024, 
        "height": 1024
    } 
}'
Response Response Example
{
    "code": 200,
    "message": "success",
    "data": {
        "task_id": "0f647527-12bd-48b1-b813-111111111",
        "model": "Qubico/flux1-dev", 
        "task_type": "txt2img",
        "status": "", // pending/processing/failed/completed
        "input": {}, 
        "output": {}, 
        "meta": { 
        },
        "logs": [],
        "error": {
            "code": 1100,
            "message": ""
        } 
    }
}
Modified at 2025-12-04 05:10:59
Previous
Kontext
Next
Image to Image
Built with