メインコンテンツへスキップ
POST
/
datasets
/
{id}
/
files
cURL
curl --request POST \
  --url https://api.cartesia.ai/datasets/{id}/files \
  --header 'Authorization: Bearer <token>' \
  --header 'Cartesia-Version: <cartesia-version>' \
  --header 'Content-Type: multipart/form-data' \
  --form file='@example-file' \
  --form purpose=fine_tune

承認

Authorization
string
header
必須

Cartesia API key (sk_car_...). Get one at play.cartesia.ai/keys.

ヘッダー

Cartesia-Version
enum<string>
必須

API version header.

利用可能なオプション:
2026-03-01
:

"2026-03-01"

パスパラメータ

id
string
必須

ID of the dataset to upload to

ボディ

multipart/form-data
file
file

Supported audio formats: flac, mp3, mpeg, mpga, oga, ogg, wav, webm

purpose
string

Purpose of the file

:

"fine_tune"

レスポンス

204 - undefined