You can create a model using the Python SDK, MessagePack API, or FormData API.

Python SDK

To begin with, you need to make sure you have the Python SDK installed: GitHub or PyPI.

from fish_audio_sdk import Session

session = Session("your_api_key")

model = session.create_model(
    title="test",
    description="test",
    voices=[voice_file.read(), other_voice_file.read()],
    cover_image=image_file.read(),
)
print(model)

MessagePack API

Endpoint Details

Example Usage

Say you want to create a model with 2 audio clips and 2 corresponding texts.