> ## Documentation Index
> Fetch the complete documentation index at: https://docs.solaraai.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get the preview

> Solara AI API: The edit as the browser plays it before the final video exists, with the timeline and the words.

Permission: **Read** (`read`).



## OpenAPI

````yaml /api-reference/openapi.json get /api/v1/projects/{id}/preview
openapi: 3.1.0
info:
  title: Solara AI API
  version: '1'
  description: >-
    Make and edit videos with an API key. Every operation here accepts a key;
    everything else in Solara is for people in the app. Generated from the
    backend by tools/docs/build-public-spec.ts.
servers:
  - url: https://api.solaraai.com
    description: Production
security:
  - ApiKeyBearer: []
tags:
  - name: Styles
    description: The looks a video can be made in.
  - name: Upload
    description: Send a recording to Solara in parts.
  - name: Footage
    description: >-
      The person's own photos and clips, shown as b-roll on the lines that
      mention them. Add each one after the recording's upload and before Create
      a video: footage added after the video is made isn't placed in it.
  - name: Videos
    description: Make a video from an upload and follow it.
  - name: Editing
    description: Read and change an edit. Editing is free and never renders.
  - name: Export
    description: >-
      Render the final video and download it. An export uses one of the plan's
      videos.
  - name: Calendar
    description: >-
      What posts when, how each post went, and what is ready to post. Read only:
      moving, retrying or deleting a post is the person's, in Solara.
  - name: Performance
    description: >-
      How the workspace's posts are doing: each platform's own numbers, read on
      a schedule, never live. YouTube's and Threads' numbers are not shared with
      an API key; X's come with a plan; LinkedIn isn't measured yet.
  - name: Posting
    description: >-
      Ask the person to approve a post: they approve in Solara, and nothing
      posts before. Needs the Ask to post permission, which an AI agent gets
      when the person allows it; keys made in the app do not have it.
paths:
  /api/v1/projects/{id}/preview:
    get:
      tags:
        - Editing
      summary: Get the preview
      description: >-
        The edit as the browser plays it before the final video exists, with the
        timeline and the words.


        Permission: **Read** (`read`).
      operationId: get-project-preview
      parameters:
        - in: path
          name: id
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PreviewOutputBody'
          description: OK
        default:
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Error
      security:
        - ApiKeyBearer: []
