POST
https://api.unifically.com
/
v1
/
tasks
Unified Tasks API
curl --request POST \
  --url https://api.unifically.com/v1/tasks \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "<string>",
  "input": {},
  "callback_url": "<string>"
}
'
{
  "code": 200,
  "success": true,
  "data": {
    "task_id": "abc123def456",
    "status": "pending"
  }
}
The /v1/tasks endpoint provides a unified interface for all AI generation models (video, image, audio).
This is the unified API for all AI generation models. Use this endpoint for all integrations.

Create Task

POST /v1/tasks Creates a new generation task for any supported model.

Request

curl -X POST https://api.unifically.com/v1/tasks \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "google/veo-3.1-fast",
    "input": {
      "prompt": "A cat walking on the beach at sunset",
      "resolution": "1080p"
    },
    "callback_url": "https://your-server.com/webhook"
  }'

Request Parameters

model
string
required
Model identifier in provider/model-name format. See Available Models below.
input
object
required
Model-specific input parameters. See Input Parameters for details.
callback_url
string
Optional webhook URL. When provided, the API sends a POST request to this URL when the task completes or fails.

Response

{
  "code": 200,
  "success": true,
  "data": {
    "task_id": "abc123def456",
    "status": "pending"
  }
}

Get Task Status

GET /v1/tasks/:task_id Retrieves the status and output of a task.

Request

curl https://api.unifically.com/v1/tasks/abc123def456 \
  -H "Authorization: Bearer YOUR_API_KEY"

Path Parameters

task_id
string
required
The unique task ID returned from the create task endpoint

Response (Processing)

{
  "code": 200,
  "success": true,
  "data": {
    "task_id": "abc123def456",
    "status": "processing"
  }
}

Response (Completed)

{
  "code": 200,
  "success": true,
  "data": {
    "task_id": "abc123def456",
    "status": "completed",
    "output": {
      "video_url": "https://cdn.unifically.com/outputs/abc123.mp4"
    }
  }
}

Available Models

Video Generation

ModelDescription
google/veo-3.1-fastGoogle Veo 3.1 Fast (720p, 1080p, 4k)
google/veo-3.1-qualityGoogle Veo 3.1 Quality (720p, 1080p, 4k)
openai/sora-2OpenAI Sora 2 (5s, 10s, 15s, 20s)
openai/sora-2-proOpenAI Sora 2 Pro (10s, 15s, 20s, 25s)
hailuo/minimaxMinimax Hailuo
hailuo/minimax-fastMinimax Hailuo Fast
hailuo/minimax-2.3Minimax Hailuo 2.3
hailuo/minimax-2.3-fastMinimax Hailuo 2.3 Fast
higgsfield-ai/liteHiggsfield Lite
higgsfield-ai/turboHiggsfield Turbo
higgsfield-ai/standardHiggsfield Standard
higgsfield-ai/cinematic-studio-videoCinematic Studio Video
kuaishou/kling-2.6Kling v2.6
kuaishou/kling-2.5-turboKling v2.5 Turbo
kuaishou/kling-2.5-turbo-proKling v2.5 Turbo Pro
kuaishou/kling-2.1-stdKling v2.1 Standard
kuaishou/kling-2.1-proKling v2.1 Pro
kuaishou/kling-2.1-masterKling v2.1 Master
kuaishou/kling-o1-generateKling O1 Generate
kuaishou/kling-o1-editKling O1 Edit
kuaishou/kling-2.6-motion-controlKling v2.6 Motion Control
topaz/video-upscaleTopaz Video Upscale

Image Generation

ModelDescription
google/nano-bananaNano Banana
google/nano-banana-proNano Banana Pro
openai/gpt-image-1GPT Image 1 (low, medium, high quality)
openai/gpt-image-1.5GPT Image 1.5 (low, medium, high quality)
higgsfield-ai/cinematic-studio-imageCinematic Studio Image
black-forest-labs/flux.2-proFlux.2 Pro
black-forest-labs/flux.2-flexFlux.2 Flex
black-forest-labs/flux.2-maxFlux.2 Max
topaz/image-upscaleTopaz Image Upscale
topaz/image-generativeTopaz Image Generative

Audio Generation

