Pictory
  1. Bulk Video Generation APIs
Pictory
  • API Flows
    • Text to Video API Flow
      • Step 1: Authenticate
      • Step 2: Generate Video Preview from Text
      • Step 3: GET Video Preview & Default Settings
      • Step 4: Render Video
      • Step 4: Render PUT
      • Step 5: GET Video Download URL
    • Video Editing API Flow
      • Step 1: Authenticate
      • Step 2: Obtain Pictory Upload URL
      • Step 3: Upload video to Pictory
      • Step 4: v2 Transcribe Uploaded Video
      • Step 5: GET Default Transcription & Highlights Settings
      • Step 6: Render Video
      • Step 7: GET Video Download URL
    • Bulk Video Generation APIs
      • Step 1: Authenticate
        POST
      • Step2: Upload Project
        POST
      • Step3: Update Variables
        POST
      • Step 4: Get Video Preview
        GET
      • Step 5: Render Video
        PUT
      • Step 6: GET Video Download URL
        GET
  • API Reference
    • /v1/oauth2/token
      POST
    • /v1/video/storyboard
      POST
    • /v1/job/{job_id}
      GET
    • /v1/media/generateUrl
      POST
    • Upload video to Pictory
      PUT
    • /v2/transcription (Transcript & Highlights)
      POST
    • /v2 GET Default Transcription & Highlights Settings
      GET
    • /v1/transcription
      POST
    • /v1 GET Default Transcription Settings
      GET
    • /v1/transcription/highlights
      POST
    • /v2/transcription/highlights
      POST
    • /v1 GET Default Highlight Settings
      GET
    • /v1/video/storyboard/fonts
      GET
    • Create Template
      POST
    • Update Template
      PUT
    • Get Templates
      GET
    • Create Template Video
      POST
    • Get Template By Id
      GET
    • Delete Template By Id
      DELETE
    • /v1/video/render
      POST
    • v1/media/search
      GET
  1. Bulk Video Generation APIs

Step3: Update Variables

Develop Env
https://dev.your-api-server.com
Develop Env
https://dev.your-api-server.com
POST
/v1/video/from-template
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://dev.your-api-server.com/v1/video/from-template' \
--header 'X-Pictory-User-Id: {{X-Pictory-User-Id}}' \
--header 'Authorization: {{access_token}}' \
--header 'Content-Type: text/plain' \
--data-raw '{
    "templateId": "{{templateId}}",
    "scenes": [
        {
            "sceneId": "20240618070751211ijVMSfbuojRA4ZP",
            "subtitles": [
                {
                    "text": "Welcome Mohit"
                }
            ],
            "backgroundVisual": {
                "visualUrl": "https://media.gettyimages.com/id/1460325253/video/handshake-congratulations-and-business-people-meeting-welcome-or-thank-you-for-success.mp4?b=1&s=mp4-640x640-gi&k=20&c=yAbN8GJxxWDVsj-yX-iV4vG_k4-_7IJdBA94D2M30T0=",
                "type": "video"
            }
        }],
     "variables": {
        "customer_name": "Marc Edisson",
        "payment_date": "26-May-2024",
        "loan_account_number": "0977699670 ",
        "customer_support_number": "180007343922323",
        "support_email_id": "support@pictory.ai"
    }
}'
Response Response Example
{
    "success": true,
    "data": {
        "jobId": "b1ecb167-91e1-42ac-87c7-879122125257"
    }
}

Request

Header Params
X-Pictory-User-Id
string 
required
Example:
{{X-Pictory-User-Id}}
Authorization
string 
required
Example:
{{access_token}}
Body Params text/plain
Examples

Responses

🟢200Step3: Update Variables
application/json
Body
success
boolean 
required
data
object 
required
jobId
string 
required
Modified at 2024-07-10 08:41:40
Previous
Step2: Upload Project
Next
Step 4: Get Video Preview
Built with