Fish Model Query API 연동 안내

이 인터페이스는 Fish Audio 공식 Model API를 기반으로 하며, Fish 공개 음색 라이브러리 또는 현재 계정의 복제 음색을 페이지별로 검색하는 데 사용됩니다. 주소는 GET https://api.yxai-tech.top/fish/model입니다.

음색 생성은 Fish Model Create API를 참고하세요. _id로 단일 음색의 상세 정보를 조회하려면 Fish Model Get API를 참고하세요.

신청 절차

Fish Model API를 사용하려면 먼저 AI 聚合 콘솔에서 API Token을 발급받아 준비해 두세요.

아직 로그인하거나 가입하지 않았다면 자동으로 로그인 페이지로 이동하여 가입 및 로그인을 안내하며, 완료되면 자동으로 현재 페이지로 돌아갑니다.

범용 애플리케이션의 API Key는 계정에 활성화된 서비스에 사용할 수 있으며, 전용 애플리케이션의 Key는 해당 애플리케이션의 서비스 범위에 따라 사용합니다. Key의 권한, 유효기간 및 한도를 확인하고 애플리케이션 잔액이 이번 요청을 결제하기에 충분한지 확인하세요. 사용 가능한 체험 한도는 계정에 표시된 내용을 기준으로 하며, 잔액이 부족하면 「충전」 버튼을 클릭하면 됩니다.

📘 전체 문서: Fish Model API →

쿼리 매개변수

매개변수 유형 기본값 설명
page_size integer 10 페이지당 항목 수.
page_number integer 1 1부터 시작하는 페이지 번호.
title string — 제목으로 부분 검색.
tag string — 단일 태그로 필터링.
self boolean — true이면 현재 호출 계정이 이 플랫폼을 통해 생성하고 저장한 음색만 반환.
author_id string — 음색 작성자 ID로 필터링.
language string — 음색 언어로 필터링. 예: en, zh, es.
title_language string — 공개 음색 라이브러리에서 제목 언어로 필터링.
sort_by string — 정렬 필드. self=true일 때 created_at, task_count 지원.

예제 1: 기본 페이지 이동 (page_size 기준)

curl -G 'https://api.yxai-tech.top/fish/model' \
  -H 'authorization: Bearer {token}' \
  --data-urlencode 'page_size=2'

반환 결과(실측, 공개 라이브러리 총량은 약 180만 건이며, 가독성을 위해 아래 예제에서 일부 긴 필드를 생략함):

{
  "total": 1829200,
  "items": [
    {
      "_id": "8d2c17a9b26d4d83888ea67a1ee565b2",
      "type": "tts",
      "title": "Valentino Narración Biblica Fer",
      "description": "A mature and authoritative male voice with a calm, spiritual tone...",
      "cover_image": "coverimage/8d2c17a9b26d4d83888ea67a1ee565b2",
      "train_mode": "fast",
      "state": "trained",
      "tags": ["male", "old", "narration", "calm", "Spanish"],
      "samples": [
        {
          "title": "Default Sample",
          "text": "Hermanos míos, recordemos las palabras del Señor...",
          "task_id": "59ce7df6935c42249759327ddf70f37b",
          "audio": "https://platform.r2.fish.audio/task/59ce7df6935c42249759327ddf70f37b.mp3"
        }
      ],
      "languages": ["es"],
      "visibility": "public",
      "like_count": 4344,
      "task_count": 708461,
      "author": {
        "_id": "1b82fb6a329c4462b67aa9ee0a42046f",
        "nickname": "Fernando Caicedo"
      }
    },
    {
      "_id": "90e65eaaf50e4470b8e6d43ee6afd7d5",
      "type": "tts",
      "title": "Super Smash Bros. 4/Ultimate Announcer",
      "tags": ["male", "old", "announcer", "gaming", "cinematic"],
      "languages": ["en"],
      "visibility": "public"
    }
  ],
  "has_more": null
}

예제 2: 제목으로 부분 검색 (title)

curl -G 'https://api.yxai-tech.top/fish/model' \
  -H 'authorization: Bearer {token}' \
  --data-urlencode 'title=narration' \
  --data-urlencode 'page_size=2'

반환 결과(실측):

{
  "total": 161,
  "items": [
    {
      "_id": "fb8fe4a94658429d9be70efd4eec35a2",
      "type": "tts",
      "title": "Miles Morales ( Narration Paw )",
      "tags": ["male", "middle-aged", "entertainment", "storytelling", "Children's Content"],
      "languages": ["en"],
      "visibility": "public",
      "task_count": 770
    },
    {
      "_id": "76b55591c758444cb95253708696dfad",
      "type": "tts",
      "title": "Joe NARRATION",
      "tags": ["male", "middle-aged", "narration", "deep", "raspy"],
      "languages": ["en"],
      "visibility": "public"
    }
  ],
  "has_more": null
}

