Qiklab

Qiklab API Documentation

Use the Qiklab REST API to generate AI images and videos programmatically.

Authentication

All API requests require an API key. Generate one from your account settings. Requires a minimum balance of $9.99.

Include your API key in the Authorization header:

Authorization: Bearer qkapi_{replace-with-your-api-key-here}

Base URL

https://www.qiklab.com/api/v1

Rate Limits

5 requests per second per API key. Exceeding this returns 429 Too Many Requests.

Endpoints

GET/api/v1/me

Get your profile and balance.

Example Request

curl https://www.qiklab.com/api/v1/me \
  -H "Authorization: Bearer qkapi_{replace-with-your-api-key-here}"

Response

{
  "username": "johndoe",
  "email": "john@example.com",
  "bio": "AI enthusiast",
  "location": "San Francisco, CA",
  "balance_cents": 999,
  "balance_dollars": "9.99",
  "created_at": "2026-03-15T12:00:00+00:00"
}
POST/api/v1/generate

Start a generation job.

Request Body (JSON)

ParameterTypeRequiredDescription
modestringYest2i, i2i, t2v, i2v, t2i_pro, t2v_pro, i2v_pro, i2i_pro, motion, mm2v
positive_promptstringYesWhat to generate. Limits: mm2v 5..30000 chars; t2i_pro 10000 chars; t2v / i2v 4096 chars; t2v_pro / i2v_pro 4500 chars; t2i 4000 chars; motion 8000 chars; all other modes 1500 chars. mm2v supports inline reference tagging via @imageN, @audioN, @videoN in the multimodal_reference scenario.
negative_promptstringNoWhat to avoid (max 500 chars). i2i only. Not used for t2i, t2i_pro, i2i_pro, motion, t2v, i2v, t2v_pro or i2v_pro (request will be rejected with 400).
resolutionstringNot2i/i2i/i2i_pro: 1k, 2k, 4k. t2i_pro: 1k (default), 2k, 4k; the 27:16, 16:27, 9:8 and 8:9 aspect ratios support 1k only. t2v / i2v: 480p (default), 720p or 1080p. t2v_pro: 480P, 720P (default) or 1080P (either case accepted, sent uppercase). i2v_pro: 720p (default) or 1080p. motion: 720p or 1080p (default 720p).
orientationstringNoi2i only: square, horizontal, vertical. Not used for t2i, t2i_pro, t2v, t2v_pro, i2v, i2v_pro, i2i_pro, or motion.
aspect_ratiostringNot2i: 1:1, 2:3, 3:2, 9:16, 16:9. t2i_pro: 1:1, 3:2, 2:3, 4:3, 3:4, 16:9, 9:16, 21:9, 27:16, 16:27, 9:8, 8:9 — REQUIRED for t2i_pro. i2i_pro: auto (default), 1:1, 2:3, 3:2, 1:4, 4:1, 3:4, 4:3, 4:5, 5:4, 1:8, 8:1, 9:16, 16:9, 21:9. t2v: auto, 1:1, 2:3, 3:2, 9:16, 16:9 — REQUIRED for t2v. i2v: auto, 1:1, 2:3, 3:2, 9:16, 16:9 — REQUIRED for i2v. t2v_pro: 1:1, 3:4, 4:3, 9:16, 16:9 (default 16:9). i2v_pro: adaptive (default; follows the first frame), 16:9, 4:3, 1:1, 3:4, 9:16. mm2v: adaptive (default; the model picks the shape), 1:1, 3:4, 4:3, 9:16, 16:9, 21:9. Default: 1:1 (where optional).
backgroundstringNot2i_pro only: auto (default), transparent, or opaque. transparent returns a PNG with a transparent background. t2i_pro output is always PNG. Rejected with 400 on other modes.
durationintegerNoVideo duration in seconds. t2v / i2v: any integer 8 to 15 (default 8). t2v_pro: any integer 6 to 30 (default 6). i2v_pro: any integer 6 to 30 (default 6). mm2v: any integer 6 to 30 (default 6). motion: 3 to 30, required only without motion_video_upload_id; with a reference video the duration is derived from it.
imagestringNoImage for i2i / i2v_pro — accepts a public URL (http(s)://...) OR a base64-encoded payload (data URI prefix optional). Base64 is uploaded to S3 server-side. Required for i2i, and for i2v_pro unless reference uploads are sent instead (the first frame). i2v_pro frames: JPEG, PNG, BMP or WEBP, 240-8000 px per side, aspect up to 8:1, at most 20 MB, and no transparency (a transparent PNG is rejected with 400 before anything is charged). Not accepted on i2v non-pro (use `images` array).
imagesstring[]NoImage URLs (or base64). i2i_pro: 1-10 (REQUIRED). i2v non-pro: 1-7 (REQUIRED). 15 MB max per image when base64.
last_frame_urlstringNoi2v_pro: optional last frame (the video moves from `image` to this frame). Accepts a URL or base64 (same handling and frame rules as `image`). Not accepted on i2v non-pro.
motion_image_upload_idstringNoMotion mode only: reference-image upload handle returned by POST /api/v1/uploads/motion/image (required for motion).
motion_video_upload_idstringNoMotion mode only, optional: reference-video upload handle returned by POST /api/v1/uploads/motion/video. Without it the subject acts out the prompt (with motion_audio_upload_id, speaks it), duration is required and the without-video price applies.
motion_audio_upload_idstringNoMotion mode only, optional: the subject's voice, an audio upload handle returned by POST /api/v1/uploads/compose/audio. At least 5 seconds; a longer voice is cut to the job's length (the video's, or duration). It sets how the voice sounds, not what is said: put the words in the prompt, e.g. @image1 says: "Hello there". Use the voice @audio1.
elementsobject[]NoMotion mode only, optional: up to 7 named subjects, each {name, image_urls (2-4) or video_url, tag?, description?, voice_url?}. At most 3 video subjects. Mention one in the prompt as @name. Names: 1-20 letters, digits or underscores, unique; image_N, video_N, audio_N, keyframe_N, object_N, first_frame, last_frame and audio1 are reserved.
scenariostringNomm2v / Compose only (REQUIRED for mm2v): one of text_only, first_frame, first_and_last_frame, multimodal_reference. Determines which input slots are valid — mixing slots across scenarios returns 400. Only multimodal_reference accepts inline @imageN / @audioN / @videoN tags in the prompt.
generate_audiobooleanNomm2v / Compose, t2v_pro and i2v_pro: request a generated soundtrack in the output video. Default true. mm2v: forced false server-side when compose_audio_upload_ids is non-empty (uploaded audio overrides synthesis); the effective value is reflected in pricing (a +$0.05 surcharge applies when synthesis runs). t2v_pro / i2v_pro: same price on or off.
compose_image_upload_idsstring[]Nomm2v / Compose, multimodal_reference scenario only: 1..30 reference image upload handles from POST /api/v1/uploads/compose/image. Index in the array maps to the @imageN tag in the prompt. i2v_pro reference mode: up to 10 handles uploaded with mode=i2v_pro, instead of image / last_frame_url.
compose_video_upload_idsstring[]Nomm2v / Compose, multimodal_reference scenario only: 1..10 reference video upload handles from POST /api/v1/uploads/compose/video. Combined duration capped at 30 seconds across the array. i2v_pro reference mode: up to 5 handles uploaded with mode=i2v_pro (15 s total; their length plus duration at most 30 s).
compose_audio_upload_idsstring[]Nomm2v / Compose, multimodal_reference scenario only: 1..10 reference audio upload handles from POST /api/v1/uploads/compose/audio. Combined duration capped at 30 seconds. Audio without an image or video reference is rejected. i2v_pro reference mode: up to 5 handles uploaded with mode=i2v_pro (15 s total).
compose_first_frame_upload_idstringNomm2v / Compose, first_frame or first_and_last_frame scenarios only: first-frame image upload handle from POST /api/v1/uploads/compose/first-frame.
compose_last_frame_upload_idstringNomm2v / Compose, first_and_last_frame scenario only: last-frame image upload handle from POST /api/v1/uploads/compose/last-frame.

Example Request (t2i)

Text-to-Image generates 4 images per request. The status response will include a result_urls array with all 4 image URLs.

curl -X POST https://www.qiklab.com/api/v1/generate \
  -H "Authorization: Bearer qkapi_{replace-with-your-api-key-here}" \
  -H "Content-Type: application/json" \
  -d '{
    "mode": "t2i",
    "positive_prompt": "A beautiful sunset over the ocean",
    "aspect_ratio": "3:2"
  }'

Example Request (i2i)

curl -X POST https://www.qiklab.com/api/v1/generate \
  -H "Authorization: Bearer qkapi_{replace-with-your-api-key-here}" \
  -H "Content-Type: application/json" \
  -d '{
    "mode": "i2i",
    "positive_prompt": "Oil painting style, warm sunset tones",
    "negative_prompt": "blurry, low quality",
    "resolution": "1k",
    "orientation": "square",
    "image": "data:image/png;base64,iVBORw0KGgo..."
  }'

