---
title: "Import a public https:// URL as one of your files."
method: POST
path: "/v1/files/import"
---

# Import a public https:// URL as one of your files.

`POST /v1/files/import`

## Request

- Base URL: `https://api.lumeta.ai`
- URL: `https://api.lumeta.ai/v1/files/import`
- Auth: HTTP bearer

## Request body

- object
  - `url` string, uri, required
  - `model` string

## Response `201`

OK

- File
  - `id` string
  - `filename` string
  - `source` string
  - `project` string, nullable
  - `created_at` string
  - `type` 'image' | 'video' | 'audio' | 'other'
  - `url` string: Durable https URL of the stored file.
  - `mime` string, nullable
  - `width` integer
  - `height` integer
  - `duration` number: Seconds, for audio and video.
  - `size` integer: Bytes.

## Other responses

- `default`: Error

---

[API](https://skmtc.dev/lumeta/apis/lumeta-api.md) · [All operations](https://skmtc.dev/lumeta/apis/lumeta-api/llms.txt) · [OpenAPI document](https://skmtc.dev/lumeta/apis/lumeta-api/revisions/9b84c0fe886e?raw)
