models

Sesame: CSM 1B

Markdown · JSON

Sesame: CSM 1B

Sesame CSM 1B converts supplied text into speech through POST /v1/audio/speech. Use sesame/csm-1b with the actual script, select one of its named voices, and request MP3 or PCM audio. It suits a workflow that turns a prepared message, explanation or narration segment into an audio file for playback or editing.

About the model

This description covers the model’s capabilities. Available in Ailoot inputs, outputs and options are listed for the selected method below.

Sesame CSM 1B is a text-to-speech model available under the exact ID sesame/csm-1b. Supply the words to be spoken and retain the resulting audio as a file. A practical brief can be a prepared product explanation, a spoken application message or a narration segment that will be placed in an edit. Prepare the script as the intended spoken text, including the names, numbers and wording the listener needs to hear.

Send POST /v1/audio/speech with application/json. The required fields are model, set to sesame/csm-1b, and input, containing the script as a string. Read a script file as UTF-8 text and place its contents in input rather than supplying a local filename. Keeping the spoken content in that field gives the generation a concrete script to follow and lets the application retain the exact wording alongside the resulting file.

The named voice choices are conversational_a, conversational_b, read_speech_a, read_speech_b, read_speech_c, read_speech_d and none. Preserve those identifiers exactly in the voice field. Select a voice explicitly when a workflow needs a repeatable request configuration, and keep that chosen setting with the script and output. Listen to a representative segment to decide which available voice fits the intended use.

Use response_format to choose mp3 or pcm. MP3 is delivered as audio/mpeg and provides a file that can be passed to a player or editing workflow that accepts MP3. PCM is delivered as audio/pcm with 16-bit little-endian samples; retain its actual audio metadata for the application that will interpret the bytes. Set the format explicitly so the file and downstream decoder agree. The documented request example uses speed:1; keep that baseline when preparing a request with the established controls.

The successful response contains raw audio bytes. Save the response body as audio and retain the response headers and original request identity with the script, voice and requested format. Treat completion of that response as the point at which the returned audio can be kept and reviewed. Check the spoken names, numbers and sentence boundaries against the source script before adding the result to a longer production. If a request is interrupted after submission, preserve its original identity and response information while checking the existing outcome.

Ailoot Ultra · Speech POST /v1/audio/speech sesame/csm-1b

sesame/csm-1b

Sesame /sesame/csm-1b

Overview

Sesame CSM 1B converts supplied text into speech through POST /v1/audio/speech. Use sesame/csm-1b with the actual script, select one of its named voices, and request MP3 or PCM audio. It suits a workflow that turns a prepared message, explanation or narration segment into an audio file for playback or editing.

Accepted inputs
Text
Results
Audio

Available in Ailoot · inputs & methods

Ailoot Ultra · Speech POST /v1/audio/speech
Input types
text
Output types
audio
Output format
mp3,pcm
FieldTypeRequirementValues & limitsDefault
FieldmodelTypestringRequirementRequiredValues & limits
sesame/csm-1b
Default—
FieldinputTypestringRequirementRequiredValues & limitsDefault—
FieldvoiceTypestringRequirementOptionalValues & limits
conversational_a, conversational_b, read_speech_a, read_speech_b, read_speech_c, read_speech_d, none
Default—
Fieldresponse_formatTypestringRequirementOptionalValues & limits
mp3, pcm
Default—
FieldspeedTypenumberRequirementOptionalValues & limitsDefault—
Method parameters and lifecycle
ParameterContract
Parametercontent_typeContractapplication/json
ParameterrequiredContractmodel, input
ParameteroptionalContractvoice, response_format, speed
Parametermaterial_typesContracttext
ParameterconditionsContract

Lifecycle: synchronous_result_then_owned_library

GET /v1/media/assets

GET /v1/media/assets/{asset_id}

Pricing

Tariff references do not add request options. Supported parameters are listed for the selected method.

Fast mode
Not specified When fast mode is selected
Flex mode
Not specified When flex mode is selected
Maximum reasoning effort
Not specified When maximum reasoning effort uses the default adjustment

Ailoot rates

Prices by configuration

Match each charge to the conditions shown. Use one rate for each set of alternative configurations.

ConfigurationRate scheduleBilling quantityBilling unitCharge
ConfigurationBase token ratesRate scheduleBase rateBilling quantity—Billing unit—Charge
Input · Input tokens — / 1K tokens
Output · Output tokens — / 1K tokens
Input · Cache read — / 1K tokens
Input · Cache write — / 1K tokens
Input · Cache write, 1 hour — / 1K tokens
Configurationinput characterRate schedule—Billing quantity—Billing unitper input characterCharge
Input · input character $0.000014 per input character
ConfigurationPer requestRate schedule—Billing quantityone requestBilling unit—Charge
Input $0 per request

Ailoot reserves an estimated amount before a request. After the result, it settles the final charge from measured usage. Streaming settlement uses the final usage record. How reservation and settlement work →

Example requests

Ailoot Ultra · Speech

curl · create once and retain the complete result
set -eu
: "${AILOOT_API_KEY:?Set your Ailoot API key}"
export AILOOT_API_KEY
python3 - <<'PY_REQUEST'
import json,os
from pathlib import Path
p=json.loads('{"input": "Hello world", "model": "sesame/csm-1b", "response_format": "mp3", "speed": 1, "voice": "conversational_a"}')

Path("request.json").write_text(json.dumps(p,ensure_ascii=False))
PY_REQUEST
curl --fail-with-body --silent --show-error https://api.ailoot.ai/v1/audio/speech \
  -H "Authorization: Bearer $AILOOT_API_KEY" -H 'Content-Type: application/json' \
  --data-binary @request.json -D response-headers.txt -o result.json
# Submit once. Retain the complete result, original identifiers and every response header.

Receive and save results

Ailoot Ultra · Speech

mp3,pcm

  • GET /v1/media/assets
  • GET /v1/media/assets/{asset_id}
Keep all completed results

Keep every complete returned response, file and content part.

Retain the complete binary audio and response headers. Use the actual output Content-Type; no extra container or bit depth is inferred.

If the original response needs checking

Preserve the original response, headers and X-Client-Request-ID. An uncertain outcome does not authorize another creation.

Aliases

Model aliases

Ailoot Ultra sesame/csm-1b

Method path aliases

Use the method paths shown above.

Related caller IDs

sesame/csm-1b

FAQ · Sesame: CSM 1B
What inputs and results are available?

POST /v1/audio/speech · sesame/csm-1b: text → audio

Which fields does the request use?

POST /v1/audio/speech · sesame/csm-1b: model, input, voice, response_format, speed

More details

Connect Ailoot to Claude Code, OpenCode, Hermes or your own app.

The company and its project portfolio

The company and its project portfolio: millions of customers; monthly sales in the billions.

Buy tokens at a discount.

Subscription discounts for regular use. Promo codes offer up to 50% off token purchases.

Subscription
Choose a discounted plan for your regular requests.
Promo code: up to 50% off
Enter your code at checkout. The price updates to reflect the current promotion.
Spending in your history
The model, tokens and amount are recorded for each request.

Choose a subscription · View model prices

Connect the API to a product you sell.

Use Ailoot in SaaS, apps and bots under its official service offer and licence agreement. Request a reseller licence for resale.

Commercial application
Add text, image, video and audio generation to paid features in your service.
Reseller licence
Send a description of your project and how you provide access. Request written terms for use and resale.
Documents on the website
The service offer, licence agreement and data processing policy are available before you connect.

Request a reseller licence · Service offer and licence agreement