#api #api-client #model

bin+lib cartesia

A Rust library for the Cartesia API

2 releases

0.0.1 Jul 10, 2024
0.0.0 Jul 9, 2024

#621 in #model

MIT/Apache

50KB
1K SLoC

Rust API client for Cartesia

Overview

This API client is generated using the openapi spec.

Installation

Put the package under your project folder in a directory named cartesia and add the following to Cargo.toml under [dependencies]:

cartesia = { path = "./cartesia" }

Documentation for API Endpoints

All URIs are relative to https://api.cartesia.ai

Class Method HTTP request Description
DefaultApi clone_voice_from_clip POST /voices/clone/clip Clone Voice (Clip)
DefaultApi root_get GET / API Status and Version
DefaultApi tts_bytes_post POST /tts/bytes Stream Speech (Bytes)
DefaultApi tts_sse_post POST /tts/sse Stream Speech (Server-Sent Events)
DefaultApi voices_clone_url_post POST /voices/clone/url Clone Voice (URL)
DefaultApi voices_get GET /voices List Voices
DefaultApi voices_id_delete DELETE /voices/{id} Delete Voice
DefaultApi voices_id_get GET /voices/{id} Get Voice
DefaultApi voices_post POST /voices Create Voice

Documentation For Models

To get access to the crate's generated documentation, use:

cargo doc --open

Dependencies

~8–20MB
~270K SLoC