{"items":[{"type":"link","label":"ユニットシステム","link":"/ja/reference/unit_system","routeSlug":"/ja/reference/unit_system","content":{"contentType":"overview","meta":{"name":"ユニットシステム"},"children":[{"nodeType":"container","panels":[{"title":"Download OpenAPI description","titleTranslationKey":"download.description.title","children":[{"kind":"download","label":"unit_system.json","url":"/_bundle/@l10n/ja/reference/unit_system.json?download"},{"kind":"download","label":"unit_system.yaml","url":"/_bundle/@l10n/ja/reference/unit_system.yaml?download"}]},{"title":"Overview","titleTranslationKey":"info.title","children":[{"kind":"email","title":"E-mail","titleTranslationKey":"info.contact.name","email":"YouCamOnlineEditor_API@perfectcorp.com","label":"YouCamOnlineEditor_API@perfectcorp.com","withCopyButton":true,"copyContent":"YouCamOnlineEditor_API@perfectcorp.com"},{"kind":"externallink","title":"License","titleTranslationKey":"info.license","label":"Privacy policy","url":"https://www.makeupar.com/perfectbeauty/youcam/privacy-policy-api"},{"kind":"externallink","label":"Terms of Service","labelTranslationKey":"info.termsOfService","url":"https://www.makeupar.com/perfectbeauty/youcam/terms-of-service-api"}]},{"title":"Languages","titleTranslationKey":"languages.title","children":[{"kind":"languages","options":[{"key":"curl","title":"curl","lang":"curl"},{"key":"javascript","title":"JavaScript","lang":"JavaScript"},{"key":"node","title":"Node.js","lang":"Node.js"},{"key":"python","title":"Python","lang":"Python"},{"key":"java","title":"Java","lang":"Java"},{"key":"csharp","title":"C#","lang":"C#"},{"key":"php","title":"PHP","lang":"PHP"},{"key":"go","title":"Go","lang":"Go"},{"key":"ruby","title":"Ruby","lang":"Ruby"},{"key":"r","title":"R","lang":"R"},{"key":"payload","title":"Payload","lang":"Payload"}]}]},{"title":"Servers","titleTranslationKey":"servers.title","children":[{"kind":"servers","servers":[{"url":"https://yce-api-01.makeupar.com"}],"mode":"default"}]}],"children":[{"nodeType":"overview-section-wrapper","children":[{"nodeType":"header","level":1,"label":"ユニットシステム","showPageActions":true},{"nodeType":"overview-section-wrapper","children":[{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"ユニットの詳細と使用履歴を確認します。ユニットは YouCam API 操作で使用される通貨であり、異なる AI 機能によって消費されるユニットの量は異なります。本ドキュメントでは、ユニットのコード名として \"Credit\" を使用しています。"},"children":[]}]}]}]}],"sectionId":"/ja/reference/unit_system"}],"sectionId":"/ja/reference/unit_system"}]}]}},{"label":"ユニット情報を取得","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/ja/reference/unit_system/paths/~1s2s~1v1.0~1client~1credit/get","routeSlug":"/ja/reference/unit_system/paths/~1s2s~1v1.0~1client~1credit/get","metadata":{"seo":{"title":"ユニット情報を取得","description":"利用可能な API ユニットを小数点以下 2 桁まで表示します"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"name":"ユニット情報を取得","isWebhook":false,"pointer":"/paths/~1s2s~1v1.0~1client~1credit/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"ユニット情報を取得","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"利用可能な API ユニットを小数点以下 2 桁まで表示します"},"children":[]}]}]}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"BearerAuthentication","scopes":[],"type":"http","scheme":"bearer","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"認証で取得した "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"access_token"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" を使用し、ヘッダーに渡します："},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Authorization:Bearer <access_token>"},"children":[]}]}]}]}]}]}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/s2s/v1.0/client/credit","servers":[{"url":"https://yce-api-01.makeupar.com"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"BearerAuthentication","type":"http","scheme":"bearer"}],"scopes":[]}],"responseCodes":["200","401"],"pointer":"/s2s/v1.0/client/credit","href":"paths/~1s2s~1v1.0~1client~1credit/get","summary":"ユニット情報を取得"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://yce-api-01.makeupar.com"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"ユニット情報の取得に成功しました"},"children":[]}]}]}],"mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_2094"}},"schemaId":"schema_2094"},{"code":"401","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"認証に失敗したか、ユーザーに必要な権限がありません"},"children":[]}]}]}]}],"pointer":"/paths/~1s2s~1v1.0~1client~1credit/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"schema_2094","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_2094"}}},{"code":"401"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/paths/~1s2s~1v1.0~1client~1credit/get"}],"panels":[]}]},"httpPath":"/s2s/v1.0/client/credit"},{"label":"ユニット履歴を表示","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/ja/reference/unit_system/paths/~1s2s~1v1.0~1client~1credit~1history/get","routeSlug":"/ja/reference/unit_system/paths/~1s2s~1v1.0~1client~1credit~1history/get","metadata":{"seo":{"title":"ユニット履歴を表示","description":"ユニット履歴を表示"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"name":"ユニット履歴を表示","isWebhook":false,"pointer":"/paths/~1s2s~1v1.0~1client~1credit~1history/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"ユニット履歴を表示","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"security","requirements":[{"schemes":[{"name":"BearerAuthentication","scopes":[],"type":"http","scheme":"bearer","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"認証で取得した "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"access_token"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" を使用し、ヘッダーに渡します："},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Authorization:Bearer <access_token>"},"children":[]}]}]}]}]}]},{"nodeType":"item-content","variant":"query","label":"Query","labelTranslationKey":"query","parameters":[{"name":"page_size","in":"query","schemaId":"schema_2095","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"1 ページあたりの返却結果数。有効な値は 1 から 30 です。初期値は 20 です。"},"children":[]}]}]}]},{"name":"starting_token","in":"query","schemaId":"schema_2096","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"現在のページのトークン。最初のページでは "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"null"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" で開始し、次のページを開始するには前回のレスポンスの "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"next_token"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" を使用してください"},"children":[]}]}]}]}],"pointer":"/paths/~1s2s~1v1.0~1client~1credit~1history/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/s2s/v1.0/client/credit/history","servers":[{"url":"https://yce-api-01.makeupar.com"}],"parameters":{"path":[],"query":[{"name":"page_size","in":"query","example":20,"schemaId":"schema_2095"},{"name":"starting_token","in":"query","example":"73a3c9e69b89","schemaId":"schema_2096"}],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"BearerAuthentication","type":"http","scheme":"bearer"}],"scopes":[]}],"responseCodes":["200","400","401"],"pointer":"/s2s/v1.0/client/credit/history","href":"paths/~1s2s~1v1.0~1client~1credit~1history/get","summary":"ユニット履歴を表示"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://yce-api-01.makeupar.com"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"ユニット使用履歴の取得に成功しました"},"children":[]}]}]}],"mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_2097"}},"schemaId":"schema_2097"},{"code":"400","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"無効なリクエストパラメータ"},"children":[]}]}]}],"mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_2098"}},"schemaId":"schema_2098"},{"code":"401","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"無効なアクセストークン"},"children":[]}]}]}],"mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_2099"}},"schemaId":"schema_2099"}],"pointer":"/paths/~1s2s~1v1.0~1client~1credit~1history/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"schema_2097","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_2097"}}},{"code":"400","schemaId":"schema_2098","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_2098"}}},{"code":"401","schemaId":"schema_2099","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_2099"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/paths/~1s2s~1v1.0~1client~1credit~1history/get"}],"panels":[]}]},"httpPath":"/s2s/v1.0/client/credit/history"},{"label":"機能コストの取得","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/ja/reference/unit_system/paths/~1s2s~1v2.0~1credit~1feature-cost/get","routeSlug":"/ja/reference/unit_system/paths/~1s2s~1v2.0~1credit~1feature-cost/get","metadata":{"seo":{"title":"機能コストの取得","description":"各 API のユニット消費量を確認します。値は https://yce.perfectcorp.com/ai-api/api-pricing に記載されているものと一致しています。"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"name":"機能コストの取得","isWebhook":false,"pointer":"/paths/~1s2s~1v2.0~1credit~1feature-cost/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"機能コストの取得","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"各 API のユニット消費量を確認します。値は https://yce.perfectcorp.com/ai-api/api-pricing に記載されているものと一致しています。"},"children":[]}]}]}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"BearerAuthenticationV2","scopes":[],"type":"http","scheme":"bearer","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"標準の「Bearer 認証」を使用します。ヘッダーに「API キー」を指定します："},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Authorization:Bearer YOUR_API_KEY"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"。「Bearer」と「YOUR_API_KEY」の間にスペースが 1 つあることに注意してください。"},"children":[]}]}]}]}]}]},{"nodeType":"item-content","variant":"query","label":"Query","labelTranslationKey":"query","parameters":[{"name":"page_size","in":"query","schemaId":"schema_2100","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"1 ページあたりに返される結果の数。初期値は 20。値の範囲：[1 - 20]"},"children":[]}]}]}]},{"name":"starting_token","in":"query","schemaId":"schema_2101","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"現在のページのトークン。最初のページでは "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"null"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" で開始し、次のページを開始するには前のレスポンスの "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"next_token"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" を使用します"},"children":[]}]}]}]}],"pointer":"/paths/~1s2s~1v2.0~1credit~1feature-cost/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/s2s/v2.0/credit/feature-cost","servers":[{"url":"https://yce-api-01.makeupar.com"}],"parameters":{"path":[],"query":[{"name":"page_size","in":"query","example":20,"schemaId":"schema_2100"},{"name":"starting_token","in":"query","example":"MjA","schemaId":"schema_2101"}],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"BearerAuthenticationV2","type":"http","scheme":"bearer"}],"scopes":[]}],"responseCodes":["200","400","401"],"pointer":"/s2s/v2.0/credit/feature-cost","href":"paths/~1s2s~1v2.0~1credit~1feature-cost/get","summary":"機能コストの取得"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://yce-api-01.makeupar.com"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"SKU ごとの機能コストの取得に成功しました"},"children":[]}]}]}],"mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_2102","exampleIds":["paths/~1s2s~1v2.0~1credit~1feature-cost/get/responses/200/content/application~1json/example"]}},"schemaId":"schema_2102","exampleIds":["paths/~1s2s~1v2.0~1credit~1feature-cost/get/responses/200/content/application~1json/example"]},{"code":"400","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"無効なリクエストパラメータ"},"children":[]}]}]}],"mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_2098"}},"schemaId":"schema_2098"},{"code":"401","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"無効または欠落している API キー"},"children":[]}]}]}],"mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_2103"}},"schemaId":"schema_2103"}],"pointer":"/paths/~1s2s~1v2.0~1credit~1feature-cost/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"schema_2102","exampleIds":["paths/~1s2s~1v2.0~1credit~1feature-cost/get/responses/200/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_2102","exampleIds":["paths/~1s2s~1v2.0~1credit~1feature-cost/get/responses/200/content/application~1json/example"]}}},{"code":"400","schemaId":"schema_2098","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_2098"}}},{"code":"401","schemaId":"schema_2103","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_2103"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/paths/~1s2s~1v2.0~1credit~1feature-cost/get"}],"panels":[]}]},"httpPath":"/s2s/v2.0/credit/feature-cost"}],"store":{"schemaStore":{"schema_2094":{"kind":"json-schema","data":{"type":"object","properties":{"status":{"type":"integer","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"レスポンスステータス"},"children":[]}]}]}],"example":200},"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"このユニットの一意な識別子"},"children":[]}]}]}],"example":13105541279084536},"type":{"type":"string","enum":["ApiSubsToken","ApiPaygToken"],"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"このユニットのタイプ"},"children":[]}]}]}]},"amount":{"deprecated":true,"type":"integer","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"このパラメータは非推奨です。代わりに amount_dec を使用してください。現在のユニット残高。"},"children":[]}]}]}],"example":10},"amount_dec":{"type":"number","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"小数点以下 2 桁まで表示される残りのユニット数。"},"children":[]}]}]}],"example":10.04},"expiry":{"type":"integer","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"このユニットの有効期限の Unix タイムスタンプ (ms)"},"children":[]}]}]}],"example":1704789135000}}}}}},"id":"schema_2094"},"schema_2095":{"kind":"json-schema","data":{"type":"integer","example":20},"id":"schema_2095"},"schema_2096":{"kind":"json-schema","data":{"type":"string","example":"73a3c9e69b89"},"id":"schema_2096"},"schema_2097":{"kind":"json-schema","data":{"type":"object","properties":{"status":{"type":"integer","example":200,"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"レスポンスステータス"},"children":[]}]}]}]},"result":{"type":"object","properties":{"next_token":{"type":"string","example":"73a3c9e69b89","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"次のページを照会するためのトークン。"},"children":[]}]}]}]},"history":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","example":38173479337460984,"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"履歴の一意な識別子"},"children":[]}]}]}]},"timestamp":{"type":"integer","example":1703146067000,"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"履歴の Unix タイムスタンプ（ms）"},"children":[]}]}]}]},"action":{"type":"string","example":"photo_enhance","enum":["photo_enhance","api_photo_enhance","object_removal","api_object_removal","background_removal","api_background_removal","colorize","api_colorize","text_to_image","api_text_to_image","hair_style","api_hair_style","blur_background","change_background","wig","trial_gift_text_to_image","sign_up_gift","subscription_credits","subscriber_gift","permanent_credits","compensation_from_customer_service","renew","expire"],"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"この履歴のアクション"},"children":[]}]}]}]},"target_id":{"type":"string","example":"7TWFkuE2Z9uR0NOxSmQ1rh4PJ5Zx7YJ5U9SAz51q0QHVwMP+Jb1XbjPsf7ZgUgLY","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"このユニットのターゲットの ID。例えば、AI 高画質化タスクを実行する場合、この履歴の "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"target_id"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" は AI 高画質化タスクの "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"task_id"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" になります。ユニットを購入する場合、この履歴の "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"target_id"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" は "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"order_id"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" になります"},"children":[]}]}]}]},"info":{"type":"object","properties":{"credits":{"type":"array","example":[{"id":24409059381740548,"amount":-2},{"id":27297116883780870,"amount":0}],"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"各ユニットの詳細情報"},"children":[]}]}]}],"items":{"type":"object","properties":{"id":{"type":"integer","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"ユニットの ID"},"children":[]}]}]}]},"amount":{"deprecated":true,"type":"integer","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"このパラメータは非推奨です。代わりに "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"amount_dec"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" を使用してください。このユニットによる変更の合計量。"},"children":[]}]}]}]},"amount_dec":{"type":"number","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"記録されたユニットの正味変化量。小数点以下 2 桁で表示されます。"},"children":[]}]}]}]}}}},"dst_actions":{"type":"array","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"AI 肌分析の dst_actions"},"children":[]}]}]}],"items":{"type":"string"},"example":"[ \"hd_wrinkle\", \"hd_pore\", \"hd_texture\" ]"}}}}}}}}}},"id":"schema_2097"},"schema_2098":{"kind":"json-schema","data":{"type":"object","properties":{"status":{"type":"integer","example":400,"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"レスポンスステータス"},"children":[]}]}]}]},"error":{"type":"string","example":"Invalid parameter value"},"error_code":{"type":"string","example":"InvalidParameters"}}},"id":"schema_2098"},"schema_2099":{"kind":"json-schema","data":{"type":"object","properties":{"status":{"type":"integer","example":401,"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"レスポンスステータス"},"children":[]}]}]}]},"error_code":{"type":"string","enum":["InvalidAccessToken"],"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"エラーコード:"},"children":[]}]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":false,"marker":"*"},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"InvalidAccessToken - アクセストークンが指定されていないか、有効ではありません"},"children":[]}]}]}]}]}}},"id":"schema_2099"},"schema_2100":{"kind":"json-schema","data":{"type":"integer","example":20,"minimum":1,"maximum":20},"id":"schema_2100"},"schema_2101":{"kind":"json-schema","data":{"type":"string","example":"MjA"},"id":"schema_2101"},"schema_2102":{"kind":"json-schema","data":{"type":"object","properties":{"status":{"type":"integer","example":200,"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"レスポンスステータス"},"children":[]}]}]}]},"result":{"type":"object","properties":{"next_token":{"type":"string","example":"MjA","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"次のページを照会するためのトークン。これ以上ページがない場合は "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"null"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"。"},"children":[]}]}]}]},"skus":{"type":"array","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"SKU のリスト"},"children":[]}]}]}],"items":{"type":"object","properties":{"description":{"type":"string","example":"AI Skin Analysis for SD 1~4 concerns","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"SKU の説明"},"children":[]}]}]}]},"amount":{"type":"number","example":9,"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"proc_unit"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" あたりの消費ユニット数"},"children":[]}]}]}]},"unit":{"type":"string","enum":["result_image","second"],"example":"result_image","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"コストの測定単位"},"children":[]}]}]}]},"proc_unit":{"type":"integer","example":1,"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"amount"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" の 1 回の課金に含まれる "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"unit"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" の数"},"children":[]}]}]}]},"run_task_url":{"type":"string","example":"https://yce-api-01.makeupar.com/s2s/v2.0/task/skin-analysis","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"この SKU を消費するタスクエンドポイントの完全な URL"},"children":[]}]}]}]}}}}}}}},"id":"schema_2102"},"schema_2103":{"kind":"json-schema","data":{"type":"object","properties":{"status":{"type":"integer","example":401,"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"レスポンスステータス"},"children":[]}]}]}]},"error":{"type":"string","example":"Invalid API key"}}},"id":"schema_2103"}},"exampleStore":{"paths/~1s2s~1v2.0~1credit~1feature-cost/get/responses/200/content/application~1json/example":{"value":{"status":200,"result":{"next_token":"MjA","skus":[{"description":"SD 1～4 の懸念事項に対する AI 肌分析","amount":9,"unit":"result_image","proc_unit":1,"run_task_url":"https://yce-api-01.makeupar.com/s2s/v2.0/task/skin-analysis"},{"description":"SD 5～7 の懸念事項に対する AI 肌分析","amount":12,"unit":"result_image","proc_unit":1,"run_task_url":"https://yce-api-01.makeupar.com/s2s/v2.0/task/skin-analysis"}]}},"id":"paths/~1s2s~1v2.0~1credit~1feature-cost/get/responses/200/content/application~1json/example"}},"securitySchemeStore":{"BearerAuthentication":{"id":"BearerAuthentication","type":"http","scheme":"bearer","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"認証で取得した "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"access_token"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" を使用し、ヘッダーに渡します："},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Authorization:Bearer <access_token>"},"children":[]}]}]}]},"BearerAuthenticationV2":{"id":"BearerAuthenticationV2","type":"http","scheme":"bearer","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"標準の「Bearer 認証」を使用します。ヘッダーに「API キー」を指定します："},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Authorization:Bearer YOUR_API_KEY"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"。「Bearer」と「YOUR_API_KEY」の間にスペースが 1 つあることに注意してください。"},"children":[]}]}]}]}},"servers":[{"url":"https://yce-api-01.makeupar.com"}],"specType":"openapi"},"options":{"layout":"stacked","mockServer":{"off":true,"position":"off"},"disableRouter":true,"downloadUrls":[{"url":"/_bundle/@l10n/ja/reference/unit_system.json?download"},{"url":"/_bundle/@l10n/ja/reference/unit_system.yaml?download"}],"excludeFromSearch":false,"replayFeatures":{"graphql":false},"specType":"openapi","markdocOptions":{"tags":{},"nodes":{},"components":{}},"metadata":{"title":"ユニットシステム","description":"ユニットの詳細と使用履歴を確認します。ユニットは YouCam API 操作で使用される通貨であり、異なる AI 機能によって消費されるユニットの量は異なります。本ドキュメントでは、ユニットのコード名として \"Credit\" を使用しています。\n"}},"baseSlug":"/ja/reference/unit_system","routesMapping":{}}