Example Request (t2i_pro)

curl -X POST https://www.qiklab.com/api/v1/generate \
  -H "Authorization: Bearer qkapi_{replace-with-your-api-key-here}" \
  -H "Content-Type: application/json" \
  -d '{
    "mode": "t2i_pro",
    "positive_prompt": "A photorealistic portrait, studio lighting",
    "aspect_ratio": "2:3",
    "resolution": "2k",
    "background": "auto"
  }'

Example Request (t2v)

duration accepts any integer from 8 to 15 (default 8). aspect_ratio is required (auto lets the model choose). negative_prompt is not supported on this mode and will be rejected with 400.

curl -X POST https://www.qiklab.com/api/v1/generate \
  -H "Authorization: Bearer qkapi_{replace-with-your-api-key-here}" \
  -H "Content-Type: application/json" \
  -d '{
    "mode": "t2v",
    "positive_prompt": "A drone shot flying over a mountain range",
    "resolution": "480p",
    "aspect_ratio": "16:9",
    "duration": 8
  }'

Example Request (t2v_pro)

resolution is 480P, 720P (default) or 1080P. duration accepts any integer from 6 to 30 (default 6). generate_audio (default true) gives the video its own soundtrack; set it to false for a silent video. negative_prompt and audio_upload_id are not supported on this mode and will be rejected with 400.

