---
title: "Upload a file (get an upload URL) — estimate"
method: POST
path: "/v1/studio/uploads/estimate"
tags: ["Uploads"]
---

# Upload a file (get an upload URL) — estimate

`POST /v1/studio/uploads/estimate`

## Request

- Base URL: `https://apihub.co.il`
- URL: `https://apihub.co.il/v1/studio/uploads/estimate`
- Auth: HTTP bearer

Price the request without executing it. Same body as `POST /v1/studio/uploads`.

## Request body

- object
  - `credit` string: Optional — the credit line (Creative Commons)
  - `license` 'own' | 'creative-commons' | 'licensed': Optional — your basis for using the file, kept with the upload and listed with its job (`GET /v1/usage?tag=` → `sources`): own = you made it · creative-commons = published under CC BY (keep the credit line on screen) · licensed = written permission from the owner. Send it for a video you will dub or republish
  - `filename` string, required
  - `size_bytes` integer: The file size — recommended: the upload must then match it exactly. At most 2 GB for video and audio, 100 MB for images
  - `source_url` string, uri: Optional — where the file was published (e.g. its YouTube link), kept with the licence
  - `content_type` string: video/mp4, video/quicktime, video/webm, audio/mpeg, audio/wav, audio/mp4, image/jpeg, image/png, image/webp, image/gif…

## Response `200`

Estimate

- Estimate
  - `operation` string
  - `estimated_credits` number
  - `credits_to_reserve` number
  - `estimated_usage` object
  - `note` string, nullable
  - `balance` object
    - `available` number
  - `sufficient` boolean

---

[API](https://skmtc.dev/apihub/apis/apihub-one-api-for-chat-image-video-ai.md) · [All operations](https://skmtc.dev/apihub/apis/apihub-one-api-for-chat-image-video-ai/llms.txt) · [OpenAPI document](https://skmtc.dev/apihub/apis/apihub-one-api-for-chat-image-video-ai/revisions/a8caa42835ce?raw)
