NativeAds AI Image-to-Video Prompt Enhancements API

The Image-to-Video Prompt Enhancements API from NativeAds AI — 2 operation(s) for image-to-video prompt enhancements.

GitHub OpenAPI

Operations 2

POST /brands/{brandId}/image-to-video-prompt-enhancements Create an image-to-video prompt enhancement preview #
GET /brands/{brandId}/image-to-video-prompt-enhancements/{id} Get image-to-video prompt enhancement status and results #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/nativeads-ai:nativeads-ai-image-to-video-prompt-enhancements-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

nativeads-ai-image-to-video-prompt-enhancements-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: NativeAds Headless Image-to-Video Prompt Enhancements API
  version: 1.0.0
  description: 'The headless REST API for programmatic creative generation. Authenticate with a per-user API key (`Authorization: Bearer nak_...`). This reference lists only the endpoints an API key may call; generation endpoints are asynchronous (submit returns an id, then poll).'
  license:
    name: Commercial
    url: https://www.nativeads.ai/
servers:
- url: https://creative-v1.nativeads.ai/v1
  description: NativeAds API Server
security:
- BearerAuth: []
tags:
- name: Image-to-Video Prompt Enhancements
paths:
  /brands/{brandId}/image-to-video-prompt-enhancements:
    parameters:
    - name: brandId
      in: path
      required: true
      description: The unique identifier of the brand.
      schema:
        type: string
        format: uuid
    post:
      tags:
      - Image-to-Video Prompt Enhancements
      summary: Create an image-to-video prompt enhancement preview
      description: 'Creates a prompt enhancement preview request for image-to-video generation.

        The enhancement workflow will refine the provided prompt using AI, taking into

        account the start frame image, aspect ratio, and target video model, and return

        an optimized version suitable for video generation.

        Every asset ID in the request (startFrameAssetId, endFrameAssetId, intermediateFrameAssetIds, referenceImageAssetIds, referenceVideoAssetIds) must belong to the brand in the path. An asset that belongs to another brand — including another brand in your own organization — is reported as not found (404).

        For seedance-2.5-pro (refs-only), omit startFrameAssetId, endFrameAssetId, and

        intermediateFrameAssetIds (those fields are rejected) and pass

        referenceImageAssetIds and/or referenceVideoAssetIds — at least one reference total.

        Seedance 2.5 depends on the plan, as for video generation, and a request over the caller''s plan is refused with 403: Starter has no Seedance 2.5; Pro allows up to 30 reference images, no reference videos and up to 15 seconds; Ultra allows up to 30 reference images, up to 10 reference videos and up to 30 seconds.

        The model and duration are checked as for a new video: only the models VideoModel lists as accepted for a new video (the old Kling id kling-v3-omni-pro included), each with its exact lengths, and anything else is refused with 400, so a prompt is never enhanced for a video that could not be made.

        seedance-2.0-pro and kling-v4 take either frames (startFrameAssetId with an optional endFrameAssetId, plus up to 8 intermediateFrameAssetIds on kling-v4, more refused with 400) or referenceImageAssetIds (up to 9 for seedance-2.0-pro, up to 10 for kling-v4, on every plan), never both, and reject referenceVideoAssetIds. Every other model requires startFrameAssetId and rejects both reference fields. grok-imagine-video renders from the start frame only and refuses endFrameAssetId with 400.'
      operationId: createImageToVideoPromptEnhancement
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateImageToVideoPromptEnhancementRequest'
            examples:
              startFrame:
                summary: Start-frame models
                value:
                  startFrameAssetId: 550e8400-e29b-41d4-a716-446655440000
                  endFrameAssetId: 660e8400-e29b-41d4-a716-446655440001
                  originalPrompt: The product slowly rotates on a marble countertop with soft natural lighting
                  aspectRatio: '16:9'
                  model: veo-3.1
              seedance25:
                summary: Seedance 2.5 Pro (refs-only)
                value:
                  originalPrompt: orbit the bottle on a marble counter
                  aspectRatio: '16:9'
                  model: seedance-2.5-pro
                  referenceImageAssetIds:
                  - 550e8400-e29b-41d4-a716-446655440000
              seedance20References:
                summary: Seedance 2.0 Pro with reference images
                value:
                  originalPrompt: the bottle rests on a marble counter as the camera pushes in
                  aspectRatio: '16:9'
                  model: seedance-2.0-pro
                  referenceImageAssetIds:
                  - 550e8400-e29b-41d4-a716-446655440000
                  - 660e8400-e29b-41d4-a716-446655440001
      responses:
        '202':
          description: Prompt enhancement request accepted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ImageToVideoPromptEnhancementResponse'
        '400':
          description: Bad Request - Invalid input
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Brand or asset not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /brands/{brandId}/image-to-video-prompt-enhancements/{id}:
    parameters:
    - name: brandId
      in: path
      required: true
      description: The unique identifier of the brand.
      schema:
        type: string
        format: uuid
    - name: id
      in: path
      required: true
      description: The prompt enhancement ID.
      schema:
        type: string
        format: uuid
    get:
      tags:
      - Image-to-Video Prompt Enhancements
      summary: Get image-to-video prompt enhancement status and results
      description: 'Retrieves the status and results of a prompt enhancement request.

        Poll this endpoint until status is ''completed'' or ''failed''.'
      operationId: getImageToVideoPromptEnhancement
      responses:
        '200':
          description: Prompt enhancement details
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ImageToVideoPromptEnhancementResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Prompt enhancement not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    CreateImageToVideoPromptEnhancementRequest:
      type: object
      description: Request to create an image-to-video prompt enhancement preview.
      required:
      - originalPrompt
      - aspectRatio
      - model
      properties:
        startFrameAssetId:
          type: string
          format: uuid
          description: 'ID of the start frame image asset. Required for every model except seedance-2.5-pro, which rejects it (refs-only). seedance-2.0-pro and kling-v4 need it unless referenceImageAssetIds is sent, and reject it alongside references.

            '
          example: 550e8400-e29b-41d4-a716-446655440000
        endFrameAssetId:
          type: string
          format: uuid
          description: ID of the end frame image asset. Optional. Rejected for seedance-2.5-pro, and for seedance-2.0-pro and kling-v4 when referenceImageAssetIds is sent.
          example: 550e8400-e29b-41d4-a716-446655440000
        referenceImageAssetIds:
          type: array
          items:
            type: string
            format: uuid
          maxItems: 30
          description: 'Reference image asset IDs. Taken by seedance-2.5-pro, seedance-2.0-pro and kling-v4, in the order sent (seedance-2.5-pro prompts address them as @Image N). Optional (omit for none). Rejected for every other model. seedance-2.5-pro is refs-only and needs at least one reference total (images and/or videos); maxItems is its absolute ceiling, which Pro and Ultra both allow; Starter has no seedance-2.5-pro (403). seedance-2.0-pro takes up to 9 and kling-v4 up to 10, on every plan, and only without startFrameAssetId and endFrameAssetId: these two models take frames or references, never both. Each must be JPEG or PNG and an image, logo, or environment asset, 30MB or smaller (50MB for kling-v4 and kling-v3-omni-pro). For kling-v4, an image whose dimensions are recorded must also have an aspect ratio (width / height) between 0.4 and 2.5; an image with no recorded dimensions skips that check. Assets generated by NativeAds (scene_forge, environments, generative resize and the rest) report fileType as the bare category ''image'' and are accepted as-is.

            '
        referenceVideoAssetIds:
          type: array
          items:
            type: string
            format: uuid
          maxItems: 10
          description: 'Reference video asset IDs for seedance-2.5-pro (@Video N order). Optional (omit for none). Rejected for every other model, seedance-2.0-pro and kling-v4 included. Video-only 2.5 jobs are allowed, but reference videos are tier-gated: only Ultra takes them, up to maxItems; Starter and Pro get 403. Must be MP4 or QuickTime, 200MB or smaller, 2 to 30 seconds each, 30 seconds combined, 23.8 to 60 FPS. Frame dimensions, when known, must satisfy BOTH of the model''s rules: a pixel count (width x height) between 407696 and 8295044, and an aspect ratio (width / height) between 0.4 and 2.5. They are independent -- 1400x300 is 420000 pixels, inside the band, and is still refused on its 4.67 ratio. No separate per-side rule is enforced: satisfying both of the above confines every side to 404-4554 px. A video whose dimensions were never measured skips both checks rather than being rejected. A video with no measured duration is rejected: conflict while still processing, invalid_argument once complete without one.

            '
        intermediateFrameAssetIds:
          type: array
          items:
            type: string
            format: uuid
          minItems: 1
          maxItems: 8
          description: 'Ordered intermediate frame assets for kling-v4 enhancement. Optional. Fed to the enhancer alongside start/end. Up to 8 at every length, as for generation; more is refused with 400 naming the model sent. Refused with 400 for every other model, optimized included.

            '
        originalPrompt:
          type: string
          minLength: 1
          maxLength: 5000
          description: 'The text prompt to enhance for video generation. The cap depends on the model: 5000 characters for seedance-2.5-pro, kling-v4 and kling-v3-omni-pro, and for optimized where it renders on seedance-2.5-pro (Pro and Ultra); 2500 for every other model. maxLength is the highest cap; the server enforces each model''s own cap and refuses a longer prompt with 400.

            '
          example: The product slowly rotates on a marble countertop with soft natural lighting
        aspectRatio:
          type: string
          enum:
          - '16:9'
          - '9:16'
          - '1:1'
          description: The target aspect ratio for the video. Veo 3.1 has no square render, so on Veo 3.1 a 1:1 request is accepted and the prompt is written for 16:9.
          example: '16:9'
        model:
          allOf:
          - $ref: '#/components/schemas/VideoModel'
          description: The target video generation model.
        duration:
          type: integer
          minimum: 1
          description: Target video duration (s). Lets the enhancer fit the prompt to the video's length. Omitted means the model's default. Must be one of the model's lengths (see VideoModel), or the request is refused with 400.
        enableAudio:
          type: boolean
          default: false
          description: Whether audio is enabled -- controls audio guidance in prompt enhancement. Defaults to false.
        useBrandDna:
          type: boolean
          default: false
          description: Whether to apply Brand DNA to prompt enhancement. Defaults to false. FE sends explicitly based on Brand DNA toggle state.
    ErrorError:
      type: object
      required:
      - code
      - message
      properties:
        code:
          type: string
          example: INVALID_REQUEST
        message:
          type: string
          example: Invalid input data provided
        details:
          description: "Additional error context (optional, can be object or array). Absent on\nmost errors; the message is the only guaranteed human-readable field.\n\nUpload rejections populate it, because a client needs to act on the\nanswer rather than parse it. `POST /v1/assets/initiate-upload` and\n`POST /v1/assets/confirm-upload` return:\n\n- `reason` — `unsupported_declared_type` when the declared MIME type is\n  not accepted, or `unsupported_file_contents` when the uploaded bytes\n  are a different format than declared (an AVIF saved with a `.jpg`\n  name, say). Only confirm-upload can report the second: it is the\n  first point that reads the real bytes.\n- `declaredType` — the MIME type the client sent.\n- `detectedFormat` — the format the bytes actually are, on\n  `unsupported_file_contents` only.\n- `supportedFormats` — every format an upload may be.\n- `retryable` — `false` on both, meaning the same bytes will be\n  rejected again. Clients must not retry these.\n"
          example:
            reason: unsupported_file_contents
            declaredType: image/jpeg
            detectedFormat: AVIF
            retryable: false
            supportedFormats:
            - DOC
            - DOCX
            - GIF
            - JPEG
            - MP4
            - PDF
            - PNG
            - QuickTime
            - TIFF
    VideoModel:
      type: string
      enum:
      - veo-3.1
      - veo-3.1-fast
      - kling-v3-pro
      - kling-v3-omni-pro
      - kling-v4
      - grok-imagine-video
      - seedance-1.5-pro
      - seedance-2.0-pro
      - seedance-2.5-pro
      - pixverse-v6
      - optimized
      description: "The AI model to use for video generation.\nA new video (generate, extend, or a prompt enhancement) accepts only these, each with\nexactly the lengths listed, in seconds. Any other model or length is refused with 400.\n- optimized: renders on the plan's default model, today seedance-2.0-pro on Starter and\n  seedance-2.5-pro on Pro and Ultra, and takes that model's inputs, lengths and price. On Pro\n  it takes at most 15 reference images. It takes no intermediate frames. Responses keep\n  showing optimized.\n- seedance-2.5-pro: Seedance 2.5 Pro (refs-only). 6, 8, 10, 15, 20 or 30, within the plan's\n  Seedance 2.5 limits: not on Starter, up to 15 on Pro, up to 30 on Ultra.\n- seedance-2.0-pro: Seedance 2.0 Pro (default). A start frame (optional end frame) or up to 9 reference images. 6, 8, 10, 12 or 15.\n- kling-v4: Kling 4.0. A start frame (optional end frame, 0 to 8 intermediate frames at every\n  length) or up to 10 reference images. 6, 8, 10, 12, 15, 20 or 30, each in one call, with or\n  without intermediate frames. With intermediate frames it takes exactly one prompt.\n- kling-v3-omni-pro: the old Kling id, which videos made on Kling 3.0 keep. Still accepted: a\n  new video sent with it is made on Kling 4.0 with kling-v4's rules and keeps the id it was\n  sent with. Extending a group with this id is refused with 400; make a kling-v4 video instead.\n- veo-3.1: Google Veo 3.1. 6 or 8.\n- grok-imagine-video: Grok Imagine Video. 6, 8, 10, 12 or 15.\nLegacy, read-only. These name videos made before; a new video on one is refused with 400.\n- veo-3.1-fast: Google Veo 3.1 Fast\n- kling-v3-pro: Kling V3 Pro\n- seedance-1.5-pro: Seedance 1.5 Pro\n- pixverse-v6: PixVerse V6\n"
    Error:
      description: Standard error response
      type: object
      required:
      - error
      - requestId
      properties:
        error:
          $ref: '#/components/schemas/ErrorError'
        requestId:
          type: string
          format: uuid
          description: Unique identifier for the request, useful for tracing.
    ImageToVideoPromptEnhancementResponse:
      type: object
      description: Response for an image-to-video prompt enhancement request.
      required:
      - promptEnhancementId
      - brandId
      - intermediateFrameAssetIds
      - referenceImageAssetIds
      - referenceVideoAssetIds
      - originalPrompt
      - aspectRatio
      - model
      - status
      - enableAudio
      - useBrandDna
      - createdAt
      - updatedAt
      properties:
        promptEnhancementId:
          type: string
          format: uuid
          readOnly: true
          description: Unique identifier for the prompt enhancement.
          example: 123e4567-e89b-12d3-a456-426614174000
        brandId:
          type: string
          format: uuid
          readOnly: true
          description: ID of the brand.
          example: 223e4567-e89b-12d3-a456-426614174000
        startFrameAssetId:
          type:
          - string
          - 'null'
          format: uuid
          readOnly: true
          description: ID of the start frame image asset, if provided. Null when no start frame was sent, which is every new seedance-2.5-pro request and any seedance-2.0-pro or kling-v4 request sent with referenceImageAssetIds.
          example: 550e8400-e29b-41d4-a716-446655440000
        endFrameAssetId:
          type:
          - string
          - 'null'
          format: uuid
          readOnly: true
          description: ID of the end frame image asset, if provided.
        referenceImageAssetIds:
          type: array
          items:
            type: string
            format: uuid
          readOnly: true
          description: Reference image asset IDs in the order sent, for seedance-2.5-pro, seedance-2.0-pro and Kling. Empty array if none.
        referenceVideoAssetIds:
          type: array
          items:
            type: string
            format: uuid
          readOnly: true
          description: Reference video asset IDs for seedance-2.5-pro (@Video N order). Empty array if none.
        intermediateFrameAssetIds:
          type: array
          items:
            type: string
            format: uuid
          readOnly: true
          description: Ordered intermediate frame assets used for this enhancement (Kling). Empty array if none.
        originalPrompt:
          type: string
          readOnly: true
          description: The original prompt submitted for enhancement.
          example: The product slowly rotates on a marble countertop with soft natural lighting
        aspectRatio:
          type: string
          readOnly: true
          description: The target aspect ratio for the video.
          example: '16:9'
        model:
          type: string
          readOnly: true
          description: The target video generation model, as requested. optimized stays optimized.
          example: veo-3.1
        duration:
          type:
          - integer
          - 'null'
          minimum: 1
          readOnly: true
          description: Target video duration (s), if provided.
        enhancedPrompt:
          type:
          - string
          - 'null'
          readOnly: true
          description: The AI-enhanced prompt (available when status is 'completed').
          example: A premium skincare product elegantly rotates on a polished Calacatta marble countertop, bathed in warm diffused golden-hour light filtering through sheer curtains, with subtle reflections dancing across the marble surface...
        status:
          type: string
          enum:
          - pending
          - processing
          - completed
          - failed
          description: Current status of the enhancement.
          example: pending
        errorCode:
          type:
          - string
          - 'null'
          readOnly: true
          description: Error code if status is 'failed'.
          example: ENHANCEMENT_FAILED
        errorMessage:
          type:
          - string
          - 'null'
          readOnly: true
          description: Error message if status is 'failed'.
          example: Failed to enhance prompt due to content policy violation
        createdAt:
          type: string
          format: date-time
          readOnly: true
          description: Creation timestamp.
          example: '2024-01-01T00:00:00Z'
        updatedAt:
          type: string
          format: date-time
          readOnly: true
          description: Last update timestamp.
          example: '2024-01-01T00:00:00Z'
        completedAt:
          type:
          - string
          - 'null'
          format: date-time
          readOnly: true
          description: Completion timestamp (if completed).
          example: '2024-01-01T00:00:30Z'
        failedAt:
          type:
          - string
          - 'null'
          format: date-time
          readOnly: true
          description: Failure timestamp (if failed).
          example: '2024-01-01T00:00:30Z'
        enableAudio:
          type: boolean
          readOnly: true
          description: Whether audio guidance was included in this prompt enhancement.
        useBrandDna:
          type: boolean
          readOnly: true
          description: Whether Brand DNA was applied to this prompt enhancement.
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: JWT token for authentication.