> ## 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.

# Add a photo or clip from a link

> Solara AI API: Solara fetches one photo or clip from a public link (a Google Drive or Dropbox share link, or a file on a website) into a new item of the video. A folder link is refused (`url_not_allowed`): send each file's link. At most 3 fetches at a time a workspace (1 without a plan, files up to 307 MB), then 429 `url_fetches_busy`. Follow it with List footage.

Permission: **Edit** (`edit`).



## OpenAPI

````yaml /api-reference/openapi.json post /api/v1/projects/{id}/media/from-url
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}/media/from-url:
    post:
      tags:
        - Footage
      summary: Add a photo or clip from a link
      description: >-
        Solara fetches one photo or clip from a public link (a Google Drive or
        Dropbox share link, or a file on a website) into a new item of the
        video. A folder link is refused (`url_not_allowed`): send each file's
        link. At most 3 fetches at a time a workspace (1 without a plan, files
        up to 307 MB), then 429 `url_fetches_busy`. Follow it with List footage.


        Permission: **Edit** (`edit`).
      operationId: create-project-media-from-url
      parameters:
        - description: >-
            Retry-safe start: the same key and link within 24 h answer the first
            start, and fetch nothing twice
          in: header
          name: Idempotency-Key
          schema:
            description: >-
              Retry-safe start: the same key and link within 24 h answer the
              first start, and fetch nothing twice
            maxLength: 128
            type: string
        - in: path
          name: id
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateMediaFromURLInputBody'
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FootageItemBody'
          description: Created
        default:
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Error
      security:
        - ApiKeyBearer: []
components:
  schemas:
    CreateMediaFromURLInputBody:
      additionalProperties: false
      type: object
      properties:
        url:
          description: >-
            A public link to ONE photo or clip: a Google Drive or Dropbox share
            link, or a file on a website. A folder link is refused: one link per
            file
          maxLength: 2048
          minLength: 1
          type: string
      required:
        - url
    FootageItemBody:
      additionalProperties: false
      type: object
      properties:
        byte_size:
          format: int64
          type: integer
        content_type:
          description: >-
            Read from the file's bytes once uploaded; until then, what was
            declared
          type: string
        created_at:
          format: date-time
          type: string
        description:
          description: One sentence of what it shows, once described
          type: string
        duration_ms:
          description: >-
            A clip's length: as declared or fetched, then as the file is (once
            described)
          format: int64
          type: integer
        failure:
          description: >-
            Why it failed: media_not_supported, media_too_large, media_too_long,
            media_limit, url_not_public, url_unreachable, …
          type: string
        file_name:
          type: string
        has_audio:
          description: >-
            A picture block's clip, once ready: true when its own sound plays
            (levelled as the voice), false when it has none (no track, silence,
            it could not be made, or it was uploaded before sound: it plays
            silent). Absent before it is ready (not known yet) and for footage
          type: boolean
        height:
          format: int64
          type: integer
        id:
          format: uuid
          type: string
        kind:
          enum:
            - image
            - video
          type: string
        purpose:
          description: >-
            shot: the video's own footage, which the AI places on the words that
            mention it; block: a clip dropped on the timeline into a picture
            block (never placed by the AI, never described); auto_edit: a file
            an auto edit cuts its reel from
          enum:
            - shot
            - block
            - auto_edit
          type: string
        sort_order:
          description: >-
            An auto edit's file's place in the customer's order, 0 first. Absent
            for any other item
          format: int64
          type: integer
        source:
          description: >-
            upload: parts; link: an agent's upload link; url: fetched from a
            public link
          enum:
            - upload
            - link
            - url
          type: string
        state:
          description: >-
            uploading: the bytes are on their way; pending: arrived, being
            described; described: the AI read it and can place it; ready: a
            clip's render copy is made (export waits for it); failed: see
            failure
          enum:
            - uploading
            - pending
            - described
            - ready
            - failed
          type: string
        tags:
          description: What the AI saw, once described
          items:
            type: string
          type:
            - array
            - 'null'
        url:
          description: The original, signed, once uploaded
          format: uri
          type: string
        width:
          description: As declared, then as the file is (once described)
          format: int64
          type: integer
      required:
        - id
        - kind
        - content_type
        - byte_size
        - state
        - source
        - purpose
        - created_at
    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
    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.