Skip to main content

Pika AI - Text to Video

Generate high-quality videos from text descriptions using Pika AI's advanced video generation technology. Supports multiple task types with customizable aspect ratios, resolutions, and durations for flexible video creation.

Endpoint

Request Headers

FieldValue
API-KEY<api-key>
Content-Typeapplication/json

Request Parameters

Field NameTypeExampleDescriptionRequired
typestringTEXT_TO_VIDEOFeature identifier✔️
modelstringpikaAI model to use✔️
conversationIdstringTEXT_TO_VIDEOConversation context✔️
promptObject.task_typestringpika-v2.2Task type variant (see available task types below)✔️
promptObject.promptstringgentle waves movingText description of the video to generate✔️
promptObject.negative_promptstringblurry, low qualityWhat not to include in the video
promptObject.aspect_ratiostring16:9Video aspect ratio
promptObject.resolutionstring720pVideo resolution (720p or 1080p)
promptObject.durationnumber5Video duration in seconds (5 or 10)
promptObject.seednumber12345Random seed for reproducible results

Available Task Types

Standard Text-to-Video:

  • pika-v2-turbo - Fast generation, good quality
  • pika-v2.1 - Advanced generation with improved quality
  • pika-v2.2 - Premium quality with dynamic pricing based on duration and resolution

Task Type Requirements

All Standard T2V (pika-v2-turbo, pika-v2.1, pika-v2.2):

  • prompt (required) - Video description
  • task_type (required) - Task type variant
  • negative_prompt (optional) - What to avoid
  • aspect_ratio (optional) - Video aspect ratio
  • resolution (optional) - 720p or 1080p (default: 720p)
  • duration (optional) - 5 or 10 seconds (default: 5)
  • seed (optional) - Random seed for reproducibility

Supported Aspect Ratios

  • 16:9 - Widescreen format (default)
  • 9:16 - Vertical/mobile format
  • 1:1 - Square format
  • 4:5 - Portrait format
  • 5:4 - Landscape format
  • 3:2 - Standard photo format
  • 2:3 - Portrait photo format

Supported Resolutions

  • 720p - Standard definition (default)
  • 1080p - High definition

Supported Durations

  • 5 - 5 seconds (default)
  • 10 - 10 seconds

Note: For pika-v2.2, pricing varies based on duration and resolution combination.

Code Examples

curl --location 'https://api.1min.ai/api/features' \
--header 'API-KEY: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"type": "TEXT_TO_VIDEO",
"model": "pika",
"conversationId": "TEXT_TO_VIDEO",
"promptObject": {
"task_type": "pika-v2.2",
"prompt": "gentle waves moving on a peaceful beach at sunset",
"negative_prompt": "blurry, low quality, people",
"aspect_ratio": "16:9",
"resolution": "720p",
"duration": 5
}
}'

Interactive Playground

API Playground

https://api.1min.ai/api/features
Choose the Pika task type variant
Text description of the video you want to generate
Video aspect ratio
Video output resolution
Video duration in seconds
Describe elements you want to avoid in the generated video
Random seed for reproducible results

Generated cURL Command:

curl -X POST "https://api.1min.ai/api/features" \
-H "API-KEY: <your-api-key>" \
-H "Content-Type: application/json" \
-d '{
"type": "TEXT_TO_VIDEO",
"model": "pika",
"conversationId": "TEXT_TO_VIDEO",
"promptObject": {
"task_type": "pika-v2.2",
"prompt": "gentle waves moving on a peaceful beach at sunset",
"negative_prompt": "blurry, low quality, people",
"aspect_ratio": "16:9",
"resolution": "720p",
"duration": 5
}
}'

Response

{
"aiRecord": {
"uuid": "73ae328e-9fa2-492a-be60-7b9b98909471",
"userId": "c937fbcc-fa8f-4565-a440-c4d87f56fcb2",
"teamId": "a4e176b2-dabb-451e-9c58-62b451fa9630",
"model": "pika",
"type": "TEXT_TO_VIDEO",
"status": "SUCCESS",
"createdAt": "2025-12-22T11:17:44.499Z",
"aiRecordDetail": {
"promptObject": {
"task_type": "pika-v2.2",
"prompt": "gentle waves moving on a peaceful beach at sunset",
"negative_prompt": "blurry, low quality, people",
"aspect_ratio": "16:9",
"resolution": "720p",
"duration": 5
},
"resultObject": [
"development/videos/2025_12_22_19_17_44_499_123456.mp4"
]
},
"temporaryUrl": "https://s3.us-east-1.amazonaws.com/asset.1min.ai/development/videos/2025_12_22_19_17_44_499_123456.mp4?X-Amz-Algorithm=..."
}
}

Pricing

Credit usage varies by task type, duration, and resolution:

  • pika-v2-turbo: 600,000 credits per video
  • pika-v2.1: 1,200,000 credits per video
  • pika-v2.2: Dynamic pricing
    • 5s @720p: 600,000 credits
    • 5s @1080p: 1,350,000 credits
    • 10s @720p: 1,200,000 credits
    • 10s @1080p: 2,700,000 credits