Finady Inc. Billing API

The billing API from Finady Inc., for billing.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 5

POST /api/v1/billing/checkout Stripe チェックアウトセッションを作成する(Web / IDトークンのみ) #
POST /api/v1/billing/checkout-link 決済リンクを発行する(create_checkout) #
POST /api/v1/billing/portal Stripe カスタマーポータルのURLを発行する #
GET /api/v1/billing/subscription サブスクリプション状態・エンタイトルメント・クオータを取得する #

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/yukkurigen-com:yukkurigen-com-billing-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

yukkurigen-com-billing-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: YukkuriGen AI-operated Billing API
  version: 1.1.0
  description: AI(Claude / Cursor / スクリプト)から YukkuriGen を操作し、台本から MP4 を生成する REST API。音声の合成からレンダーまでサーバ側で行います。MCP でも同じ機能を提供します(POST /api/mcp)。
servers:
- url: https://app.yukkurigen.com
security:
- bearerAuth: []
tags:
- name: Billing
paths:
  /api/v1/billing/checkout:
    post:
      summary: Stripe チェックアウトセッションを作成する(Web / IDトークンのみ)
      operationId: post_api_v1_billing_checkout
      tags:
      - Billing
      security:
      - bearerAuth: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - priceKey
              - successUrl
              - cancelUrl
              properties:
                priceKey:
                  type: string
                successUrl:
                  type: string
                  format: uri
                  description: app.yukkurigen.com のURL
                cancelUrl:
                  type: string
                  format: uri
                  description: app.yukkurigen.com のURL
      responses:
        '200':
          description: チェックアウトURL
          content:
            application/json:
              schema:
                type: object
                properties:
                  url:
                    type: string
                    format: uri
                  sessionId:
                    type: string
        '400':
          description: 'リクエスト不正(code: validation_error)'
        '401':
          description: 未認証
        '409':
          description: 'すでに有料プランの購読がある(code: already_subscribed、manageUrl 同梱)。プラン変更はカスタマーポータル(POST /api/v1/billing/portal)で'
        '503':
          description: 'その商品が現在購入できない(code: price_unavailable)'
  /api/v1/billing/checkout-link:
    post:
      summary: 決済リンクを発行する(create_checkout)
      operationId: post_api_v1_billing_checkout-link
      tags:
      - Billing
      security:
      - apiKey: []
      - bearerAuth: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - priceKey
              properties:
                priceKey:
                  type: string
                  enum:
                  - standard
                  - pro
                  - enterprise
                  - lifetime_ymm4
                  - credit_pack_50
                  - credit_pack_150
                  - credit_pack_500
                  description: 402 応答の purchase.priceKey をそのまま渡す。これ以外(販売を止めた旧レンダーパック render_pack_* を含む)は 400 validation_error で、本文の allowedPriceKeys に受け付ける値が入る
                successUrl:
                  type: string
                  description: 省略可。渡す場合は app.yukkurigen.com のURL
                cancelUrl:
                  type: string
                  description: 省略可
      responses:
        '200':
          description: 決済リンクを作成した
          content:
            application/json:
              schema:
                type: object
                properties:
                  url:
                    type:
                    - string
                    - 'null'
                    description: 利用者に渡す購入ページ
                  sessionId:
                    type: string
                    description: 状態確認に使う
                  priceKey:
                    type: string
                  nextStep:
                    type: string
        '400':
          description: 'priceKey が不正(code: validation_error)'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: '未認証(code: unauthenticated)'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: 権限不足(credits:read)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: 'すでに有料プランの購読がある(code: already_subscribed)。2本目の購読は二重請求になるため受け付けない。プランの変更・解約は manageUrl(請求ページ)からカスタマーポータルで利用者本人が行う'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: 'レート制限(code: rate_limited)'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: 'その商品が現在購入できない(code: price_unavailable)'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /api/v1/billing/checkout-link/{sessionId}:
    get:
      summary: 支払いが済んだかを返す(get_checkout)
      operationId: get_api_v1_billing_checkout-link_sessionId
      tags:
      - Billing
      security:
      - apiKey: []
      - bearerAuth: []
      parameters:
      - name: sessionId
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: 状態。paid は入金が確定したという意味で、コンビニ・銀行振込などの後払いの決済は入金されるまで pending のまま(クレジットや権利も入金まで付かない)
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                    - paid
                    - pending
                    - expired
                  credits:
                    type: number
                    description: 現在の残高
                  planTier:
                    type: string
                  creditsAdded:
                    type:
                    - integer
                    - 'null'
                  reconciled:
                    type: boolean
                    description: webhook を取りこぼしていて、この呼び出しで反映した場合に true
                  nextStep:
                    type: string
        '401':
          description: '未認証(code: unauthenticated)'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: 権限不足(credits:read)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: 'セッションが見つからない、他人のもの、または sessionId の形が違う(cs_live_… / cs_test_… でない)(code: not_found)'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: '確認の回数の上限(1人あたり1分に30回)。retry-after を待ってから確認する(code: rate_limited)'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /api/v1/billing/portal:
    post:
      summary: Stripe カスタマーポータルのURLを発行する
      operationId: post_api_v1_billing_portal
      tags:
      - Billing
      security:
      - bearerAuth: []
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                returnUrl:
                  type: string
                  format: uri
      responses:
        '200':
          description: ポータルURL
          content:
            application/json:
              schema:
                type: object
                properties:
                  url:
                    type: string
                    format: uri
        '400':
          description: 'リクエスト不正(code: validation_error)'
        '401':
          description: 未認証
  /api/v1/billing/subscription:
    get:
      summary: サブスクリプション状態・エンタイトルメント・クオータを取得する
      operationId: get_api_v1_billing_subscription
      tags:
      - Billing
      security:
      - bearerAuth: []
      responses:
        '200':
          description: サブスクリプション情報
          content:
            application/json:
              schema:
                type: object
                properties:
                  subscription:
                    type: object
                    properties:
                      planTier:
                        type: string
                      planName:
                        type: string
                      priceJpy:
                        type: integer
                      status:
                        type: string
                      currentPeriodEnd:
                        type: string
                        format: date-time
                      cancelAtPeriodEnd:
                        type: boolean
                      paymentFailed:
                        type: boolean
                  entitlements:
                    type: object
                    properties:
                      apiAccess:
                        type: boolean
                      lifetime:
                        type: boolean
                  quotas:
                    type: object
                    properties:
                      limits:
                        type: object
                      usage:
                        type: object
                      extraCredits:
                        type: integer
                      totalAvailableCredits:
                        type: integer
                      legacyExtraCredits:
                        type: integer
                  onboarding:
                    type: object
                    properties:
                      completed:
                        type: boolean
        '401':
          description: 未認証