curl -X POST https://www.qiklab.com/api/v1/generate \
  -H "Authorization: Bearer qkapi_{replace-with-your-api-key-here}" \
  -H "Content-Type: application/json" \
  -d '{
    "mode": "t2v_pro",
    "positive_prompt": "Cinematic slow-motion waves crashing on rocks",
    "resolution": "720P",
    "aspect_ratio": "16:9",
    "duration": 10,
    "generate_audio": true
  }'

Example Request (i2v)

images is required (1–7 entries; URLs or base64). aspect_ratio is required (auto lets the model pick the shape). duration accepts any integer 8–15 (default 8). negative_prompt, image (singular), and last_frame_url are not supported on this mode and will be rejected with 400.

curl -X POST https://www.qiklab.com/api/v1/generate \
  -H "Authorization: Bearer qkapi_{replace-with-your-api-key-here}" \
  -H "Content-Type: application/json" \
  -d '{
    "mode": "i2v",
    "positive_prompt": "A bird takes flight from the branch",
    "resolution": "480p",
    "aspect_ratio": "16:9",
    "duration": 8,
    "images": [
      "https://example.com/bird-on-branch.jpg"
    ]
  }'

Example Request (i2v_pro)

image is the first frame (URL or base64) and last_frame_url an optional last frame. Frames must be JPEG, PNG, BMP or WEBP, 240–8000 px per side, aspect up to 8:1, at most 20 MB, with no transparency; they are checked before anything is charged. duration accepts any integer 6–30 (default 6), aspect_ratio defaults to adaptive, and generate_audio (default true) turns the generated soundtrack on or off at the same price.

curl -X POST https://www.qiklab.com/api/v1/generate \
  -H "Authorization: Bearer qkapi_{replace-with-your-api-key-here}" \
  -H "Content-Type: application/json" \
  -d '{
    "mode": "i2v_pro",
    "positive_prompt": "Camera slowly zooms in, cinematic motion",
    "resolution": "720p",
    "duration": 10,
    "aspect_ratio": "adaptive",
    "generate_audio": true,
    "image": "https://example.com/scene.jpg",
    "last_frame_url": "https://example.com/scene-end.jpg"
  }'

Example Request (i2v_pro with references)

Instead of a first / last frame, i2v_pro can take references: up to 10 images, 5 videos (MP4 / MOV, 1–15 s each, 15 s total; their length plus duration at most 30 s) and 5 audio files (MP3 / WAV / MP4 audio, 1–15 s each, 15 s total; never audio alone). Upload each file with the Compose upload endpoints below and mode=i2v_pro, then pass the handles in compose_image_upload_ids / compose_video_upload_ids / compose_audio_upload_ids. Frames and references can't be combined. Same price as the frames path.