ModelDescription
suno-ai/musicSuno Music Generation
suno-ai/add-vocalsAdd Vocals to Track
suno-ai/add-instrumentalAdd Instrumental
suno-ai/extendExtend Audio
suno-ai/coverCreate Cover
suno-ai/stemsExtract Stems
suno-ai/stems-allExtract All Stems
suno-ai/lyricsGenerate Lyrics
higgsfield-ai/speakSpeak (standard, high quality)
higgsfield-ai/ttsText-to-Speech
elevenlabs/text-to-speechElevenLabs Text-to-Speech
elevenlabs/text-to-dialogueElevenLabs Multi-Voice Dialogue
elevenlabs/sound-effectElevenLabs Sound Effects
elevenlabs/audio-isolationElevenLabs Audio Isolation
elevenlabs/speech-to-textElevenLabs Speech-to-Text

Model Parameters

All tasks support callback_url (outside the input object) for webhook notifications. When provided, a POST request is sent to your URL with status, task_id, and data (containing video_url, image_url, or audio_url) on completion, or error_message on failure.

Google Veo 3.1

Models: google/veo-3.1-fast, google/veo-3.1-quality
ParameterTypeRequiredDescription
promptstringYesText description of the video
aspect_ratiostringNo16:9 or 9:16
start_image_urlstringNoStarting frame image URL
end_image_urlstringNoEnding frame image URL
resolutionstringNo720p (default), 1080p, 4k
seedintegerNoSeed for reproducibility
Pricing: Fast: 720p 0.30,1080p0.30, 1080p 0.40, 4k 0.50Quality:720p0.50 | Quality: 720p 0.60, 1080p 0.70,4k0.70, 4k 0.80

OpenAI Sora 2

Models: openai/sora-2, openai/sora-2-pro
ParameterTypeRequiredDescription
promptstringYesText description of the video
durationintegerNoSora 2: 5, 10, 15, 20s / Pro: 10, 15, 20, 25s
aspect_ratiostringNo16:9 or 9:16
image_urlstringNoReference image URL
cameo_video_urlstringNoCameo character video (max 4 seconds)
character_promptstringNoDescription of cameo character
safety_instructionstringNoSafety guidance for content
Pricing: Sora 2: 5s 0.05,10s0.05, 10s 0.10, 15s 0.15,20s0.15, 20s 0.20 | Pro: 10s 0.40,15s0.40, 15s 0.60, 20s 0.80,25s0.80, 25s 1.00

Minimax Hailuo

Models: hailuo/minimax, hailuo/minimax-fast, hailuo/minimax-2.3, hailuo/minimax-2.3-fast
ParameterTypeRequiredDescription
promptstringYesText description
start_image_urlstringYesStarting frame image URL
end_image_urlstringNoEnding frame (minimax/minimax-fast only)
motion_idstringNoMotion preset ID
durationintegerNo6 or 10 seconds
resolutionstringNo512, 768, 1080
enhance_promptbooleanNoEnhance prompt with AI
seedintegerNoSeed for reproducibility
Pricing: minimax/minimax-fast 0.17,minimax2.30.17, minimax-2.3 0.17, minimax-2.3-fast $0.11

Higgsfield Video

Models: higgsfield-ai/lite, higgsfield-ai/turbo, higgsfield-ai/standard
ParameterTypeRequiredDescription
promptstringYesText description
start_image_urlstringYesStarting frame image URL
motion_idstringYesMotion preset ID (UUID)
end_image_urlstringNoEnding frame image URL
enhance_promptbooleanNoEnhance prompt with AI
seedintegerNoSeed for reproducibility
Pricing: Lite 0.15,Turbo0.15, Turbo 0.21, Standard $0.30

Higgsfield Cinematic Studio Video

Model: higgsfield-ai/cinematic-studio-video
ParameterTypeRequiredDescription
promptstringNoText description
start_image_urlstringYesStarting frame image URL
end_image_urlstringNoEnding frame (disables preset_id, sound, slow_motion)
durationintegerNo5 or 10 seconds
aspect_ratiostringNo1:1, 3:4, 2:3, 9:16, 3:2, 4:3, 16:9, 21:9
preset_idstringNoCamera movement preset ID
soundbooleanNoEnable AI-generated sound
slow_motionbooleanNoEnable slow motion effect
seedintegerNo0-999999 for reproducibility
Pricing: 5s+sound 0.16,5s0.16, 5s 0.10, 10s+sound 0.36,10s0.36, 10s 0.20

Kling v2.6