components:
  schemas:
    PurchaseSuggestion:
      type: object
      description: 402 のときに「これを買えば続けられる」を1つだけ示す(purchase)。無料プランの MP4 の plan_required だけは、少額の代わり(alternative・いちばん小さいクレジットパック)も添える。
      properties:
        priceKey:
          type: string
          description: checkout-link にそのまま渡す値
        label:
          type: string
        amountJpy:
          type: integer
        credits:
          type: integer
        reason:
          type: string
    Error:
      type: object
      properties:
        error:
          type: string
        code:
          type: string
          enum:
          - unauthenticated
          - signup_required
          - invalid_credentials
          - insufficient_scope
          - forbidden
          - plan_required
          - insufficient_credits
          - rate_limited
          - validation_error
          - not_found
          - template_not_found
          - line_not_found
          - duplicate_index
          - unknown_speaker
          - missing_audio
          - cast_mismatch
          - unsupported_field
          - price_unavailable
          - progress_unavailable
          - render_start_failed
          - render_in_progress
          - idempotency_key_reused
          - local_render_not_allowed
          - local_render_start_failed
          - local_render_complete_failed
          - not_uploaded
          - invalid_upload
          - render_id_in_use
          - internal_error
          - in_flight
          - unavailable
          - jobs_unavailable
          - ai_script_unavailable
          - ai_script_daily_cap
          - ai_script_user_daily_limit
          - too_many_concurrent_renders
          - callback_unavailable
          - generate_failed
          - quota_exceeded
          - dictionary_full
          - tts_quota_exceeded
          - already_subscribed
          - render_not_paid
          - render_not_ready
          - youtube_not_connected
          - template_in_use
          - subscription_cancel_failed
          description: エラー種別。render_in_progress はレンダーが進行中のためプロジェクトを削除できない(DELETE /projects/{projectId} の 409)。template_in_use はテンプレートがプロジェクトまたはチャンネルから参照されているため削除できない(DELETE /templates/{templateId} の 409)。progress_unavailable は進捗が読めなかっただけで、レンダー自体は継続している可能性がある(打ち切らないこと)。template_not_found は templateId が存在しない/他人のもの——課金は起きていないので、list_templates を引き直して投げ直す。tts_quota_exceeded は音声生成の月の文字数を使い切った(429。待っても resetAt まで戻らない——rate_limited と違い投げ直さない)。subscription_cancel_failed は退会時の Stripe 購読解約に失敗した(503)。しばらく時間をおいてから再試行してください。
        limit:
          type: integer
          description: tts_quota_exceeded のとき、今月の音声生成の文字数の上限。無料プランで購入なし 10,000・クレジットパックの残高がある/API連携ライセンスを持つ人は 500,000・スタンダード 500,000・プロ 2,000,000・エンタープライズ 5,000,000(暴走止め)。
        used:
          type: integer
          description: tts_quota_exceeded のとき、今月これまでに使った文字数。
        resetAt:
          type: string
          format: date-time
          description: tts_quota_exceeded のとき、使用量が 0 に戻る日時。生きている購読者は次の請求日、それ以外は日本時間の月初。
        purchaseUrl:
          type: string
          format: uri
        retryAfter:
          type: integer
          description: 429 のとき。再試行までの秒数(Retry-After ヘッダと同値)。
        validSpeakers:
          type: array
          items:
            type: string
          description: 未知の speaker / キャラid を送ったとき。使用可能なキャラid の一覧。
        purchase:
          $ref: '#/components/schemas/PurchaseSuggestion'
          description: 402 のとき、これを買えば足りるという1件。
        shortfall:
          type: integer
          description: 402 のとき、足りないクレジット数。
        alternative:
          $ref: '#/components/schemas/PurchaseSuggestion'
          description: MP4 の 402 plan_required(無料プラン)のときだけ。月額(purchase)の代わりに少額で始める道として、いちばん小さいクレジットパック(買い切り・期限なし)。無料プランのままでも、買ったクレジットが残っている間は MP4 を書き出せる。
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'API key: Authorization: Bearer yg_live_...  (発行: /settings/api-keys)'
    apiKey:
      type: http
      scheme: bearer
      description: 'A YukkuriGen API key issued at /api/v1/api-keys, sent as Authorization: Bearer <key>. Scoped; each operation documents its 403.'