IMG=$(curl -s -X POST https://www.qiklab.com/api/v1/uploads/compose/image \
  -H "Authorization: Bearer qkapi_..." -F "mode=i2v_pro" -F "file=@subject.jpg" | jq -r .data.upload_id)
VID=$(curl -s -X POST https://www.qiklab.com/api/v1/uploads/compose/video \
  -H "Authorization: Bearer qkapi_..." -F "mode=i2v_pro" -F "file=@move.mp4" | jq -r .data.upload_id)

curl -X POST https://www.qiklab.com/api/v1/generate \
  -H "Authorization: Bearer qkapi_..." \
  -H "Content-Type: application/json" \
  -d "{
    \"mode\": \"i2v_pro\",
    \"positive_prompt\": \"The subject dances like the reference video\",
    \"resolution\": \"720p\",
    \"duration\": 10,
    \"compose_image_upload_ids\": [\"$IMG\"],
    \"compose_video_upload_ids\": [\"$VID\"]
  }"

Example Request (motion)

Motion requires a two-step flow: first upload the reference image and reference video via the helpers below, then pass the two returned upload_id values here. Duration (and therefore pricing) is derived from the uploaded video. The output keeps the reference video's sound. The video is optional: without it, pass duration (3 to 30) and the without-video price applies. Optionally add a voice (motion_audio_upload_id) and named subjects (elements), and refer to the inputs in the prompt as @image1, @video1, @audio1 and @name.

curl -X POST https://www.qiklab.com/api/v1/generate \
  -H "Authorization: Bearer qkapi_{replace-with-your-api-key-here}" \
  -H "Content-Type: application/json" \
  -d '{
    "mode": "motion",
    "positive_prompt": "The character dances gracefully",
    "motion_image_upload_id": "qiklabimg_eyJ1aWQiOiIuLi4ifQ.AbCdEf...",
    "motion_video_upload_id": "qiklabvid_eyJ1aWQiOiIuLi4ifQ.GhIjKl...",
    "resolution": "720p"
  }'

Example Request (mm2v / Compose — Multimodal Reference)

Compose accepts text alone or any combination of image / video / audio reference inputs. Pick a scenario first — text_only, first_frame, first_and_last_frame, or multimodal_reference — and only the slots valid for that scenario are accepted. Inline reference tagging (@imageN, @audioN, @videoN) is supported in multimodal_reference.

curl -X POST https://www.qiklab.com/api/v1/generate \
  -H "Authorization: Bearer qkapi_{replace-with-your-api-key-here}" \
  -H "Content-Type: application/json" \
  -d '{
    "mode": "mm2v",
    "scenario": "multimodal_reference",
    "positive_prompt": "Combine @image1 with @video1 and overlay @audio1 — cinematic slow-motion",
    "aspect_ratio": "adaptive",
    "resolution": "720p",
    "duration": 8,
    "generate_audio": false,
    "compose_image_upload_ids": ["qiklabcmpi_..."],
    "compose_video_upload_ids": ["qiklabcmpv_..."],
    "compose_audio_upload_ids": ["qiklabcmpa_..."]
  }'

Example Request (mm2v / Compose — Text Only)

Text Only scenario: no input slots needed, just a prompt + scenario + the standard video controls. generate_audio defaults to true and adds a +$0.05 surcharge to the per-second rate.

curl -X POST https://www.qiklab.com/api/v1/generate \
  -H "Authorization: Bearer qkapi_{replace-with-your-api-key-here}" \
  -H "Content-Type: application/json" \
  -d '{
    "mode": "mm2v",
    "scenario": "text_only",
    "positive_prompt": "A cinematic wide shot of a sailboat at sunset, slow camera dolly",
    "aspect_ratio": "21:9",
    "resolution": "1080p",
    "duration": 12,
    "generate_audio": true
  }'

Example Request (i2i_pro with URLs)

The images field accepts URLs or base64 strings (with or without data:image/png;base64, prefix). Base64 images are automatically uploaded and converted server-side.

