{
  "info": {
    "name": "AutoFeed Video API",
    "description": "Generate short-form videos from your own backend. A create is accepted and charged in about 300 ms and answered 202; the render runs in the background. Collect the result from the completion webhook (recommended) or by polling.\n\n**Keys are server-side only.** Never ship an API key to a browser or an app. Queue your own users in your backend and call the API from there: every limit below is per AutoFeed account, shared by all of its keys.\n\n**Billing.** The API is included with Ultimate and is prepaid: each create spends credits from the same balance as the dashboard and autoposting, at the same price. A balance short of the cost is a 402 INSUFFICIENT_CREDITS that charges nothing and links to credit packs (topUpUrl) and bigger Ultimate sizes (upgradeUrl). A failed generation refunds its credits automatically.\n\n**Media expires.** Rendered files are deleted 14 days after they are made. Copy each one to your own storage when its webhook arrives.\n\n**Limits** rise with the Ultimate size (windows are 60 s):\n\n| Ultimate size | creates/min | reads/min | in flight |\n|---|---|---|---|\n| 180k credits/month | 20 | 120 | 10 |\n| 500k credits/month | 40 | 240 | 25 |\n| 1M credits/month | 60 | 360 | 50 |\n| 2M credits/month | 100 | 600 | 100 |\n\n\"In flight\" counts generations accepted and not yet finished. Over it, a create is 429 QUEUE_FULL with Retry-After and nothing charged. A 429 CAPACITY means every API slot across all customers is busy; retry later. Every response carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset.\n\n## Setup\n\n1. Create a key at Dashboard -> API Keys (Ultimate plan).\n\n2. Paste it into the `apiKey` collection variable. Keep it out of shared workspaces: set it as the current value only.\n\n3. Send \"Get account\" to check the key, then any \"Create\" request. Each create saves its id in `videoId` for \"Get a video\".\n\nGuide: https://www.autofeed.ai/docs/api\n\nOpenAPI 3.1 spec: https://www.autofeed.ai/openapi-v1.json",
    "version": "1.0.0",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{apiKey}}",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://www.autofeed.ai/api/v1",
      "type": "string"
    },
    {
      "key": "apiKey",
      "value": "",
      "type": "string"
    },
    {
      "key": "videoId",
      "value": "",
      "type": "string"
    }
  ],
  "item": [
    {
      "name": "Account",
      "item": [
        {
          "name": "Get account",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/me",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "me"
              ]
            },
            "description": "Credits, plan, limits and in-flight count for this key.\n\nNot gated on API access, so a key on a plan without it can still read apiAccess: false. Counts against the read limit."
          },
          "response": []
        },
        {
          "name": "List video types and prices",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/types",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "types"
              ]
            },
            "description": "Every video type with its input schema, an example and prices.\n\nThe same catalog this spec is built from: input JSON Schemas, a valid example per type with its price, other priced inputs, and every AI video model with the price of each resolution/duration. Not gated on API access. Counts against the read limit."
          },
          "response": []
        }
      ]
    },
    {
      "name": "Create a video",
      "description": "One request per video type, each with an input the API accepts and its price. Credits are charged on the 202 and refunded automatically if the render fails.",
      "item": [
        {
          "name": "Create AI Slideshow (1,000 credits)",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "if (pm.response.code === 202) {",
                  "  pm.collectionVariables.set('videoId', pm.response.json().id);",
                  "}"
                ]
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"type\": \"ai_slideshow\",\n  \"input\": {\n    \"category\": \"Write Your Own Story\",\n    \"topic\": \"Three habits that quietly double your focus\",\n    \"duration\": \"15 to 30 seconds\",\n    \"format\": \"9:16\"\n  },\n  \"webhookUrl\": \"https://example.com/webhooks/autofeed\",\n  \"idempotencyKey\": \"{{$guid}}\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{baseUrl}}/videos",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "videos"
              ]
            },
            "description": "A topic in, a narrated slideshow of AI images with word-timed captions out.\n\nPrice rises with duration, and much more with animatedImages, which turns every image into a short AI clip and adds several minutes of render time.\n\nThis example costs 1,000 credits, charged on the 202. Replace webhookUrl with your endpoint or delete it and poll \"Get a video\". idempotencyKey is a fresh {{$guid}} per send; reuse a key to retry safely."
          },
          "response": []
        },
        {
          "name": "Create Reddit Stories (1,000 credits)",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "if (pm.response.code === 202) {",
                  "  pm.collectionVariables.set('videoId', pm.response.json().id);",
                  "}"
                ]
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"type\": \"reddit_stories\",\n  \"input\": {\n    \"subreddit\": \"AskReddit\",\n    \"commentsCount\": 3,\n    \"backgroundCategory\": \"Minecraft\"\n  },\n  \"webhookUrl\": \"https://example.com/webhooks/autofeed\",\n  \"idempotencyKey\": \"{{$guid}}\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{baseUrl}}/videos",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "videos"
              ]
            },
            "description": "A subreddit style in, an original narrated story over gameplay footage out.\n\nAlways vertical (9:16): there is no format, captionSize or captionPosition.\n\nThe background clip is drawn server-side from the category's pool and cannot be chosen.\n\nThis example costs 1,000 credits, charged on the 202. Replace webhookUrl with your endpoint or delete it and poll \"Get a video\". idempotencyKey is a fresh {{$guid}} per send; reuse a key to retry safely."
          },
          "response": []
        },
        {
          "name": "Create Would You Rather (1,000 credits)",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "if (pm.response.code === 202) {",
                  "  pm.collectionVariables.set('videoId', pm.response.json().id);",
                  "}"
                ]
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"type\": \"would_you_rather\",\n  \"input\": {\n    \"topic\": \"Superpowers\",\n    \"numberOfComparisons\": 6\n  },\n  \"webhookUrl\": \"https://example.com/webhooks/autofeed\",\n  \"idempotencyKey\": \"{{$guid}}\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{baseUrl}}/videos",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "videos"
              ]
            },
            "description": "A topic in, a voiced \"would you rather\" video with an AI image per option out.\n\nThe price does not change with numberOfComparisons.\n\nThis example costs 1,000 credits, charged on the 202. Replace webhookUrl with your endpoint or delete it and poll \"Get a video\". idempotencyKey is a fresh {{$guid}} per send; reuse a key to retry safely."
          },
          "response": []
        },
        {
          "name": "Create Pick One (1,000 credits)",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "if (pm.response.code === 202) {",
                  "  pm.collectionVariables.set('videoId', pm.response.json().id);",
                  "}"
                ]
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"type\": \"pick_one\",\n  \"input\": {\n    \"topic\": \"Pick a dream house\",\n    \"numberOfImages\": 5\n  },\n  \"webhookUrl\": \"https://example.com/webhooks/autofeed\",\n  \"idempotencyKey\": \"{{$guid}}\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{baseUrl}}/videos",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "videos"
              ]
            },
            "description": "A topic in, a \"pick one\" grid video of AI images out. No narration.\n\nThere is no voice: Pick One has no narration.\n\nPrice rises with numberOfImages beyond the included ones, and per image when animatedImages is on.\n\nThis example costs 1,000 credits, charged on the 202. Replace webhookUrl with your endpoint or delete it and poll \"Get a video\". idempotencyKey is a fresh {{$guid}} per send; reuse a key to retry safely."
          },
          "response": []
        },
        {
          "name": "Create Fake Text (1,000 credits)",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "if (pm.response.code === 202) {",
                  "  pm.collectionVariables.set('videoId', pm.response.json().id);",
                  "}"
                ]
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"type\": \"fake_text\",\n  \"input\": {\n    \"topic\": \"My roommate ate my birthday cake\",\n    \"theme\": \"dark\"\n  },\n  \"webhookUrl\": \"https://example.com/webhooks/autofeed\",\n  \"idempotencyKey\": \"{{$guid}}\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{baseUrl}}/videos",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "videos"
              ]
            },
            "description": "A topic in, a voiced text-message conversation video out.\n\nTwo voices: voiceThem (left, grey) and voiceMe (right, blue). The singular \"voice\" field is rejected.\n\nThe price does not change with numberOfMessages.\n\nThis example costs 1,000 credits, charged on the 202. Replace webhookUrl with your endpoint or delete it and poll \"Get a video\". idempotencyKey is a fresh {{$guid}} per send; reuse a key to retry safely."
          },
          "response": []
        },
        {
          "name": "Create News Reel (1,000 credits)",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "if (pm.response.code === 202) {",
                  "  pm.collectionVariables.set('videoId', pm.response.json().id);",
                  "}"
                ]
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"type\": \"news_reel\",\n  \"input\": {\n    \"topic\": \"The biggest celebrity moments of the week\",\n    \"layout\": \"tabloid\",\n    \"tone\": \"gossip\",\n    \"brandName\": \"Daily Buzz\",\n    \"kicker\": \"EXCLUSIVE\"\n  },\n  \"webhookUrl\": \"https://example.com/webhooks/autofeed\",\n  \"idempotencyKey\": \"{{$guid}}\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{baseUrl}}/videos",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "videos"
              ]
            },
            "description": "A news topic or your own article in, a reel of real photos with a headline card or tabloid cover out.\n\nWithout sourceText the latest story on the topic is researched on the web for you; with it, no search runs and every fact and quote comes from your text.\n\nPhotos are real photos found per beat (the news articles, Wikipedia and Wikimedia Commons), checked to show the person or thing the beat is about, and credited on screen.\n\nvoice \"none\" renders a music-only reel with no captions.\n\nAlways vertical (9:16): there is no format.\n\nThe price does not change with targetSeconds.\n\nThis example costs 1,000 credits, charged on the 202. Replace webhookUrl with your endpoint or delete it and poll \"Get a video\". idempotencyKey is a fresh {{$guid}} per send; reuse a key to retry safely."
          },
          "response": []
        },
        {
          "name": "Create UGC Ads (1,000 credits)",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "if (pm.response.code === 202) {",
                  "  pm.collectionVariables.set('videoId', pm.response.json().id);",
                  "}"
                ]
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"type\": \"ugc\",\n  \"input\": {\n    \"hook\": \"I tried this for a week and I am never going back\",\n    \"demoSrc\": \"\"\n  },\n  \"webhookUrl\": \"https://example.com/webhooks/autofeed\",\n  \"idempotencyKey\": \"{{$guid}}\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{baseUrl}}/videos",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "videos"
              ]
            },
            "description": "A hook line in, an avatar reaction clip followed by your product demo out.\n\nAlways 1080x1920: there is no format.\n\ndemoSrc is fetched by the renderer, so it must be a public https URL. Leave it empty for a reaction-only clip.\n\nNo script writing and no voiceover, so this is the fastest type.\n\nThis example costs 1,000 credits, charged on the 202. Replace webhookUrl with your endpoint or delete it and poll \"Get a video\". idempotencyKey is a fresh {{$guid}} per send; reuse a key to retry safely."
          },
          "response": []
        },
        {
          "name": "Create AI Video (2,400 credits)",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "if (pm.response.code === 202) {",
                  "  pm.collectionVariables.set('videoId', pm.response.json().id);",
                  "}"
                ]
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"type\": \"ai_video\",\n  \"input\": {\n    \"model\": \"Google Veo 3.1 Fast\",\n    \"mode\": \"text_to_video\",\n    \"textPrompt\": \"A golden retriever surfing a wave at sunset, cinematic\",\n    \"duration\": 4,\n    \"resolution\": \"720p\",\n    \"format\": \"9:16\"\n  },\n  \"webhookUrl\": \"https://example.com/webhooks/autofeed\",\n  \"idempotencyKey\": \"{{$guid}}\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{baseUrl}}/videos",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "videos"
              ]
            },
            "description": "A prompt (and optionally a source image, or a video to continue) in, a clip from a text-to-video or image-to-video model out.\n\nduration, resolution and format must each be in the chosen model's own lists. Not every resolution is sold at every duration. GET /v1/types and the table in the spec list every combination with its price.\n\nimageUrl is required for image_to_video and rejected for text_to_video. It is fetched by the model host, so it must be a public https URL.\n\nextend_video continues your own video: send videoUrl (a public https URL, a video of up to 30 seconds and 100 MB) and no imageUrl or format. The new clip starts from its last frame, its shape follows the video, and the result is your video followed by the new clip. Priced as image_to_video.\n\nThis example costs 2,400 credits, charged on the 202. Replace webhookUrl with your endpoint or delete it and poll \"Get a video\". idempotencyKey is a fresh {{$guid}} per send; reuse a key to retry safely."
          },
          "response": []
        },
        {
          "name": "Create YouTube Clips (6,500 credits)",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "if (pm.response.code === 202) {",
                  "  pm.collectionVariables.set('videoId', pm.response.json().id);",
                  "}"
                ]
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"type\": \"yt_clips\",\n  \"input\": {\n    \"youtubeUrl\": \"https://www.youtube.com/watch?v=dQw4w9WgXcQ\",\n    \"clipCount\": 5\n  },\n  \"webhookUrl\": \"https://example.com/webhooks/autofeed\",\n  \"idempotencyKey\": \"{{$guid}}\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{baseUrl}}/videos",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "videos"
              ]
            },
            "description": "A YouTube URL in, several captioned vertical clips cut from it out.\n\nReturns several videos: read clipUrls. url is always null for this type.\n\nPriced for a fixed-length source video plus a per-clip charge, whatever the real length; the price quoted at accept is final.\n\nThis example costs 6,500 credits, charged on the 202. Replace webhookUrl with your endpoint or delete it and poll \"Get a video\". idempotencyKey is a fresh {{$guid}} per send; reuse a key to retry safely."
          },
          "response": []
        },
        {
          "name": "Create AI Image (135 credits)",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "if (pm.response.code === 202) {",
                  "  pm.collectionVariables.set('videoId', pm.response.json().id);",
                  "}"
                ]
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"type\": \"ai_image\",\n  \"input\": {\n    \"model\": \"nano-banana-2-1\",\n    \"prompt\": \"A cozy coffee shop on a rainy evening, warm light, photoreal\",\n    \"ratio\": \"9:16\"\n  },\n  \"webhookUrl\": \"https://example.com/webhooks/autofeed\",\n  \"idempotencyKey\": \"{{$guid}}\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{baseUrl}}/videos",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "videos"
              ]
            },
            "description": "A prompt in, one image from an AI image model (Nano Banana, GPT Image, FLUX, Seedream and more) out.\n\nOne generation is one image, at url. Send several requests for several images.\n\nratio and quality must be in the chosen model's own lists; each quality has its own price. GET /v1/types lists every model in aiImageModels.\n\nA model may refuse a prompt under its content rules; the generation then fails and is refunded.\n\nThis example costs 135 credits, charged on the 202. Replace webhookUrl with your endpoint or delete it and poll \"Get a video\". idempotencyKey is a fresh {{$guid}} per send; reuse a key to retry safely."
          },
          "response": []
        }
      ]
    },
    {
      "name": "Read videos",
      "item": [
        {
          "name": "Get a video",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/videos/{{videoId}}",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "videos",
                "{{videoId}}"
              ]
            },
            "description": "Read one generation.\n\nPoll this if you did not send a webhookUrl. Another account’s id is a 404, exactly like one that does not exist."
          },
          "response": []
        },
        {
          "name": "List videos",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/videos?limit=20",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "videos"
              ],
              "query": [
                {
                  "key": "limit",
                  "value": "20"
                },
                {
                  "key": "type",
                  "value": "ai_slideshow",
                  "disabled": true,
                  "description": "Filter by video type."
                },
                {
                  "key": "status",
                  "value": "completed",
                  "disabled": true,
                  "description": "processing, completed or failed."
                },
                {
                  "key": "cursor",
                  "value": "",
                  "disabled": true,
                  "description": "nextCursor from the previous page, verbatim."
                }
              ]
            },
            "description": "List generations, newest first, or read many by id.\n\nTwo forms. With ids, a batch status read of up to 50 generations for the price of one read; it takes no other parameter. Otherwise a page of this account's generations, newest first, filtered by type and status."
          },
          "response": []
        },
        {
          "name": "Get many videos by id",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/videos?ids={{videoId}}",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "videos"
              ],
              "query": [
                {
                  "key": "ids",
                  "value": "{{videoId}}"
                }
              ]
            },
            "description": "Batch status read: comma-separated generation ids, for the price of one read. Takes no other parameter."
          },
          "response": []
        }
      ]
    }
  ]
}
