Nano Studio Pro Videos API

The Videos API from Nano Studio Pro — 7 operation(s) for videos.

GitHub OpenAPI

Operations 7

POST /v1/videos/uploads Start a direct video upload #
POST /v1/videos/uploads/parts More part URLs #
POST /v1/videos/uploads/complete Finish a direct video upload #
POST /v1/videos/uploads/abort Cancel a direct video upload #
POST /v1/videos/import Import a video from a link #
POST /v1/videos/reference-audio Add a sound for a video to follow #
POST /v1/videos/originals/drop Drop video originals, keep the editing copies #

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/nanostudiopro-com:nanostudiopro-com-videos-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

nanostudiopro-com-videos-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Nano Studio Pro Videos API
  version: 1.0.0
  description: 'Programmatic access to **Nano Studio Pro** — generate AI fashion and product photography, manage projects and assets, and track storage from any client (scripts, CLIs, AI agents).


    ### How it works


    You group your work into **Projects**. Each generation belongs to a project. Reusable inputs (model photos, pose references, uploads) live in **Assets** and can be passed by ID into any generation. Generations cost credits by resolution (see `POST /v1/generations`); asset uploads count against your **storage quota**.


    ### Authentication


    All requests require a Bearer token. Create one at Settings · API keys. The token is shown once at creation — store it safely. If lost, revoke and create a new one.


    ```bash

    curl -H "Authorization: Bearer sk_sf_live_..." https://nanostudiopro.com/api/v1/me

    ```


    Two kinds of key share this header:


    - **Secret keys** (`sk_sf_live_...`) — full API access, governed by the token''s scopes. Never ship one in client-side code.

    - **Publishable keys** (`pk_sf_live_...`) — safe to embed in public HTML. They are created with the `read` scope only and work **exclusively on `GET /v1/search`**: authentication itself rejects them with `401 unauthorized` on every other endpoint. Each publishable key optionally carries a **`search_scope`** object (see the schema of that name) that narrows what it can see:

    - `projects` — the key sees only these project ids; absent = the whole library.

    - `types` — result types the key may return (`asset` / `generation`).

    - `max_image_size` — caps the `image_size` variant served; requests above the cap (the `preview` default included) are silently served the cap.

    - `origins` — exact-match browser `Origin` allowlist; a request from any other origin gets `403 forbidden`. Absent = any origin. Requests with no Origin header (curl, server-to-server) always pass — the origin lock is a soft, browser-only control; the hard controls are the read-only scope and the narrowing above.

    - `include_regions` — whether the key may request detection regions. Default false.

    - `include_narrative` — whether results carry the AI-written photo description (`narrative`). Default false: publishable-key results omit it unless the scope opts in.


    Scope narrowing is **silent by design**: a filter that falls entirely outside the key''s scope returns an empty 200 page, never an error, so a client can''t probe what exists outside its window.


    ### Rate limits


    Per-token rate limits are enforced; when exceeded you''ll get `429` with a `Retry-After` header. Secret keys get **60 requests/min per token**. Publishable keys (search-only) get **600/min per key** plus **60/min per key + client IP** — whichever is stricter wins, so one hot visitor can''t exhaust a whole site''s key. Search rate limits are durable — shared across server instances, so counts don''t reset on deploys or split between replicas.


    ### Errors


    All error responses use the same shape: `{ "error": { "code": "...", "message": "..." } }`. Common codes include `unauthorized`, `validation_error`, `not_found`, `insufficient_credits`, `token_cap_exceeded`, `storage_limit_exceeded`, `rate_limited`.


    ## Authorizing a device


    Two ways to get a token:


    1. **Manual** — create one in Settings · API Tokens. Returns a `sk_sf_live_...` token immediately.

    2. **Device flow (RFC 8628)** — for CLIs and headless tools. Run `curl -fsSL https://nanostudiopro.com/cli/nsp -o /usr/local/bin/nsp && chmod +x /usr/local/bin/nsp && nsp login`, or implement the protocol yourself (full walkthrough at /docs/device-auth; endpoints are listed under the **Device Auth** tag below).


    Each token can optionally have a **daily credit cap** — a rolling-24h spending limit independent of the wallet balance. Useful for limiting blast radius if a token leaks. Configure under Settings → API Tokens.'
  contact:
    url: https://nanostudiopro.com/settings?tab=api-tokens