curl -X POST https://www.qiklab.com/api/v1/generate \
  -H "Authorization: Bearer qkapi_{replace-with-your-api-key-here}" \
  -H "Content-Type: application/json" \
  -d '{
    "mode": "i2i_pro",
    "positive_prompt": "Recreate me perfectly in this pose",
    "resolution": "1k",
    "aspect_ratio": "3:4",
    "images": [
      "https://your-storage.com/photo1.jpg",
      "https://your-storage.com/photo2.jpg"
    ]
  }'

Example Request (i2i_pro with base64)

curl -X POST https://www.qiklab.com/api/v1/generate \
  -H "Authorization: Bearer qkapi_{replace-with-your-api-key-here}" \
  -H "Content-Type: application/json" \
  -d '{
    "mode": "i2i_pro",
    "positive_prompt": "Recreate me perfectly in this pose",
    "resolution": "1k",
    "aspect_ratio": "3:4",
    "images": [
      "data:image/png;base64,iVBORw0KGgo...",
      "/9j/4AAQSkZJRg..."
    ]
  }'

Both data:image/...;base64, prefixed and raw base64 strings are accepted. You can also mix URLs and base64 in the same request.

Response

{
  "job_id": "550e8400-e29b-41d4-a716-446655440000",
  "status": "QUEUED",
  "kind": "Image"
}

kind is one of Image, Video, or Audio — derived from the request mode. Use it to decide how to render the eventual result_url.

POST/api/v1/uploads/motion/image

Upload a reference image for motion mode. Returns a signed upload handle.

Motion is a two-step flow. First upload the reference image and reference video through these helpers; both endpoints return an upload_id that you pass back to POST /api/v1/generate with mode=motion. Handles are valid for 24 hours.

Request Body (multipart/form-data)

ParameterTypeRequiredDescription
filefileYesJPEG or PNG, max 10 MB, minimum dimension > 340 px, aspect ratio 2:5 to 5:2.

Example Request

curl -X POST https://www.qiklab.com/api/v1/uploads/motion/image \
  -H "Authorization: Bearer qkapi_{replace-with-your-api-key-here}" \
  -F "file=@/path/to/reference.jpg"

Response

{
  "status": "success",
  "data": {
    "upload_id": "qiklabimg_eyJ1aWQiOiIuLi4ifQ.AbCdEf...",
    "expires_at": "2026-04-18T17:00:00Z",
    "width": 1024,
    "height": 1024,
    "size_bytes": 845221
  }
}
POST/api/v1/uploads/motion/video

Upload a reference video for motion mode. Returns a signed upload handle with duration.

Request Body (multipart/form-data)

ParameterTypeRequiredDescription
filefileYesMP4 or MOV, max 100 MB, duration 3-30 s (30.0 s at most: a longer clip is refused, trim it first), minimum dimension > 340 px, aspect ratio 2:5 to 5:2.

The video's duration drives motion pricing and is baked into the signed upload handle — you don't need to pass it back separately.

Example Request

curl -X POST https://www.qiklab.com/api/v1/uploads/motion/video \
  -H "Authorization: Bearer qkapi_{replace-with-your-api-key-here}" \
  -F "file=@/path/to/reference.mp4"

Response

{
  "status": "success",
  "data": {
    "upload_id": "qiklabvid_eyJ1aWQiOiIuLi4ifQ.GhIjKl...",
    "expires_at": "2026-04-18T17:00:00Z",
    "duration_seconds": 8,
    "width": 1920,
    "height": 1080,
    "size_bytes": 34215441
  }
}

Example: end-to-end motion generation

Upload the reference image, upload the reference video, then call POST /api/v1/generate with mode=motion and the two returned handles. Poll GET /api/v1/status/{job_id} until completion.

# 1) Upload the reference image
IMG=$(curl -s -X POST https://www.qiklab.com/api/v1/uploads/motion/image \
  -H "Authorization: Bearer qkapi_..." \
  -F "file=@reference.jpg" | jq -r .data.upload_id)

# 2) Upload the reference video
VID=$(curl -s -X POST https://www.qiklab.com/api/v1/uploads/motion/video \
  -H "Authorization: Bearer qkapi_..." \
  -F "file=@reference.mp4" | jq -r .data.upload_id)

# 3) Start the motion generation job
curl -X POST https://www.qiklab.com/api/v1/generate \
  -H "Authorization: Bearer qkapi_..." \
  -H "Content-Type: application/json" \
  -d "{
    \"mode\": \"motion\",
    \"positive_prompt\": \"The character dances gracefully.\",
    \"motion_image_upload_id\": \"$IMG\",
    \"motion_video_upload_id\": \"$VID\",
    \"resolution\": \"720p\"
  }"