Model: kuaishou/kling-2.6
ParameterTypeRequiredDescription
promptstringYesText description
image_urlstringNoReference image to animate
aspect_ratiostringNo1:1, 16:9, 9:16
durationintegerNoDuration in seconds (default 5)
motion_idstringNoMotion preset ID
negative_promptstringNoWhat to avoid
enhance_promptbooleanNoEnhance prompt (default true)
soundbooleanNoGenerate audio (default true)
Pricing: 0.032/s(5s:0.032/s (5s: 0.16, 10s: $0.32)

Kling v2.5 Turbo

Models: kuaishou/kling-2.5-turbo, kuaishou/kling-2.5-turbo-pro
ParameterTypeRequiredDescription
promptstringYesText description
start_image_urlstringYesStarting image URL
end_image_urlstringNoEnding image (1080p only)
durationintegerNo5 or 10 seconds
resolutionstringNo720p (std) or 1080p (pro)
motion_idstringNoMotion preset ID
enhance_promptbooleanNoEnhance prompt
seedintegerNoSeed for reproducibility
Pricing: Turbo: 5s 0.11,10s0.11, 10s 0.21 | Turbo Pro: 5s 0.16,10s0.16, 10s 0.32

Kling v2.1

Models: kuaishou/kling-2.1-std, kuaishou/kling-2.1-pro, kuaishou/kling-2.1-master
ParameterTypeRequiredDescription
promptstringYesText description
start_image_urlstringYesStarting image URL
end_image_urlstringNoEnding image (pro/master only)
durationintegerNo5 or 10 seconds
resolutionstringNo720p (std) or 1080p (pro/master)
motion_idstringNoMotion preset ID
enhance_promptbooleanNoEnhance prompt
seedintegerNoSeed for reproducibility
Pricing: Std: 5s 0.13,10s0.13, 10s 0.27 | Pro: 5s 0.27,10s0.27, 10s 0.53 | Master: 5s 0.40,10s0.40, 10s 0.80

Kling O1 (Omni)

Models: kuaishou/kling-o1-generate, kuaishou/kling-o1-edit Generate Mode 1 - Reference Images:
ParameterTypeRequiredDescription
promptstringYesText description
image_urlsarrayYes1-7 reference images
aspect_ratiostringYes1:1, 9:16, 16:9
durationintegerYes3-10 seconds
resolutionstringNo720p or 1080p
Generate Mode 2 - Start/End Frame:
ParameterTypeRequiredDescription
promptstringYesText description
start_image_urlstringYesStarting frame
end_image_urlstringNoEnding frame
aspect_ratiostringYes1:1, 9:16, 16:9
durationintegerYes5 or 10 seconds only
resolutionstringNo720p or 1080p
Edit Mode (kling-o1-edit):
ParameterTypeRequiredDescription
promptstringYesEdit/transformation description
video_urlstringYesSource video (3-10 seconds)
image_urlsarrayNoReference images (max 4)
aspect_ratiostringYes1:1, 9:16, 16:9
durationintegerYes3-10 seconds
resolutionstringNo720p or 1080p
Pricing: 0.048/s(5s:0.048/s (5s: 0.24, 10s: $0.48)

Kling v2.6 Motion Control

Model: kuaishou/kling-2.6-motion-control
ParameterTypeRequiredDescription
promptstringYesText description
video_urlstringYesReference video (3-30 seconds)
image_urlstringYesReference image (head/shoulders/torso visible)
character_orientationstringYesvideo (max 30s output) or image (max 10s output)
resolutionstringNo720p or 1080p
seedintegerNoSeed for reproducibility
Pricing: 720p 0.01/s,1080p0.01/s, 1080p 0.0225/s

GPT Image

Models: openai/gpt-image-1, openai/gpt-image-1.5
ParameterTypeRequiredDescription
promptstringYesText description
image_urlsarrayNoReference images
aspect_ratiostringNo1:1, 2:3, 3:2
qualitystringNolow, medium, high
Pricing: GPT Image 1: low 0.01,medium0.01, medium 0.02, high 0.041.5:low0.04 | 1.5: low 0.02, medium 0.03,high0.03, high 0.05

Nano Banana

Models: google/nano-banana, google/nano-banana-pro
ParameterTypeRequiredDescription
promptstringYesText description
aspect_ratiostringYes1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9
image_urlsarrayNoReference images
resolutionstringNoPro only: 1k, 2k, 4k
Pricing: Nano Banana 0.03Pro0.03 | Pro 0.06

Flux.2

Models: black-forest-labs/flux.2-pro, black-forest-labs/flux.2-flex, black-forest-labs/flux.2-max
ParameterTypeRequiredDescription
promptstringYesText description
image_urlsarrayNoReference images (Pro/Max: 8, Flex: 10)
aspect_ratiostringNoauto, 1:1, 4:3, 16:9, 3:2, 2:3, 9:16, 3:4 (Max also: 5:4, 21:9)
qualitystringNo1K or 2K
stepsintegerNoFlex only: 1-50 (more = higher quality)
cfgnumberNoFlex only: 1.5-10 (higher = follows prompt more strictly)
Pricing: Pro: 1K 0.02,2K0.02, 2K 0.03 | Flex: 1K 0.04,2K0.04, 2K 0.06 | Max: 1K 0.05,2K0.05, 2K 0.07

Higgsfield Cinematic Studio Image

Model: higgsfield-ai/cinematic-studio-image
ParameterTypeRequiredDescription
promptstringYesText description
resolutionstringNo1k, 2k, 4k (default: 2k)
image_urlsarrayNoReference images (max 4)
camera_model_idstringNoCamera model setting ID
camera_lens_idstringNoLens type setting ID
camera_aperture_idstringNoAperture setting ID
camera_focal_length_idstringNoFocal length setting ID
Pricing: 1k/2k 0.03,4k0.03, 4k 0.06

Suno Music

Model: suno-ai/music
ParameterTypeRequiredDescription
mvstringYesModel version: chirp-v3-5, chirp-v4, chirp-auk, chirp-bluejay, chirp-crow
custombooleanYesfalse for simple mode, true for custom mode
gpt_description_promptstringNoSimple mode: song description with lyrics
promptstringNoCustom mode: detailed lyrics/prompt
tagsstringNoCustom mode: genre/style tags
titlestringNoSong title
make_instrumentalbooleanNoGenerate instrumental only
negative_tagsstringNoCustom mode: styles to avoid
Pricing: $0.06 per generation

Suno Audio Operations

Models: suno-ai/add-vocals, suno-ai/add-instrumental, suno-ai/extend, suno-ai/cover
ParameterTypeRequiredDescription
mvstringYesModel version
clip_idstringYes*Existing clip ID
audio_urlstringYes*Audio file URL (alternative to clip_id)
custombooleanYesSimple or custom mode
gpt_description_promptstringNoSimple mode description
promptstringNoCustom mode prompt
continue_atnumberNoExtend: time in seconds to continue from
start_snumberNoStart time for overlay
end_snumberNoEnd time for overlay
Pricing: $0.06 per operation

Suno Stems

Models: suno-ai/stems, suno-ai/stems-all
ParameterTypeRequiredDescription
clip_idstringYesClip ID to extract stems from
titlestringNoTitle for extraction
Pricing: stems 0.05,stemsall0.05, stems-all 0.20

Suno Lyrics

Model: suno-ai/lyrics
ParameterTypeRequiredDescription
promptstringYesDescription of lyrics to generate
mvstringYesLyrics model: remi-v1 or default
Pricing: $0.012 per generation

Higgsfield TTS

Model: higgsfield-ai/tts
ParameterTypeRequiredDescription
voice_idstringYesVoice ID
promptstringYesText to convert to speech
sound_idstringNoBackground sound ID
similarity_boostintegerNo0-100 (default 90)
styleintegerNo0-100 (default 60)
speednumberNo0-1.2 (default 1.1)
stabilityintegerNo0-100 (default 30)
Pricing: $0.05 per generation

Higgsfield Speak

Model: higgsfield-ai/speak
ParameterTypeRequiredDescription
image_urlstringYesPerson/avatar image URL
audio_urlstringYes*Audio file URL
audio_task_idstringYes*TTS task ID (alternative to audio_url)
promptstringYesText description for video
qualitystringNostandard or high
enhance_promptbooleanNoEnhance prompt (default true)
seedintegerNoSeed for reproducibility
Pricing: standard 0.25,high0.25, high 0.35

Rate Limiting

Endpoint TypeLimitBan Duration
Generation (POST)10 req/sec60 seconds
Polling (GET)10 req/sec60 seconds

Rate Limit Headers

X-RateLimit-Limit: 10
X-RateLimit-Remaining: 8
X-RateLimit-Reset: 1706356800
Retry-After: 45  (only when banned)

Rate Limit Error Response

{
  "success": false,
  "code": 429,
  "data": {
    "message": "You have been ratelimited, this temporary restriction will be lifted in: 45 seconds",
    "code": "rate_limit_exceeded"
  }
}

Error Responses

CodeDescription
400Bad Request - Invalid parameters
401Unauthorized - Invalid or missing API key
402Payment Required - Insufficient balance
404Not Found - Task or model not found
429Too Many Requests - Rate limited
500Internal Server Error

Error Response Format

{
  "success": false,
  "code": 400,
  "data": {
    "message": "Description of the error",
    "code": "error_code",
    "request_id": "abc123"
  }
}