PiAPI
HomeWorkspace
HomeWorkspace
Join Discord
  1. Minimax
  • Get Started
    • Overview
    • Quickstart
    • Make Instruction: How to Use PiAPI to Build a Workflow on Make?
  • Endpoints
    • Seedance
      • Less-Restriction Models Guide
      • Private Asset Library
      • Seedance 2.5
      • Seedance 2
      • Video Watermark Remover
      • Get task
    • Seedream
      • Seedream 5
      • Get Task
    • Byteaudio
      • Seed-audio
      • Get Task
    • Kling
      • Lipsync With PiAPI Kling API Examples
      • Motion Brush With PiAPI Kling API Example
      • Kling Elements Video Generation API
      • Kling Effects Video Generation
      • Cancel Task
        • Cancel Task
        • Cancel Tasks
      • Get Task
      • Create Task
      • Kling Virtual Try-On
      • Kling Effects
      • Kling Sound
      • Kling Avatar
      • Kling Motion Control
      • Kling Turbo
    • Kling omni
      • Kling o1
      • Kling 4.0 / 3.0 omni
      • Get Task
    • Minimax
      • Generate Video
        POST
      • MiniMax Speech
        POST
      • MiniMax Image
        POST
      • Get Task
        GET
    • Sora2
      • Sora2-preview Text to Video
      • Sora2 Text to Video
      • Sora2-Pro Text to Video
      • Sora2 Remove Watermark
      • Get task
    • Tools
      • File Upload API
      • 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
      • Video Upscale
      • Video Upscale-Get Task
      • Video Remove Background
      • Video Remove Background-Get task
      • Video Remove Subtitle
      • Video Remove Subtitle-Get task
      • Skin Tokens
      • Skin Tokens-Get task
    • Gemini
      • Gemini-2.5-flash-image
      • Nano Banana Pro
      • Nano Banana 2
      • Get task
    • GPT image
      • GPT-image API
    • LLM
      • How To Avoid Timeouts in Completion API
      • LLM API | Basic Completions
    • Omni Human
      • OmniHuman 1.5
      • Get task
    • Flux
      • Flux with LoRA and Controlnet
      • Available LoRA and Controlnet
      • Flux API with Redux Variation, Fill, Inpaint and Outpaint
      • Create Task
        • Text to Image
        • Image to Image
        • Kontext
      • Get task
    • Qwen Image
      • Text to Image
      • Image Edit
      • Get task
    • Z-Image
      • Text to Image
      • Get task
    • Faceswap
      • Multi Faceswap
      • Image Faceswap
      • Video Faceswap
      • Get Task
    • WanX
      • Generate WanX Task with LoRA Using PiAPI
      • Available LoRA Types for Wanx
      • Use Cases for Wanx LoRA
      • Use Cases for Wanx Control Camera
      • Create Task
      • Get Task
    • Wan
      • Wan2.6 Text to Video
      • Wan2.6 Image to Video
      • Get task
    • Hailuo
      • Generate Video
      • Get Task
    • Veo3
      • Veo3 Text to Video
      • Veo3 Image to Video
      • Veo3.1 Text to Video
      • Veo3.1 Image to Video
      • Get task
    • Skyreels
      • Create Task
      • Get Task
    • Framepack
      • Create Task
      • Get Task
    • Hunyuan Video
      • How to Make a Hunyuan API Call
      • Available Hunyuan Lora models
      • Get Task
      • Generate Video
    • Luma Dream Machine
      • Create Task
      • Get Task
    • Suno(service stopped)
      • Music(service stopped)
      • Lyrics(service stopped)
      • Get task
    • Song(Udio)
      • Song API Task Creation Examples
      • [Udio] Song Extend
      • Get Task
      • Create Task
      • [Udio] Generate Lyrics
    • 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
    • TTS
      • Zeroshot Text-to-Speech F5-TTS
      • Get Task
    • Trellis
      • Trellis Create Task
      • Trellis2 Create Task
      • Get Task
    • Meshy
      • Meshy Create Task
      • Get Task
    • Pixal3D
      • Pixal3D Create Task
      • Get Task
    • Joycaption
      • Image Caption
      • Get Task
    • Midjourney
      • PiAPI Penalties on Midjourney Usage
      • Detailed Explaination on Midjourney Task Result
      • Midjourney V7 API Instructions
      • Create Task
        • Imagine
        • Upscale
        • Variation
        • Reroll
        • Describe
        • Seed
        • Blend
        • Inpaint
        • Outpaint
        • Pan
      • Cancel Task
        • Cancel Task
        • Cancel Tasks
      • Get Task
    • AI Hug
      • Get Task
      • Create Task
    • PiAPI Account Management
      • PiAPI Account Info
      • Task List Info
      • User Task History
  • Resources
    • Change Log
    • Output Storage
    • Unified API Schema
    • Webhook
    • Bulk Generation Service
    • Billings
    • PiAPI MCP Server
    • Workspace Manual
      • Host-your-account (HYA) | Back-up Account
      • Host-your-account (HYA) | Debug Checklist
      • Host-your-account (HYA) | Connected Account Status
    • Announcements
      • PiAPI 2025 January 1st Pricing Update
      • The discontinued support for midjourney
      • Sunsetting Suno
  • Schemas
    • Schemas
      • motion brush
      • Create Task
      • camera control
      • Cancel Params
      • Float2 Point
      • Control Points
      • txt2video-1.3b
      • txt2video-14b
      • txt2video-14b-lora
      • img2video-14b
      • img2video-14b-lora
      • img2video-14b-keyframe
      • img2video-14b-control-camera
      • wan22-txt2video-14b
      • wan22-img2video-14b
      • hunyuan-txt2video-lora
      • Trellis API/text-to-3D
      • Trellis API/image-to-3D
      • Trellis2 API/image-to-3D
      • Kling omni multi shot
      • VideoGenerationRequest
      • TaskRequest
      • TaskConfig
      • TaskInput
      • TaskResponse
      • ErrorResponse
    • Response
      • Unified-Task-Response
    • RequestBodies
      • Unified-Task-Request-Body
    • config
    • control_net_setting
    • lora_setting
    • VideoGenerationResponse
    • Pixal3D API/image-to-3D
  1. Minimax