Motion is billed per second of the uploaded reference video's duration — 720p is $0.11/s and 1080p is $0.15/s. A 10-second clip at 720p costs $1.10. A voice or elements cost nothing extra.

POST/api/v1/uploads/compose/image

Upload one reference image for Compose / mm2v, or for i2v_pro reference mode. Returns a signed upload handle.

Request Body (multipart/form-data)

ParameterTypeRequiredDescription
modestringNoOmit (or mm2v) for Compose rules. i2v_pro: check against Video Edit's reference rules instead (JPEG, PNG, BMP or WEBP, 240–8000 px per side, aspect up to 8:1, at most 20 MB, no transparency). A handle only works with the mode it was uploaded for.
filefileYesJPEG, PNG, WEBP, BMP, TIFF, or GIF. <30 MB. Width and height each in (300, 6000) pixels (open interval). Aspect ratio in (0.4, 2.5).

Pass back as one entry in compose_image_upload_ids (array, 1..30) on POST /api/v1/generate with mode=mm2v, scenario=multimodal_reference. Index in the array maps to the @imageN tag in the prompt (1-indexed).

POST/api/v1/uploads/compose/video

Upload one reference video for Compose / mm2v, or for i2v_pro reference mode. Returns a signed upload handle with duration.

Request Body (multipart/form-data)

ParameterTypeRequiredDescription
modestringNoOmit (or mm2v) for Compose rules. i2v_pro: check against Video Edit's reference rules instead (MP4 or MOV, 240–4096 px per side, aspect up to 8:1, at most 100 MB, 1–15 s). A handle only works with the mode it was uploaded for.
filefileYesMP4 or MOV. ≤200 MB. Per-file duration [2, 30]s. FPS [24, 60]. Resolution 480p or 720p. Width and height each in [300, 6000]; total pixels in [409,600, 927,408].

Pass back in compose_video_upload_ids (array, 1..10). Combined duration across the array is capped at 30 seconds (re-summed at /generate time from the signed handles — tampering rejected).

POST/api/v1/uploads/compose/audio

Upload one reference audio file for Compose / mm2v, or for i2v_pro reference mode. Returns a signed upload handle with duration.

Request Body (multipart/form-data)

ParameterTypeRequiredDescription
modestringNoOmit (or mm2v) for Compose rules. i2v_pro: check against Video Edit's reference rules instead (MP3, WAV or MP4 audio (converted to MP3), at most 15 MB, 1–15 s). A handle only works with the mode it was uploaded for.
filefileYesMP3, WAV, or MP4 audio (audio/mp4; converted to MP3 on upload). ≤15 MB per file. Per-file duration [2, 30]s.

Pass back in compose_audio_upload_ids (array, 1..10). Combined duration across the array is capped at 30 seconds. Audio without an image or video reference in the same request is rejected.

POST/api/v1/uploads/compose/first-frame

Upload the first-frame image for Compose. Returns a signed upload handle.

Request Body (multipart/form-data)

ParameterTypeRequiredDescription
filefileYesJPEG, PNG, WEBP, BMP, or GIF (TIFF NOT accepted on frame slots, even though it is on reference images). ≤30 MB. Same dimensional bounds as the reference image array.

Pass back as compose_first_frame_upload_id on POST /api/v1/generate with scenario=first_frame or first_and_last_frame.

POST/api/v1/uploads/compose/last-frame

Upload the last-frame image for Compose (first_and_last_frame scenario only). Returns a signed upload handle.

Request Body (multipart/form-data)

ParameterTypeRequiredDescription
filefileYesSame MIME allowlist + bounds as /api/v1/uploads/compose/first-frame (no TIFF, ≤30 MB).

Pass back as compose_last_frame_upload_id on POST /api/v1/generate with scenario=first_and_last_frame.

GET/api/v1/status/{job_id}

Check the status of a generation job.

Path Parameters

ParameterTypeRequiredDescription
job_idstringYesThe job_id returned from /generate

Example Request

curl https://www.qiklab.com/api/v1/status/550e8400-e29b-41d4-a716-446655440000 \
  -H "Authorization: Bearer qkapi_{replace-with-your-api-key-here}"