servers:
- url: /api
  description: Same origin as docs (auto-detects local vs prod)
- url: https://nanostudiopro.com/api
  description: Production
security:
- BearerAuth: []
tags:
- name: Videos
paths:
  /v1/videos/uploads:
    post:
      tags:
      - Videos
      summary: Start a direct video upload
      description: 'Uploads a video of any size your storage allows: the file goes straight to storage in parts, never through this API. Send the size first; if it does not fit in your space (the file plus room for its 1080p editing copy, estimated at a third of the file) you get 402 `storage_limit_exceeded` before anything is sent. Then PUT each part (in order of `n`, any concurrency) to its URL, keep each response''s `ETag` header, and call `/v1/videos/uploads/complete`. Need more part URLs (files above ~3 GB): `/v1/videos/uploads/parts`. Unfinished uploads are discarded after 7 days and never counted.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - filename
              - size
              properties:
                filename:
                  type: string
                  example: shoot-take-3.mp4
                size:
                  type: integer
                  description: Bytes. Checked against your free space now and against the real file at the end.
                content_type:
                  type: string
                  example: video/mp4
                project_id:
                  type: string
                  description: Defaults to your most recently used project.
                name:
                  type: string
                prompt:
                  type: string
                  description: What the clip should be findable by.
                density:
                  type: string
                  enum:
                  - quick
                  - normal
                  - detailed
                  description: Index it for search (clips up to 180 s).
                metadata:
                  type: object
                  additionalProperties: true
                  description: A JSON object of your own fields (a quote number, a client, where it came from), at most 4 KB. Returned as `metadata` on every read.
                sha256:
                  type: string
                  description: 'SHA-256 of the file, 64 hex characters. Optional: when this project already holds the same file, the answer is that clip with `duplicate: true` and nothing is uploaded.'
                keep_original:
                  type: boolean
                  default: true
                  description: 'Every clip gets a light 1080p H.264 editing copy, made in the background after the upload and counted toward your storage (none when the file already is 1080p H.264). `false` drops the uploaded original once the copy exists: it frees the space, and the clip is 1080p from then on (frames, downloads, exports).'
      responses:
        '200':
          description: '`upload_token`, `part_size`, `part_count`, `parts: [{ n, url }]`, `expires_at`. Or, when `sha256` matches a clip already in the project: that clip (`id`, `permanent_url`, `metadata`, …) with `duplicate: true` and no `upload_token`.'
        '400':
          description: Not a video, or no size
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  code: validation_error
                  message: Not a video, or no size
        '401':
          description: Missing or invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  code: unauthorized
                  message: Missing or invalid token
        '402':
          description: Does not fit in your free space
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  code: storage_limit_exceeded
                  message: Does not fit in your free space
        '429':
          description: Rate limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  code: rate_limited
                  message: Rate limit exceeded
      operationId: postV1VideosUploads
      x-operation-id-source: derived
  /v1/videos/uploads/parts:
    post:
      tags:
      - Videos
      summary: More part URLs
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - upload_token
              properties:
                upload_token:
                  type: string
                from:
                  type: integer
                count:
                  type: integer
                  maximum: 200
      responses:
        '200':
          description: '`parts: [{ n, url }]`'
        '401':
          description: Missing or invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  code: unauthorized
                  message: Missing or invalid token
        '404':
          description: Unknown or expired upload
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  code: not_found
                  message: Unknown or expired upload
        '429':
          description: Rate limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  code: rate_limited
                  message: Rate limit exceeded
      operationId: postV1VideosUploadsParts
      x-operation-id-source: derived
  /v1/videos/uploads/complete:
    post:
      tags:
      - Videos
      summary: Finish a direct video upload
      description: Closes the upload, checks the real size, counts it against your storage, cuts a poster and adds the clip to your library. Returns the clip with its `permanent_url`, and `index` when indexing was asked for.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - upload_token
              - parts
              properties:
                upload_token:
                  type: string
                parts:
                  type: array
                  items:
                    type: object
                    properties:
                      n:
                        type: integer
                      etag:
                        type: string
      responses:
        '201':
          description: 'The clip: `id`, `video_path`, `size`, `duration_sec`, `width`, `height`, `permanent_url`, `metadata`, `task_id`, `index`, `index_error`, and `versions` when the same footage is already in your library (`relation: "larger"` = a bigger file, e.g. the raw original).'
        '400':
          description: Missing parts, size mismatch, or not readable as video
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  code: validation_error
                  message: Missing parts, size mismatch, or not readable as video
        '401':
          description: Missing or invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  code: unauthorized
                  message: Missing or invalid token
        '402':
          description: Your space filled up during the upload
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  code: storage_limit_exceeded
                  message: Your space filled up during the upload
        '429':
          description: Rate limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  code: rate_limited
                  message: Rate limit exceeded
      operationId: postV1VideosUploadsComplete
      x-operation-id-source: derived
  /v1/videos/uploads/abort:
    post:
      tags:
      - Videos
      summary: Cancel a direct video upload
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - upload_token
              properties:
                upload_token:
                  type: string
      responses:
        '200':
          description: '`aborted: true`'
        '401':
          description: Missing or invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  code: unauthorized
                  message: Missing or invalid token
        '429':
          description: Rate limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  code: rate_limited
                  message: Rate limit exceeded
      operationId: postV1VideosUploadsAbort
      x-operation-id-source: derived
  /v1/videos/import:
    post:
      tags:
      - Videos
      summary: Import a video from a link
      description: 'Brings in a video file from a public link, of any size your storage allows. The link is opened at once: a web page that plays a video (YouTube, Vimeo, a post) rather than the file itself, a dead link, or a file whose stated size does not fit your space is refused in this answer. Otherwise you get 202 with a `task_id` and the file streams into storage in the background; poll `/v1/tasks/{id}` until `status` is `complete`, when `generation_id` is the clip. A link that does not state its size is checked against your space as it arrives. When the project already holds the same file, the copy is dropped before it is counted and the task completes with the existing clip as `generation_id`.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - url
              properties:
                url:
                  type: string
                  example: https://example.com/footage/take-3.mp4
                  description: A direct link to the file (.mp4, .mov, .webm).
                project_id:
                  type: string
                  description: Defaults to your most recently used project.
                name:
                  type: string
                prompt:
                  type: string
                  description: What the clip should be findable by.
                density:
                  type: string
                  enum:
                  - quick
                  - normal
                  - detailed
                  description: Index it for search (clips up to 180 s).
                metadata:
                  type: object
                  additionalProperties: true
                  description: A JSON object of your own fields (a quote number, a client, where it came from), at most 4 KB. Returned as `metadata` on every read.
                keep_original:
                  type: boolean
                  default: true
                  description: 'Every clip gets a light 1080p H.264 editing copy, made in the background after the upload and counted toward your storage (none when the file already is 1080p H.264). `false` drops the uploaded original once the copy exists: it frees the space, and the clip is 1080p from then on (frames, downloads, exports).'
      responses:
        '202':
          description: '`task_id`, `status: "running"`, `project_id`, `name`, `size` (bytes, when the link states it)'
        '400':
          description: Not a link to a video file, an internal address, or the link failed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  code: validation_error
                  message: Not a link to a video file, an internal address, or the link failed
        '401':
          description: Missing or invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  code: unauthorized
                  message: Missing or invalid token
        '402':
          description: Does not fit in your free space
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  code: storage_limit_exceeded
                  message: Does not fit in your free space
        '429':
          description: Rate limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  code: rate_limited
                  message: Rate limit exceeded
      operationId: postV1VideosImport
      x-operation-id-source: derived
  /v1/videos/reference-audio:
    post:
      tags:
      - Videos
      summary: Add a sound for a video to follow
      description: 'A voice, an effect or music for Seedance 2.5 References to follow (`@Audio1`, `@Audio2`… in the prompt). Send the file as multipart `file`, or JSON `{ "url": "https://…" }` for a public link. MP3 or WAV, up to 15 MB, 2-30 s; at most 10 per video and 30 s in all. Counts against storage. Pass the returned `id` in `reference_audio_ids` on `POST /v1/videos`, or skip this and send `reference_audio_urls` there (links are fetched on every call, so to quote and then render, upload once here).'
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              required:
              - file
              properties:
                file:
                  type: string
                  format: binary
          application/json:
            schema:
              type: object
              required:
              - url
              properties:
                url:
                  type: string
                  example: https://example.com/voice.mp3
      responses:
        '201':
          description: '`id` (pass in `reference_audio_ids`), `name`, `duration_seconds`'
        '400':
          description: Not MP3 or WAV, too long or short, too big, or the link failed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  code: validation_error
                  message: Not MP3 or WAV, too long or short, too big, or the link failed
        '401':
          description: Missing or invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  code: unauthorized
                  message: Missing or invalid token
        '402':
          description: Does not fit in your free space
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  code: storage_limit_exceeded
                  message: Does not fit in your free space
        '429':
          description: Rate limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  code: rate_limited
                  message: Rate limit exceeded
      operationId: postV1VideosReferenceAudio
      x-operation-id-source: derived
  /v1/videos/originals/drop:
    post:
      tags:
      - Videos
      summary: Drop video originals, keep the editing copies
      description: Every uploaded clip gets a light 1080p editing copy; the uploaded original is kept beside it (`original_video_path` on the clip) until dropped. Dropping frees the original's space. The clip stays playable and editable, but it is 1080p from then on, and this cannot be undone. Clips with no separate original are skipped.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                ids:
                  type: array
                  items:
                    type: string
                  description: Clip (generation) ids, up to 500.
                all:
                  type: boolean
                  description: true = every kept original.
      responses:
        '200':
          description: '`dropped` (clips), `freed_bytes`'
        '400':
          description: Neither ids nor all
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  code: validation_error
                  message: Neither ids nor all
        '401':
          description: Missing or invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  code: unauthorized
                  message: Missing or invalid token
        '429':
          description: Rate limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  code: rate_limited
                  message: Rate limit exceeded
      operationId: postV1VideosOriginalsDrop
      x-operation-id-source: derived
components:
  schemas:
    Error:
      type: object
      required:
      - error
      properties:
        error:
          type: object
          required:
          - code
          - message
          properties:
            code:
              type: string
              example: validation_error
            message:
              type: string
              example: '`prompt` is required'
            needed:
              type: integer
              nullable: true
              description: '402 only: what the operation costs in credits, when known.'
            balance:
              type: integer
              nullable: true
              description: '402 only: what the account has (for `token_cap_exceeded`, what the token may still spend today), when known.'
            purchase_url:
              type: string
              format: uri
              description: '402 only: where the person adds credits. Every 402 (`insufficient_credits`, `token_cap_exceeded`, `video_requires_purchase`, `audio_requires_purchase`, `storage_limit_exceeded`, `trial_required`) carries the same fields, so one handler can show the notice. `trial_required` answers an upload from an account that has not started its free trial: nothing was stored, and the upload goes through once the trial is on.'
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: 'Personal access token from `/settings?tab=api-tokens`. Send as `Authorization: Bearer sk_sf_live_...` — or a publishable `pk_sf_live_...` key, which authenticates on `GET /v1/search` only.'