Get Task

GET
https://api.piapi.ai/api/v1/task/{task_id}
Retrieve the status and result of an asynchronous MiniMax task using the task_id returned by POST /api/v1/task. Authenticate with your PiAPI API key in the X-API-Key header.

Supported task results#

ModelTask typeCompleted result
Qubico/minimax-h3 or Qubico/minimax-h3-nsfwtxt2video or img2videodata.output.video
minimaxspeech-2.8-turbodata.output.audio_url and data.output.format
minimaximage-01data.output.images[].url
Speech and image generation use the unified asynchronous task API: submit to POST /api/v1/task, save data.task_id, then query this endpoint. A successful query returns the code, message, and data envelope.

Reading the result#

Status values are lowercase. Continue polling while a task is pending, staged, processing, or retry.
completed, failed, and canceled are terminal states. For completed, read the result field matching the task type above. For failed, inspect data.error.message.
HTTP 200 and code: 200 mean the query succeeded; they do not mean generation completed successfully. Always check data.status.
data.output can be null before successful completion. A completed image task returns an array of image URLs; an audio task returns a URL in the selected audio format.
data.meta.usage describes task usage. Querying a task does not create another generation or charge a second generation fee. A failed status alone does not determine whether a charge was incurred; inspect final usage and your billing records.
Query tasks belonging to your own account. Speech and image task records remain available for approximately three days after their last status update. Download results you want to keep promptly.
The examples show video, speech, image, pending, and failed tasks. Task IDs, media URLs, timestamps, and usage values are illustrative placeholders; use the values returned for your own tasks.

Request

Path Params

Header Params

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'https://api.piapi.ai/api/v1/task/' \
--header 'x-api-key;'

Responses

🟢200Success
application/json
Bodyapplication/json

Examples
Illustrative response. IDs, URLs, timestamps and usage are placeholders.
{
  "code": 200,
  "message": "success",
  "data": {
    "task_id": "00000000-0000-4000-8000-000000000001",
    "model": "Qubico/minimax-h3",
    "task_type": "txt2video",
    "status": "completed",
    "config": {
      "service_mode": "public",
      "webhook_config": {
        "endpoint": "",
        "secret": ""
      }
    },
    "input": {
      "prompt": "A golden retriever puppy running across a sunny grass lawn toward the camera, cinematic",
      "resolution": "480p",
      "duration": 5,
      "aspect_ratio": "16:9",
      "seed": 0
    },
    "output": {
      "video": "https://example.com/generated-video.mp4"
    },
    "meta": {
      "created_at": "2026-10-13T08:00:00Z",
      "started_at": "2026-10-13T08:00:01Z",
      "ended_at": "2026-10-13T08:00:10Z",
      "usage": {
        "type": "point",
        "frozen": 0,
        "consume": 1500000
      },
      "is_using_private_pool": false
    },
    "detail": null,
    "logs": [],
    "error": {
      "code": 0,
      "message": "",
      "detail": null
    }
  }
}
Modified at 2026-10-16 02:35:27
Previous
MiniMax Image
Next
Sora2-preview Text to Video