---
title: "Encode"
method: POST
path: "/video_encoder/encode"
tags: ["Video encoder"]
---

# Encode

`POST /video_encoder/encode`

## Request body

- EncoderRequest
  - `inputs` URL[], nullable
    - `url` string, required
    - `content_type` string, nullable
    - `label` string, nullable
    - `streams` string[], nullable
  - `outputs` URL[], nullable
    - `url` string, required
    - `content_type` string, nullable
    - `label` string, nullable
    - `streams` string[], nullable
  - `video_encoder_codec` string, nullable
  - `video_properties` VideoEncoderProperties
    - `fps` number, nullable
    - `bitrate` string, nullable
    - `preset` string, nullable
    - `tune` string, nullable
  - `audio_encoder_codec` string, nullable
  - `audio_properties` AudioEncoderProperties
    - `bitrate` string, nullable
    - `sample_rate` integer, nullable
    - `channels` integer, nullable
    - `quality` string, nullable
  - `file_format` string, nullable
  - `filters` Filter[], nullable
    - `name` string, required
    - `inputs` string[], nullable
    - `output` string[], nullable
    - `args` union[], nullable
      - union
        - string
        - integer
        - number
    - `kwargs` object, nullable
    - `label` string, nullable
  - `kwargs` object, nullable
  - `callback` string, nullable
  - `client_job_id` string, nullable
  - `input_url` string, nullable — Use `inputs_url` instead
  - `output_url` string, nullable — Use `outputs_url` instead
  - `content_type` string, nullable — Use `inputs_url.content_type` instead

## Response `201`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/texel/apis/texel-api.md) · [All operations](https://skmtc.dev/texel/apis/texel-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/texel/texel-api/revisions/b728014efdc8/schema)
