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
| Field | Value |
|---|---|
| API-KEY | <api-key> |
| Content-Type | application/json |
Request Parameters
| Field Name | Type | Example | Description | Required |
|---|---|---|---|---|
| type | string | TEXT_TO_VIDEO | Feature identifier | ✔️ |
| model | string | pika | AI model to use | ✔️ |
| conversationId | string | TEXT_TO_VIDEO | Conversation context | ✔️ |
| promptObject.task_type | string | pika-v2.2 | Task type variant (see available task types below) | ✔️ |
| promptObject.prompt | string | gentle waves moving | Text description of the video to generate | ✔️ |
| promptObject.negative_prompt | string | blurry, low quality | What not to include in the video | ❌ |
| promptObject.aspect_ratio | string | 16:9 | Video aspect ratio | ❌ |
| promptObject.resolution | string | 720p | Video resolution (720p or 1080p) | ❌ |
| promptObject.duration | number | 5 | Video duration in seconds (5 or 10) | ❌ |
| promptObject.seed | number | 12345 | Random seed for reproducible results | ❌ |
Available Task Types
Standard Text-to-Video:
pika-v2-turbo- Fast generation, good qualitypika-v2.1- Advanced generation with improved qualitypika-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 descriptiontask_type(required) - Task type variantnegative_prompt(optional) - What to avoidaspect_ratio(optional) - Video aspect ratioresolution(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 format1:1- Square format4:5- Portrait format5:4- Landscape format3:2- Standard photo format2: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
- JavaScript
- Python
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
}
}'
fetch('https://api.1min.ai/api/features', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'API-KEY': 'YOUR_API_KEY'
},
body: JSON.stringify({
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
}
})
})
import requests
url = "https://api.1min.ai/api/features"
headers = {
"Content-Type": "application/json",
"API-KEY": "YOUR_API_KEY"
}
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
}
}
response = requests.post(url, headers=headers, json=data)
Interactive Playground
API Playground
https://api.1min.ai/api/featuresChoose 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