# NativeAds > NativeAds is an AI advertising platform for programmatic creative generation and brand management. This index points AI agents and coding assistants at the developer documentation for the headless REST API and the MCP server. The headless API lets you create and manage brands, extract Brand DNA, upload assets or extract them from a web page, generate images and video, and resize an image to new sizes, or to one size the user frames. It also upscales an image to up to 4 larger sizes, up to 16384 px on the longer side. Authentication is a per-user API key (`nak__.`) sent as a bearer token, or Clerk OAuth for MCP clients. Generation is asynchronous: submit returns a task id, then poll until a terminal status. Call `get_started` first for any ad or social post request (image or video), before asking the user anything, for orientation (plan, whether Brand DNA is available, whether a brand exists, a next action). NativeAds generates the imagery and video; nothing on the developer surface puts a headline, CTA or other text onto a creative. Recommended order for on-brand results: create a brand, then extract and activate Brand DNA (the model of the brand's identity) before generating. Richer sources make Brand DNA stronger, so upload brand assets and brand-guideline PDFs and pass them together with the website URL; if the client cannot upload files, the website URL alone still works. Optionally enhance the prompt and review the enhanced text before generating. Over MCP, Brand DNA is applied by default to both images (`scene_forge`) and video (`image_to_video`) once the brand has an active ready version; send `useBrandDna: false` to turn it off. The exception is a video submitted from the `open_generation_options` panel without its enhance step, whose result reports `useBrandDna: false` with a warning, since Brand DNA reaches a video only through the enhancer. Over REST, images default to on and video defaults to off (send `useBrandDna: true`). Brand DNA needs a plan that includes it: every Brand DNA tool and endpoint, reads included, answers `upgrade_required`/403 otherwise, and `get_started` reports `brandDnaAvailable`. An explicit `useBrandDna: true` below that plan fails; an omitted one just generates without Brand DNA. Poll a task with `get_task` (an action, via `run_read_action`) until `terminal` is true, then read its result with the submit result's `readBack`, the exact call (`resultTool`, plus `resultView` for `show_media` and `show_brand_dna`) (the enhanced prompt is never in the task status; a succeeded `scene_forge` or `image_to_video` task adds `assetIds`, the ids it rendered); `list_recent_tasks` (an action, via `run_read_action`) recovers task ids lost after a disconnect. To get media onto a brand you can upload the bytes, hand over a direct link to the file, or hand over a PAGE url and let the platform scrape and rank the images on it (`extract_assets_from_url` via `run_write_action` -> poll -> `ask_user` with `panel: "url_extraction"` -> `commit_url_extraction_candidates` via `run_write_action`); nothing becomes an asset until you commit; committing an image the brand had already saved returns the existing asset (counted in `alreadyInLibraryCount`) instead of a copy. The renders (`scene_forge`, `image_to_video`) and the Brand DNA build (`create_brand_dna_version`) are actions too, called through `run_write_action`; an interactive (OAuth) client is refused the Brand DNA build until the Brand DNA panel (`ask_user` with `panel: "brand_dna_options"`) has offered it, and a client that shows MCP Apps panels is refused the renders, the resizes and the model's commit too, and uses `open_generation_options`, `open_resize_options` and the extraction gallery instead. API keys are exempt from both. Connection failures are HTTP, not tool errors: 401 = bad/expired credential, 403 = not a machine principal, 429 = rate limit. Brand DNA and enhanced prompts are returned in English only for now. A new video (and a prompt enhancement for one) accepts these models, each with an exact list of lengths in seconds: `optimized` and `seedance-2.5-pro` take 6, 8, 10, 15, 20 or 30; `kling-v4` (Kling 4.0) takes 6, 8, 10, 12, 15, 20 or 30; `seedance-2.0-pro` and `grok-imagine-video` take 6, 8, 10, 12 or 15; `veo-3.1` takes 6 or 8. `kling-v3-omni-pro`, the old Kling id, is still accepted through the REST API and made on Kling 4.0, but is no longer offered over MCP; a group made with it cannot be extended. Any other model (the legacy `veo-3.1-fast`, `kling-v3-pro`, `seedance-1.5-pro`, `pixverse-v6`) or length is refused with 400 / `invalid_argument`. `seedance-2.5-pro` depends on the plan: not on Starter, up to 15 seconds and no reference videos on Pro, up to 30 seconds and 10 reference videos on Ultra; over the plan is 403 / `upgrade_required`, and on a plan without it the MCP default video model is `seedance-2.0-pro`. Video `resolution` is `720p` (the default) on every plan, and Pro and Ultra may also send `1080p`; `1080p` on Starter is 403 / `upgrade_required`. Each video costs 1 to 10 video credits by model, length and resolution: `get_started`'s `choices` lists them on each video model option as `units`, and a call bills them per prompt. `extend_generated_videos_group` reuses the group's model, length, resolution, audio and size, and bills the group's video credits. The MCP server also offers three prompt starters (new video ad, new image ad, set up a brand from a website) that a client shows in its own menu, with argument autocompletion over your brands, the industry taxonomy, and the video models, lengths and aspect ratios the generation tools accept. ## Developers - [Getting Started](https://docs.nativeads.ai/developers/getting-started): Choose REST or MCP and jump to the matching guide. - [MCP Guide](https://docs.nativeads.ai/developers/mcp/guide): MCP endpoint `https://mcp.nativeads.ai/mcp` (Streamable HTTP, POST-only). Standard MCP clients (Claude, Cursor, VS Code, Windsurf, ChatGPT) or custom integrations via API key. - [MCP Tool Catalog](https://docs.nativeads.ai/developers/mcp/tool-catalog): All 18 MCP tools and 42 actions with inputs and annotations (read-only, idempotent, destructive, open-world, async), plus the recommended end-to-end workflow. Actions are not in `tools/list`: find one with `find_actions`, run it with `run_read_action`, `run_write_action` or `run_destructive_action`. A brand's media (renders, assets, backgrounds, logo, resize results) is shown with `show_media` and its Brand DNA with `show_brand_dna`, each taking a `view`; the readers behind them are read actions too, for a lookup that shows the user nothing. `edit_brand_dna` changes a Brand DNA version by merge patch or overwrite. `ask_user` asks the user in a panel (`panel`: `brand_picker`, `brand_dna_options`, `url_extraction`). `generative_resize` resizes one image to many sizes at once, and `download_generative_resize_group` then returns one link to a zip with an image per size, valid for 4 to 8 hours. With exactly one size it also takes a `frame`, the part of the image to show. On a client that shows panels the user picks several sizes or frames one in `open_resize_options`, or starts either from the Resize button under an image in the gallery or in a generation panel's results. `upscale_image` enlarges one image to 1 to 4 larger sizes (a factor of 2, 3 or 4, or a long edge up to 16384 px) and `get_upscale_group` reads them. Every plan includes Upscale; an organization without it is refused with `upgrade_required`. - [REST API Guide](https://docs.nativeads.ai/developers/rest/reference): API keys, base URLs, auth, response envelope, asset upload flow, extracting assets from a page URL, asynchronous poll pattern, and walkthroughs for generating an image, generating video (start-frame, seedance-2.5-pro reference-to-video, and reference images on seedance-2.0-pro (up to 9) and kling-v4 (up to 10) in place of a start frame), Brand DNA, and uploads; the video models a new video accepts and the exact lengths of each (anything else is 400), the Seedance 2.5 plan table, the optional `resolution` (720p on every plan, 1080p on Pro and Ultra) and the video credits each model, length and resolution costs; Scene Forge create accepts transparentBackground (default false) to render the subject alone on a transparent background, each variation a PNG with an alpha channel, not combinable with environmentAssetId; Scene Forge prompt enhancement accepts the same transparentBackground flag (also refused with environmentAssetId) so the enhanced prompt describes the subject alone, with no setting; Scene Forge prompts (blendingPrompt, authoredPrompt, the enhancement originalPrompt and the environment prompt) take up to 10000 characters, so a whole creative brief can be sent; a prompt over 2500 characters is condensed by the pipeline before the image model reads it, the completed scene forge returns the rendered text as blendingPrompt and authoredPrompt keeps what was sent; Scene Forge create accepts adverteyesScoring (default false) to have AdverEyes score that generation; a scored generation takes one Creative Optimization and is refused with 400 USAGE_LIMIT_EXCEEDED when none is left, and GET /organizations/current/feature-usage reports the allowance as addons.creative_optimizations, which resets each billing period. The same feature-usage response returns video_options: the plan's resolutions (default first) and the video credits one video costs on that plan, by model, then resolution, then length in seconds, over only the models and lengths the plan may request. - [Interactive API Reference](https://docs.nativeads.ai/developers/rest/api): Per-endpoint schemas for the headless REST endpoints, rendered from OpenAPI. Raw spec: https://docs.nativeads.ai/openapi/headless.yaml (load into Postman/Insomnia). ## Legal - [Privacy & Data Handling](https://docs.nativeads.ai/developers/legal/privacy-and-terms): How the API handles data, credentials, and asset storage. ## Other documentation - [For Advertisers](https://docs.nativeads.ai/advertisers/overview): Product documentation for the creative-generation capabilities in the NativeAds app.