title은 「전체 부분 일치」 검색이므로 Fish 공개 라이브러리의 모든 음색이 검색 대상에 포함됩니다(자신의 음색뿐만이 아님).

예제 3: 자신이 생성한 음색만 나열 (self=true)

curl -G 'https://api.yxai-tech.top/fish/model' \
  -H 'authorization: Bearer {token}' \
  --data-urlencode 'self=true' \
  --data-urlencode 'page_size=5'

반환 예제:

{
  "total": 1,
  "items": [
    {
      "_id": "e5c6db52c3ed417f9cb2e5a33fb04667",
      "type": "tts",
      "title": "copilot-smoke-test",
      "description": "smoke test from api.acedata.cloud",
      "state": "trained",
      "languages": ["zh"],
      "visibility": "public",
      "samples": [
        {
          "title": "Default Sample",
          "text": "师父,[语气坚定]我真的受够了这山上的清冷日子!...",
          "task_id": "6a1bf398dfae49dca0e23159214342a0",
          "audio": "https://platform.r2.fish.audio/task/6a1bf398dfae49dca0e23159214342a0.mp3"
        }
      ],
      "created_at": "2026-05-10T03:52:55.601000Z",
      "author": {
        "_id": "780f2b2f862d41a08c0507bbbda77eb6",
        "nickname": "Penny Conrad"
      }
    }
  ],
  "has_more": false
}

self=true는 실제 호출 계정을 기준으로 이 플랫폼을 통해 생성하고 저장한 음색을 나열하며, 같은 계정에서 서로 다른 API Token을 사용해 생성한 음색도 함께 나열됩니다. 결과는 생성 시간의 내림차순으로 페이지별로 표시되며, author_id로 해당 음색의 작성자 ID를 추가로 필터링할 수 있습니다. 이 매개변수는 목록만 필터링하며, 음색은 여전히 공개적으로 사용할 수 있습니다.

self=true는 title_language를 지원하지 않습니다. 제목 언어로 검색하려면 공개 음색 라이브러리를 조회하세요.

예제 4: 언어 + 태그로 필터링

curl -G 'https://api.yxai-tech.top/fish/model' \
  -H 'authorization: Bearer {token}' \
  --data-urlencode 'language=zh' \
  --data-urlencode 'tag=narration' \
  --data-urlencode 'page_size=5'

tag는 비교적 느슨하게 일치합니다. 검색 결과가 0개라면 title을 사용한 부분 일치 검색으로 변경하는 것이 좋습니다.

응답 필드

items[]의 각 항목은 완전한 ModelEntity 객체이며, 자주 사용하는 필드는 다음과 같습니다.

필드 유형 설명
_id string 음색 ID로, /fish/tts의 reference_id 값으로 사용합니다.
type string 모델 유형으로, 일반적으로 tts입니다.
title string 음색 이름.
description string 음색 설명.
state string 학습 상태: trained는 사용 가능함을 나타냅니다.
tags string[] 공개 라이브러리 태그.
languages string[] 음색이 잘 구사하는 언어.
visibility string public 또는 private.
samples object[] 사전 설정된 샘플(audio 직접 링크 포함).
like_count integer 공개 라이브러리 좋아요 수.
task_count integer 누적 합성 횟수.
author object 음색 작성자 정보: _id / nickname / avatar.
total(최상위) integer 조건을 충족하는 총 항목 수.
has_more boolean? self=true일 때는 불리언 값이며, 공개 음색 라이브러리 조회 시에는 null일 수 있습니다.

요금 안내

이 인터페이스는 요금이 부과되지 않습니다. 페이지별로 음색 목록을 조회하는 작업은 무료입니다. 음색 생성(Fish Model Create)도 무료이며, 요금은 Fish TTS를 호출하여 음성을 합성할 때만 사용량에 따라 발생합니다.

오류 처리

  • 400 token_mismatched: 요청 매개변수가 누락되었거나 유효하지 않습니다.
  • 401 invalid_token: 인증 token이 존재하지 않거나 유효하지 않습니다.
  • 429 too_many_requests: 계정 속도 제한에 도달했습니다.
  • 500 api_error: 서버 내부 오류입니다.

오류 응답 예제:

{
  "success": false,
  "error": {
    "code": "api_error",
    "message": "fetch failed"
  },
  "trace_id": "2cf86e86-22a4-46e1-ac2f-032c0f2a4e89"
}

결론

Fish 공개 라이브러리에서 음색을 선택해 /fish/tts의 reference_id에 전달하려면, 먼저 이 인터페이스에서 title / tag / language를 사용해 검색하여 대상 _id를 찾은 다음, Fish Model Get으로 샘플을 가져와 들어보세요. 직접 만든 음색을 나열하려면 self=true를 전달하면 됩니다.