---
title: "Calculate export cost"
method: POST
path: "/export/cost"
tags: ["Exports"]
---

# Calculate export cost

`POST /export/cost`

## Request

- Base URL: `https://api.rendley.com/v1`
- URL: `https://api.rendley.com/v1/export/cost`
- Auth: API key in header `Authorization`

Calculate the credit cost of an export without starting the render.

## Request body

- TypesCreateExportInput
  - `project` object: Render-ready project JSON to export inline, used instead of project_id when the project is not stored on Rendley. Every media item referenced in the JSON (video, image, audio, font) must use a permanent, publicly reachable URL so the render server can resolve and download it. Temporary or signed URLs that expire will cause the render to fail.
  - `project_id` string: ID of a project already stored on Rendley to export. Provide either project_id or project, not both.
  - `settings` TypesExportSettings
    - `codec` 'h264' | 'vp8': Optional. Video codec to render with. Defaults are applied server-side when omitted.
    - `quality` 'high' | 'medium' | 'low': Optional. Render quality (encoder bitrate). Defaults to high when omitted. Higher quality produces larger files.
    - `target_resolution` '360p' | '480p' | '720p' | '1080p' | '2K' | '4K': Optional. Output resolution. Defaults to 1080p when omitted. Applies to the canvas's short edge for standard aspect ratios (a 9:16 project exports as 1080x1920 at 1080p) and to the long edge for custom canvas sizes; the aspect ratio is always preserved.

## Response `200`

OK

- object
  - `data` object: Success data
    - `credits` integer
  - `error` HttpResponseAPIError
    - `code` string
    - `fields` HttpResponseFieldError[]
      - `field` string
      - `message` string
    - `message` string
  - `meta` unknown

## Other responses

- `400`: Bad Request
- `401`: Unauthorized

---

[API](https://skmtc.dev/rendley/apis/rendley-api.md) - [All operations](https://skmtc.dev/rendley/apis/rendley-api/llms.txt) - [OpenAPI document](https://skmtc.dev/rendley/apis/rendley-api/revisions/7eb8713bbf78?raw)