Response (in progress)

{
  "job_id": "550e8400-e29b-41d4-a716-446655440000",
  "status": "IN_PROGRESS"
}

Response (processing)

{
  "job_id": "550e8400-e29b-41d4-a716-446655440000",
  "status": "PROCESSING"
}

PROCESSING means the generation is done but the result is being prepared. Continue polling.

Response (completed)

{
  "job_id": "550e8400-e29b-41d4-a716-446655440000",
  "status": "COMPLETED",
  "result_url": "https://...",
  "expires_at": 1738128502
}

result_url is a time-limited signed URL. expires_at is the Unix epoch (seconds, UTC) when the signature stops working — safe to cache the URL until then. Download the file before then.

Response (failed)

{
  "job_id": "550e8400-e29b-41d4-a716-446655440000",
  "status": "FAILED",
  "error": "Generation failed"
}
GET/api/v1/balance

Check your current account balance.

Example Request

curl https://www.qiklab.com/api/v1/balance \
  -H "Authorization: Bearer qkapi_{replace-with-your-api-key-here}"

Response

{
  "balance_cents": 999,
  "balance_dollars": "9.99"
}

Pricing

Each generation deducts from your wallet balance. Prices vary by mode, resolution, and duration.

ModeStarting Price
t2i (1k)$0.05
i2i (1k)$0.05
t2i_pro (1k)$0.07
t2i_pro (2k)$0.10
t2i_pro (4k)$0.12
i2i_pro (1k)$0.06
i2i_pro (2k)$0.07
i2i_pro (4k)$0.08
t2v (480p, per second)$0.02/s — 8 to 15 s, e.g. 8s $0.16 / 10s $0.20 / 15s $0.30
t2v (720p, per second)$0.04/s — 8 to 15 s, e.g. 8s $0.32 / 10s $0.40 / 15s $0.60
t2v (1080p, per second)$0.05/s — 8 to 15 s, e.g. 8s $0.40 / 10s $0.50 / 15s $0.75
i2v (480p, per second)$0.03/s — 8 to 15 s, e.g. 8s $0.24 / 10s $0.30 / 15s $0.45
i2v (720p, per second)$0.04/s — 8 to 15 s, e.g. 8s $0.32 / 10s $0.40 / 15s $0.60
i2v (1080p, per second)$0.05/s — 8 to 15 s, e.g. 8s $0.40 / 10s $0.50 / 15s $0.75
t2v_pro (480P, per second)$0.06/s — e.g. 6s $0.36 / 15s $0.90 / 30s $1.80
t2v_pro (720P, per second)$0.10/s — e.g. 6s $0.60 / 15s $1.50 / 30s $3.00
t2v_pro (1080P, per second)$0.18/s — e.g. 6s $1.08 / 15s $2.70 / 30s $5.40
i2v_pro (720p, per second)$0.10/s — e.g. 6s $0.60 / 15s $1.50 / 30s $3.00
i2v_pro (1080p, per second)$0.18/s — e.g. 6s $1.08 / 15s $2.70 / 30s $5.40
motion (720p, per second)$0.11/s
motion (1080p, per second)$0.15/s
motion without a reference video (720p, per second)$0.16/s
motion without a reference video (1080p, per second)$0.24/s
mm2v / Compose (480p, with reference video, per second)$0.10/s
mm2v / Compose (480p, no reference video, per second)$0.16/s
mm2v / Compose (720p, with reference video, per second)$0.21/s
mm2v / Compose (720p, no reference video, per second)$0.33/s
mm2v / Compose (1080p, with reference video, per second)$0.49/s
mm2v / Compose (1080p, no reference video, per second)$0.81/s
mm2v / Compose — generate_audio surcharge* (when no reference audio uploaded)+$0.05 flat*

mm2v / Compose duration is 6–30 seconds. Range: $0.60 (480p × 6s with reference video, no synthesized audio) up to $24.35 (1080p × 30s without reference video, with synthesized audio).

* The generate_audio surcharge of $0.05 is current at the time of writing and may change in the future. The live cost shown in the Studio and the amount actually charged are always authoritative.

Error Codes

CodeMeaning
400Bad request (invalid parameters)
401Invalid or missing API key
402Insufficient balance
403Account banned
404Job not found
429Rate limit exceeded (5 req/s)
502Generation service error