テキスト読み上げ

音声クローン

リップシンク

その他

モデル作成

音声モデル作成 API をテストします。

モデル作成 API

エンドポイント

POST /api/open/create-model

リクエストヘッダー

Content-Type: multipart/form-data
Authorization: Bearer YOUR_API_TOKEN  // API キー

リクエストパラメータ

フォームデータ:
name: string        // undefined,モデル名
description: string // undefined,モデル説明
visibility: string  // undefined,公開範囲,undefined 'private',undefined:'public' | 'private'
audioFiles: File  // undefined,音声ファイル,フォーマット:wav/mp3

レスポンス

// undefined - 200
{
  "modelId": string,    // 作成されたモデル ID
  "title": string,     // モデル名
  "description": string, // モデル説明
  "createdAt": string,  // 作成日時
  "message": string     // 成功メッセージ
}

// undefined
{
  "error": string     // undefined
}

CURL 例

curl -X POST https://fishaudio.org/api/open/create-model \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -F "name=モデル名" \
  -F "description=モデル説明" \
  -F "visibility=private" \
  -F "audioFiles=@/path/to/audio1.wav"

オンラインデバッグ

ステータスコード

200: Success
400: Bad Request
401: Unauthorized
403: Forbidden
404: Not Found
429: Too Many Requests
500: Internal Server Error