components:
  schemas:
    PreviewOutputBody:
      additionalProperties: false
      type: object
      properties:
        animation:
          description: >-
            An Animated video's clips: pending while any is still being drawn
            (Export answers 409 animation_pending; poll again), then ready,
            partial (some draw the speaker) or failed (all do). Absent for any
            other video
          enum:
            - pending
            - ready
            - partial
            - failed
          type: string
        animation_deadline_at:
          description: >-
            While the animations are drawn: the latest their pass can still
            answer by; a few minutes past it, any not drawn are failed
            (expired). Absent otherwise, and before the launch
          format: date-time
          type: string
        animation_launched:
          description: >-
            The video's animations launched (drawing, drawn or failed): starting
            it again, on a card put back after Start, is never refused for the
            month's Animated videos. Absent otherwise
          type: boolean
        animation_progress:
          $ref: '#/components/schemas/AnimationProgressBody'
          description: >-
            While any animation is still being drawn: how many of them are done,
            of how many. Absent otherwise
        animation_reason:
          description: >-
            Why an Animated video has no animated clips, when known: the
            director's (animation_too_long, animation_too_few_words,
            animation_not_portrait, animation_planner_failed; animation is then
            absent); the launch's, when the API refused to start the pass
            (switched_off, unconfigured, not_vertical, too_long, fell_back,
            plan_disagrees, cap_workspace, cap_workspace_drawing, cap_global,
            already_animated; animation is failed); or the animation pass's when
            it failed as a whole (no_sequences, no_sequence_ready,
            not_configured, invalid_limits, unknown_look, renderer_unreachable,
            expired, refused; animation is failed). Absent otherwise
          type: string
        animation_started_at:
          description: >-
            While the animations are drawn: when their pass was launched. Absent
            otherwise, and before the launch
          format: date-time
          type: string
        animations:
          description: >-
            An Animated video's animations, in plan order: what each shows
            (title), the shot that shows its clip, that shot's span on the
            plan's clock, and where it stands. Absent for any other video
          items:
            $ref: '#/components/schemas/AnimationItemBody'
          type:
            - array
            - 'null'
        built_rev:
          format: int32
          type: integer
        clips:
          description: >-
            The video's AI clips (b-roll), newest first, at most 200: the ones
            the edit asked for and the ones asked with fill-project-shot for
            this plan (an earlier plan's, whose shot ids a re-plan reused, are
            not listed), each with its shot, the model it is made with, and
            whether it is being made, landed or failed. A shot's first is its
            newest. Absent: none
          items:
            $ref: '#/components/schemas/ShotClipBody'
          type:
            - array
            - 'null'
        clips_pending:
          description: A late AI clip the edit asked for is still being made; poll again
          type: boolean
        duration_ms:
          description: >-
            How long the video plays at its speed: the export's length (the
            plan's own times stay on its 1x clock)
          format: int64
          type: integer
        footage_left_out:
          description: >-
            Each of the customer's own photos and clips the edit placed nowhere,
            and the director's reason (only an item of the footage when the edit
            was made). Absent: none, or an edit made before the director said
            why
          items:
            $ref: '#/components/schemas/FootageLeftOutBody'
          type:
            - array
            - 'null'
        late_clips:
          description: >-
            Each late AI clip the edit asked for that has not landed in its
            shot: pending, or failed with its reason (the shot keeps what it
            shows)
          items:
            $ref: '#/components/schemas/LateClip'
          type:
            - array
            - 'null'
        matte_pending:
          description: A shot behind the speaker still waits for its cut-out; poll again
          type: boolean
        matte_redo:
          description: >-
            The exported video was drawn before its cut-out landed; Export
            re-renders it with the cut-out, free
          type: boolean
        media_ready:
          description: The processed video the plan plays over has landed
          type: boolean
        pending_pictures:
          description: >-
            Each shot whose picture is still being made after the edit was
            ready, and for how long
          items:
            $ref: '#/components/schemas/PendingPicture'
          type:
            - array
            - 'null'
        pictures_pending:
          description: >-
            A shot's picture is still being made after the edit was ready; poll
            again
          type: boolean
        plan:
          description: >-
            The RenderPlan, media keys under this video signed. It carries no
            picture's search, prompt, model, check or cost: an asset keeps its
            id, kind, source and size, and a Pexels picture its credit
        poster_pending:
          description: >-
            The painted poster of the speaker is still being painted: the plan
            plays the speaker's own frame in its place until it lands (an export
            made now draws the frame); poll again. Absent: none on its way
            (ready, switched off, or none for this video)
          type: boolean
        poster_redo:
          description: >-
            The exported video was drawn with the speaker's own frame before its
            painted poster landed; Export renders it again with the poster
          type: boolean
        ready:
          description: The plan for the built revision has been written
          type: boolean
        redraws_left:
          description: >-
            How many more times this video's animations may be redrawn. Absent
            for any other video, and where redraws are not available
          format: int64
          type: integer
      required:
        - ready
        - media_ready
        - built_rev
    ErrorModel:
      additionalProperties: false
      type: object
      properties:
        code:
          $ref: '#/components/schemas/ErrorCode'
          description: >-
            Names a customer-visible error, for the app to translate; absent on
            other errors
        detail:
          description: >-
            A human-readable explanation specific to this occurrence of the
            problem.
          examples:
            - Property foo is required but is missing.
          type: string
        errors:
          description: Optional list of individual error details
          items:
            $ref: '#/components/schemas/ErrorDetail'
          type:
            - array
            - 'null'
        instance:
          description: >-
            A URI reference that identifies the specific occurrence of the
            problem.
          examples:
            - https://example.com/error-log/abc123
          format: uri
          type: string
        status:
          description: HTTP status code
          examples:
            - 400
          format: int64
          type: integer
        title:
          description: >-
            A short, human-readable summary of the problem type. This value
            should not change between occurrences of the error.
          examples:
            - Bad Request
          type: string
        type:
          default: about:blank
          description: A URI reference to human-readable documentation for the error.
          examples:
            - https://example.com/errors/example
          format: uri
          type: string
    AnimationProgressBody:
      additionalProperties: false
      type: object
      properties:
        done:
          format: int64
          type: integer
        total:
          format: int64
          type: integer
      required:
        - done
        - total
    AnimationItemBody:
      additionalProperties: false
      type: object
      properties:
        end_ms:
          description: That shot's end on the plan's clock
          format: int64
          type: integer
        id:
          description: 'The animation''s id (s1, s2, …): what a redraw names'
          type: string
        last_redraw:
          description: >-
            failed: its last redraw could not be drawn, and the clip before it
            still shows. Absent otherwise
          enum:
            - failed
          type: string
        shot_id:
          description: The shot that shows its clip
          type: string
        start_ms:
          description: That shot's start on the plan's clock (ms, before the speed)
          format: int64
          type: integer
        status:
          description: >-
            pending: still being drawn; ready: drawn; failed: the speaker shows
            there instead; redrawing: a redraw is being drawn, the old clip
            still shows
          enum:
            - pending
            - ready
            - failed
            - redrawing
          type: string
        title:
          description: >-
            2 to 5 of the speaker's words naming what it shows. Absent on a
            video made before titles: show "Animation"
          type: string
      required:
        - id
        - shot_id
        - start_ms
        - end_ms
        - status
    ShotClipBody:
      additionalProperties: false
      type: object
      properties:
        asset_id:
          description: The landed clip's asset id (ready only)
          type: string
        counted:
          description: >-
            A failed clip: whether it still counts toward the AI clip caps (a
            provider may bill it). Absent otherwise
          type: boolean
        fill_id:
          description: 'The clip''s fill: get-project-shot-fill reads it'
          format: uuid
          type: string
        label:
          description: The model's name as the app shows it (Gemini Omni Flash)
          type: string
        late:
          description: >-
            A clip the edit asked for itself: the export waits for it and places
            it. Absent: one asked with fill-project-shot, in the edit once the
            editor or an agent places it
          type: boolean
        model:
          description: >-
            The model asked for (gemini-omni-flash, minimax-h3-max,
            minimax-h3-max-turbo): never switched
          type: string
        reason:
          description: >-
            Why a failed clip did not land, as clip_failure.reason:
            model-failed, model-refused, model-unavailable, deadline,
            judge-rejected, finish-failed, source-missing or ai-clips-off
          type: string
        shot_id:
          description: The shot (the plan's and the timeline's item id)
          type: string
        state:
          description: >-
            pending: being made, the shot shows what it showed; ready: landed as
            asset_id, which the shot shows where its plan or its document names
            it; failed: no clip, the shot keeps what it showed
          enum:
            - pending
            - ready
            - failed
          type: string
      required:
        - shot_id
        - fill_id
        - state
        - model
        - label
    FootageLeftOutBody:
      additionalProperties: false
      type: object
      properties:
        media_id:
          format: uuid
          type: string
        reason:
          description: >-
            below-bar (no line matched it closely enough), pace (the cut's pace
            shows no more moments), opening (its line is the opening), closing
            (its line is in the closing words), too-dense (its line is too close
            to another of the customer's clips), taken (a stronger match took
            its line), too-short (its take is shorter than the shot), recast
            (the style had no design to show it there), hebrew (a Hebrew video
            places no footage yet), unpaced (this director paces no moments); a
            newer director may name others
          type: string
      required:
        - media_id
        - reason
    LateClip:
      additionalProperties: false
      type: object
      properties:
        elapsed_ms:
          description: How long a pending clip has been on its way, ms
          format: int64
          type: integer
        model:
          description: The model making it (never switched)
          type: string
        reason:
          description: Why a failed clip did not come, as clip_failure.reason
          type: string
        shot_id:
          description: The shot the clip is for
          type: string
        state:
          description: 'pending: on its way; failed: none came, the shot keeps what it shows'
          enum:
            - pending
            - failed
          type: string
      required:
        - shot_id
        - model
        - state
    PendingPicture:
      additionalProperties: false
      type: object
      properties:
        elapsed_ms:
          description: >-
            How long it has been on its way, in ms (the editor's progress starts
            there)
          format: int64
          type: integer
        shot_id:
          description: The shot whose picture is on its way
          type: string
      required:
        - shot_id
        - elapsed_ms
    ErrorCode:
      description: >-
        A stable name for a customer-visible error; the app translates it.
        Absent on other errors.
      enum:
        - invalid_credentials
        - invalid_or_expired
        - too_many_attempts
        - resend_too_soon
        - email_taken
        - invalid_phone
        - temporarily_unavailable
        - turnstile_failed
        - email_unchanged
        - phone_unchanged
        - account_deletion_unavailable
        - project_not_found
        - plan_changed
        - subscription_required
        - restyle_limit
        - fill_limit
        - export_limit
        - ask_limit
        - music_limit
        - music_unavailable
        - free_limit
        - plan_required
        - allowance_used
        - not_exported
        - not_editable
        - earlier_cut
        - invalid_edit
        - edit_timing_off
        - landscape_off
        - speaker_poster_off
        - reedit_off
        - music_off
        - animated_off
        - animated_locked
        - animation_pending
        - caption_style_unfit
        - animated_colors_fixed
        - animated_too_long
        - speed_too_slow
        - animated_allowance_used
        - animated_plan_required
        - redraw_limit
        - cap_workspace
        - cap_workspace_drawing
        - cap_global
        - attachment_video
        - attachment_too_big
        - attachment_missing
        - attachment_limit
        - attachment_too_long
        - ask_busy
        - plan_not_for_sale
        - not_entitled
        - plan_change_unavailable
        - not_for_sale
        - same_plan
        - resume_required
        - upgrade_pending
        - quote_expired
        - no_pending_upgrade
        - exit_offer_ended
        - campaign_offer_ended
        - post_publishing
        - post_already_ended
        - post_not_ended
        - post_preparing
        - post_not_retryable
        - post_needs_reconnect
        - post_may_be_live
        - text_post_needs_media
        - caption_required
        - caption_too_long
        - caption_ai_limit
        - caption_ai_no_source
        - caption_ai_failed
        - caption_ai_unavailable
        - caption_ai_no_room
        - caption_ai_listening
        - upload_words_limit
        - company_not_found
        - linkedin_needs_reconnect
        - youtube_off
        - youtube_not_short
        - youtube_too_large
        - scope_not_offered
        - x_off
        - x_video_refused
        - threads_off
        - threads_video_refused
        - pinterest_off
        - pinterest_video_refused
        - pinterest_business_account_needed
        - pinterest_needs_reconnect
        - google_business_off
        - google_business_needs_reconnect
        - google_business_video_refused
        - google_business_location_not_found
        - google_business_ended
        - bluesky_off
        - bluesky_video_refused
        - linkedin_page_off
        - linkedin_page_needs_reconnect
        - linkedin_page_not_found
        - facebook_video_refused
        - photo_unfittable
        - intake_not_found
        - intake_not_complete
        - intake_limit
        - intake_not_configured
        - intake_invalid
        - api_key_invalid
        - api_key_revoked
        - api_key_not_allowed
        - insufficient_scope
        - agent_api_off
        - agent_only
        - api_key_limit
        - api_key_daily_limit
        - idempotency_in_progress
        - idempotency_key_reused
        - publish_request_expired
        - publish_request_edited
        - publish_request_decided
        - publish_request_pending
        - video_not_postable
        - text_posts_waiting
        - publish_request_daily_limit
        - video_format_not_supported
        - photo_posts_waiting
        - upload_not_ready
        - tiktok_option_not_allowed
        - workspace_owner_only
        - oauth_off
        - oauth_request_expired
        - oauth_client_gone
        - oauth_device_code_unknown
        - oauth_request_not_yours
        - url_not_allowed
        - url_not_public
        - url_unreachable
        - not_a_video
        - video_too_large
        - video_too_long
        - url_fetches_busy
        - url_fetch_daily_limit
        - upload_incomplete
        - upload_used
        - broll_off
        - media_limit
        - media_daily_limit
        - media_too_large
        - media_too_long
        - media_not_supported
        - ai_clips_off
        - clip_limit
        - ai_clips_plan_required
        - clip_refusal_limit
        - stock_clip_limit
        - auto_edit_off
        - auto_edit_limit
        - auto_edit_locked
        - auto_edit_files_missing
        - auto_edit_busy
        - auto_edit_cutting
        - picture_blocks_off
        - picture_pending
        - block_too_long
        - footage_not_ready
        - block_is_clip
        - crop_size_unknown
        - no_speech
        - no_audio
        - feedback_unavailable
        - feedback_not_sent
        - feedback_rate_limited
        - duplicate_post
        - video_has_post
        - several_posts
        - post_in_old_format
        - x_same_text
        - youtube_already_posted
        - use_create_post
        - publish_requests_waiting
        - post_analytics_needs_plan
        - workspace_suspended
        - support_view_ended
        - support_view_read_only
      type: string
    ErrorDetail:
      additionalProperties: false
      type: object
      properties:
        location:
          description: >-
            Where the error occurred, e.g. 'body.items[3].tags' or
            'path.thing-id'
          type: string
        message:
          description: Error message text
          type: string
        value:
          description: The value at the given location
  securitySchemes:
    ApiKeyBearer:
      type: http
      scheme: bearer
      bearerFormat: sol_live_
      description: >-
        An API key, created in Solara: the menu under your name, then API keys.
        Send it as `Authorization: Bearer sol_live_…`. It works while the
        workspace has agent access, within what its plan gives (the free plan
        included).

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.