{
  "info": {
    "name": "OmnAPI Public API",
    "description": "Producer, Suno, MV Fast, Subtitle Sync, and task polling requests. Set collection variables baseUrl and apiKey before running.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://api.omnapi.com"
    },
    {
      "key": "apiKey",
      "value": "sk_live_..."
    },
    {
      "key": "taskId",
      "value": "task_..."
    },
    {
      "key": "mvId",
      "value": "mv_..."
    },
    {
      "key": "subtitleTaskId",
      "value": "task_..."
    }
  ],
  "item": [
    {
      "name": "Producer",
      "item": [
        {
          "name": "Generate Image",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "x-api-key",
                "value": "{{apiKey}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": "{{baseUrl}}/api/v1/producer/generate/image",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"prompt\": \"cinematic synthwave album cover, neon skyline\"\n}"
            }
          }
        },
        {
          "name": "Compose Music",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "x-api-key",
                "value": "{{apiKey}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": "{{baseUrl}}/api/v1/producer/generate/music/compose",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"soundPrompt\": \"warm indie pop, jangly guitars, brushed drums\",\n  \"lyrics\": \"[Verse]\\nThe lighthouse blinks once for you...\",\n  \"title\": \"Coastal Goodbye\",\n  \"length\": 120\n}"
            }
          }
        }
      ]
    },
    {
      "name": "Suno",
      "item": [
        {
          "name": "Generate Song",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "x-api-key",
                "value": "{{apiKey}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": "{{baseUrl}}/api/v1/suno/songs",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"mode\": \"simple\",\n  \"prompt\": \"upbeat city pop, bright guitars, summer night drive\",\n  \"model\": \"chirp-fenix\"\n}"
            }
          }
        },
        {
          "name": "Export WAV",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "x-api-key",
                "value": "{{apiKey}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": "{{baseUrl}}/api/v1/suno/clips/:clipId/export",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"format\": \"wav\"\n}"
            }
          }
        }
      ]
    },
    {
      "name": "MV Fast",
      "item": [
        {
          "name": "Quote",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "x-api-key",
                "value": "{{apiKey}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": "{{baseUrl}}/api/v1/mv/quote",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"mode\": \"fast\",\n  \"durationSec\": 60,\n  \"resolution\": \"720p\",\n  \"quality\": \"high\",\n  \"lipSync\": false,\n  \"visualBoardStrategy\": \"direct_scene_images\",\n  \"visualBoardImageProvider\": \"gpt-image-2\",\n  \"visualBoardImageCount\": 7,\n  \"subtitleMode\": \"custom\"\n}"
            }
          }
        },
        {
          "name": "Preflight",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "x-api-key",
                "value": "{{apiKey}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": "{{baseUrl}}/api/v1/mv/preflight",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"mode\": \"fast\",\n  \"source\": {\n    \"type\": \"audio\",\n    \"audioUrl\": \"https://example.com/song.mp3\",\n    \"durationSec\": 60\n  },\n  \"prompt\": \"cinematic night market performance video\",\n  \"resolution\": \"720p\",\n  \"aspectRatio\": \"9:16\",\n  \"lipSync\": true,\n  \"characterImage\": \"https://example.com/front-face.png\",\n  \"generation\": {\n    \"quality\": \"high\",\n    \"motionPreset\": \"lip_sync_closeup\",\n    \"visualBoard\": {\n      \"imageProvider\": \"gpt-image-2\"\n    },\n    \"subtitleMode\": \"custom\"\n  },\n  \"subtitles\": true,\n  \"subtitle\": {\n    \"mode\": \"auto\",\n    \"language\": \"auto\",\n    \"maxCostUsdPerMin\": 0.05,\n    \"fallback\": \"continue_without_subtitles\"\n  }\n}"
            }
          }
        },
        {
          "name": "Create",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "x-api-key",
                "value": "{{apiKey}}"
              },
              {
                "key": "Idempotency-Key",
                "value": "mv-fast-demo-001"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": "{{baseUrl}}/api/v1/mv",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"mode\": \"fast\",\n  \"source\": {\n    \"type\": \"audio\",\n    \"audioUrl\": \"https://example.com/song.mp3\",\n    \"durationSec\": 60\n  },\n  \"prompt\": \"cinematic night market performance video\",\n  \"resolution\": \"720p\",\n  \"aspectRatio\": \"9:16\",\n  \"lipSync\": true,\n  \"characterImage\": \"https://example.com/front-face.png\",\n  \"generation\": {\n    \"quality\": \"high\",\n    \"motionPreset\": \"lip_sync_closeup\",\n    \"visualBoard\": {\n      \"imageProvider\": \"gpt-image-2\"\n    },\n    \"subtitleMode\": \"custom\"\n  },\n  \"subtitles\": true,\n  \"subtitle\": {\n    \"mode\": \"auto\",\n    \"language\": \"auto\",\n    \"maxCostUsdPerMin\": 0.05,\n    \"fallback\": \"continue_without_subtitles\"\n  }\n}"
            }
          }
        },
        {
          "name": "Get MV",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "x-api-key",
                "value": "{{apiKey}}"
              }
            ],
            "url": "{{baseUrl}}/api/v1/mv/{{mvId}}"
          }
        },
        {
          "name": "Quote Scene Edit",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "x-api-key",
                "value": "{{apiKey}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": "{{baseUrl}}/api/v1/mv/quote",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"mode\": \"fast\",\n  \"step\": \"scene-edit\",\n  \"mvId\": \"{{mvId}}\",\n  \"sceneIndex\": 2\n}"
            }
          }
        },
        {
          "name": "Edit Scene",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "x-api-key",
                "value": "{{apiKey}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": "{{baseUrl}}/api/v1/mv/{{mvId}}/scenes/2/render",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"expectedVersion\": 4,\n  \"prompt\": \"close-up singer shot, warm backlight, smoother camera motion\"\n}"
            }
          }
        },
        {
          "name": "Quote Recompose",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "x-api-key",
                "value": "{{apiKey}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": "{{baseUrl}}/api/v1/mv/quote",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"mode\": \"fast\",\n  \"step\": \"compose\",\n  \"mvId\": \"{{mvId}}\"\n}"
            }
          }
        },
        {
          "name": "Finalize / Recompose",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "x-api-key",
                "value": "{{apiKey}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": "{{baseUrl}}/api/v1/mv/{{mvId}}/finalize",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"expectedVersion\": 5\n}"
            }
          }
        },
        {
          "name": "Get Final URL",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "x-api-key",
                "value": "{{apiKey}}"
              }
            ],
            "url": "{{baseUrl}}/api/v1/mv/{{mvId}}/final"
          }
        }
      ]
    },
    {
      "name": "Subtitles",
      "item": [
        {
          "name": "Quote Subtitle Extraction",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "x-api-key",
                "value": "{{apiKey}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": "{{baseUrl}}/api/v1/subtitles/quote",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"source\": {\n    \"type\": \"audio\",\n    \"audioUrl\": \"https://example.com/song.mp3\"\n  },\n  \"budget\": {\n    \"maxCostUsdPerMin\": 0.05\n  }\n}"
            }
          }
        },
        {
          "name": "Create Subtitle Task",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "x-api-key",
                "value": "{{apiKey}}"
              },
              {
                "key": "Idempotency-Key",
                "value": "subtitle-demo-001"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": "{{baseUrl}}/api/v1/subtitles",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"mode\": \"extract\",\n  \"source\": {\n    \"type\": \"audio\",\n    \"audioUrl\": \"https://example.com/song.mp3\"\n  },\n  \"language\": \"auto\",\n  \"outputs\": [\"srt\", \"json\", \"vtt\", \"lrc\"],\n  \"budget\": {\n    \"maxCostUsdPerMin\": 0.05\n  }\n}"
            }
          }
        },
        {
          "name": "Get Subtitle Task",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "x-api-key",
                "value": "{{apiKey}}"
              }
            ],
            "url": "{{baseUrl}}/api/v1/subtitles/{{subtitleTaskId}}"
          }
        }
      ]
    },
    {
      "name": "Tasks",
      "item": [
        {
          "name": "Get Task",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "x-api-key",
                "value": "{{apiKey}}"
              }
            ],
            "url": "{{baseUrl}}/api/v1/tasks/{{taskId}}"
          }
        }
      ]
    }
  ]
}
