Cartesia TTS API

The TTS API from Cartesia — 2 operation(s) for tts.

Operations 2

POST /tts/bytes Generate speech audio as bytes #
POST /tts/sse Generate speech audio as a Server-Sent Events stream #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/cartesia-ai-tts-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

cartesia-ai-tts-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Cartesia Auth TTS API
  description: Cartesia is a real-time multimodal AI platform built around the Sonic text-to-speech and Ink streaming speech-to-text models. The REST API supports synchronous and streaming generation, voice management, voice cloning, and access-token issuance.
  version: '2024-11-13'
  contact:
    name: Cartesia
    url: https://docs.cartesia.ai
servers:
- url: https://api.cartesia.ai
  description: Production
security:
- ApiKeyAuth: []
- BearerAuth: []
tags:
- name: TTS
paths:
  /tts/bytes:
    post:
      tags:
      - TTS
      summary: Generate speech audio as bytes
      operationId: ttsBytes
      parameters:
      - $ref: '#/components/parameters/CartesiaVersion'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TtsRequest'
      responses:
        '200':
          description: Binary audio bytes
          content:
            audio/wav:
              schema:
                type: string
                format: binary
            audio/mpeg:
              schema:
                type: string
                format: binary
            application/octet-stream:
              schema:
                type: string
                format: binary
  /tts/sse:
    post:
      tags:
      - TTS
      summary: Generate speech audio as a Server-Sent Events stream
      operationId: ttsSse
      parameters:
      - $ref: '#/components/parameters/CartesiaVersion'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TtsRequest'
      responses:
        '200':
          description: SSE stream of audio chunks
          content:
            text/event-stream:
              schema:
                type: string
components:
  parameters:
    CartesiaVersion:
      in: header
      name: Cartesia-Version
      required: true
      schema:
        type: string
        example: '2024-11-13'
  schemas:
    TtsRequest:
      type: object
      required:
      - model_id
      - transcript
      - voice
      - output_format
      properties:
        model_id:
          type: string
          example: sonic-2
        transcript:
          type: string
        voice:
          type: object
          properties:
            mode:
              type: string
              enum:
              - id
              - embedding
            id:
              type: string
            embedding:
              type: array
              items:
                type: number
        language:
          type: string
        output_format:
          type: object
          properties:
            container:
              type: string
              enum:
              - raw
              - wav
              - mp3
            sample_rate:
              type: integer
            encoding:
              type: string
        speed:
          type: number
        duration:
          type: number
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: Cartesia API key (sk_car_...)
    BearerAuth:
      type: http
      scheme: bearer
      description: Short-lived client access token