{"items":[{"type":"link","label":"Unit system","link":"/reference/unit_system","routeSlug":"/reference/unit_system","content":{"contentType":"overview","meta":{"name":"Unit system"},"children":[{"nodeType":"container","panels":[{"title":"Download OpenAPI description","titleTranslationKey":"download.description.title","children":[{"kind":"download","label":"unit_system.json","url":"/_bundle/reference/unit_system.json?download"},{"kind":"download","label":"unit_system.yaml","url":"/_bundle/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/youcamapps/youcam/privacy-policy.html"},{"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":"Unit system","showPageActions":true},{"nodeType":"overview-section-wrapper","children":[{"nodeType":"markdoc","content":"Check your unit details and usage history. Please note that Units is the currency used for YouCam API operations; different AI features deduct different amounts of units. In this document, the code name used for a Unit is \"Credit.\""}],"sectionId":"/reference/unit_system"}],"sectionId":"/reference/unit_system"}]}]}},{"label":"Get unit info","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/reference/unit_system/paths/~1s2s~1v1.0~1client~1credit/get","routeSlug":"/reference/unit_system/paths/~1s2s~1v1.0~1client~1credit/get","metadata":{"seo":{"title":"Get unit info","description":"Display the available API units to two decimal places"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"name":"Get unit info","isWebhook":false,"pointer":"/paths/~1s2s~1v1.0~1client~1credit/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Get unit info","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"Display the available API units to two decimal places"},{"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":"Use the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"access_token"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" obtained from authentication and pass it in header: "},"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":"Get unit info"},"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":"Successful retrieval of unit info","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_1006"}},"schemaId":"schema_1006"},{"code":"401","description":"Authentication failed or user does not have necessary permissions"}],"pointer":"/paths/~1s2s~1v1.0~1client~1credit/get/responses"}],"panels":[{"children":[{"kind":"response","headerTitle":"Response","responseCodes":[{"code":"200","schemaId":"schema_1006","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_1006"}}},{"code":"401"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/paths/~1s2s~1v1.0~1client~1credit/get"}],"panels":[]}]},"httpPath":"/s2s/v1.0/client/credit"},{"label":"View unit history","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/reference/unit_system/paths/~1s2s~1v1.0~1client~1credit~1history/get","routeSlug":"/reference/unit_system/paths/~1s2s~1v1.0~1client~1credit~1history/get","metadata":{"seo":{"title":"View unit history","description":"View unit history"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"name":"View unit history","isWebhook":false,"pointer":"/paths/~1s2s~1v1.0~1client~1credit~1history/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"View unit history","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":"Use the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"access_token"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" obtained from authentication and pass it in header: "},"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_1007","description":"Number of results to return in a page. Valid value should be between 1 and 30. Default 20."},{"name":"starting_token","in":"query","schemaId":"schema_1008","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Token for current page. Start with "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"null"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" for the first page, and use "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"next_token"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" from the previous response to start next page"},"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_1007"},{"name":"starting_token","in":"query","example":"73a3c9e69b89","schemaId":"schema_1008"}],"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":"View unit history"},"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":"Successful retrieval of the unit usage history","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_1009"}},"schemaId":"schema_1009"},{"code":"400","description":"Invalid request parameters","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_1010"}},"schemaId":"schema_1010"},{"code":"401","description":"Invalid access token","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_1011"}},"schemaId":"schema_1011"}],"pointer":"/paths/~1s2s~1v1.0~1client~1credit~1history/get/responses"}],"panels":[{"children":[{"kind":"response","headerTitle":"Response","responseCodes":[{"code":"200","schemaId":"schema_1009","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_1009"}}},{"code":"400","schemaId":"schema_1010","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_1010"}}},{"code":"401","schemaId":"schema_1011","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_1011"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/paths/~1s2s~1v1.0~1client~1credit~1history/get"}],"panels":[]}]},"httpPath":"/s2s/v1.0/client/credit/history"},{"label":"Get feature cost","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/reference/unit_system/paths/~1s2s~1v2.0~1credit~1feature-cost/get","routeSlug":"/reference/unit_system/paths/~1s2s~1v2.0~1credit~1feature-cost/get","metadata":{"seo":{"title":"Get feature cost","description":"Check the unit consumption for each API. The values are consistent with those listed at https://yce.perfectcorp.com/ai-api/api-pricing."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"name":"Get feature cost","isWebhook":false,"pointer":"/paths/~1s2s~1v2.0~1credit~1feature-cost/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Get feature cost","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"Check the unit consumption for each API. The values are consistent with those listed at https://yce.perfectcorp.com/ai-api/api-pricing."},{"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":"Use the standard 'Bearer authentication'. Put your 'API Key' in header: "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Authorization:Bearer YOUR_API_KEY"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":". Notice that there is ' ' a space between 'Bearer' and the 'YOUR_API_KEY'."},"children":[]}]}]}]}]}]},{"nodeType":"item-content","variant":"query","label":"Query","labelTranslationKey":"query","parameters":[{"name":"page_size","in":"query","schemaId":"schema_1012","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Number of results to return in a page. Default 20. value range: [1 - 20]"},"children":[]}]}]}]},{"name":"starting_token","in":"query","schemaId":"schema_1013","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Token for current page. Start with "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"null"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" for the first page, and use "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"next_token"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" from the previous response to start next page"},"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_1012"},{"name":"starting_token","in":"query","example":"MjA","schemaId":"schema_1013"}],"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":"Get feature cost"},"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":"Successful retrieval of the feature cost by sku","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_1014","exampleIds":["paths/~1s2s~1v2.0~1credit~1feature-cost/get/responses/200/content/application~1json/example"]}},"schemaId":"schema_1014","exampleIds":["paths/~1s2s~1v2.0~1credit~1feature-cost/get/responses/200/content/application~1json/example"]},{"code":"400","description":"Invalid request parameters","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_1010"}},"schemaId":"schema_1010"},{"code":"401","description":"Invalid or missing API key","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_1015"}},"schemaId":"schema_1015"}],"pointer":"/paths/~1s2s~1v2.0~1credit~1feature-cost/get/responses"}],"panels":[{"children":[{"kind":"response","headerTitle":"Response","responseCodes":[{"code":"200","schemaId":"schema_1014","exampleIds":["paths/~1s2s~1v2.0~1credit~1feature-cost/get/responses/200/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_1014","exampleIds":["paths/~1s2s~1v2.0~1credit~1feature-cost/get/responses/200/content/application~1json/example"]}}},{"code":"400","schemaId":"schema_1010","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_1010"}}},{"code":"401","schemaId":"schema_1015","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_1015"}}}],"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_1006":{"kind":"json-schema","data":{"type":"object","properties":{"status":{"type":"integer","description":"Response status","example":200},"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","description":"Unique identifier of this unit","example":13105541279084536},"type":{"type":"string","enum":["ApiSubsToken","ApiPaygToken"],"description":"Type of this unit"},"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":"This paramenter is deprecated. Use amount_dec instead. Current unit balance."},"children":[]}]}]}],"example":10},"amount_dec":{"type":"number","description":"Remaining units displayed to two decimal places.","example":10.04},"expiry":{"type":"integer","description":"Unix timestamp of the expiry of this unit (ms)","example":1704789135000}}}}}},"id":"schema_1006"},"schema_1007":{"kind":"json-schema","data":{"type":"integer","example":20},"id":"schema_1007"},"schema_1008":{"kind":"json-schema","data":{"type":"string","example":"73a3c9e69b89"},"id":"schema_1008"},"schema_1009":{"kind":"json-schema","data":{"type":"object","properties":{"status":{"type":"integer","example":200,"description":"Response status"},"result":{"type":"object","properties":{"next_token":{"type":"string","example":"73a3c9e69b89","description":"Token to query next page."},"history":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","example":38173479337460984,"description":"Unique identifier of the history"},"timestamp":{"type":"integer","example":1703146067000,"description":"Unix timestamp of the history (ms)"},"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":"Action of this history"},"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 of the target for this unit. For example, when running AI Photo Enhance task, "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"target_id"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" for this history will be "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"task_id"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" of the AI Photo Enhance task. When purchasing unit, the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"target_id"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" for this history will be "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"order_id"},"children":[]}]}]}]},"info":{"type":"object","properties":{"credits":{"type":"array","example":[{"id":24409059381740548,"amount":-2},{"id":27297116883780870,"amount":0}],"description":"Detailed information for each unit","items":{"type":"object","properties":{"id":{"type":"integer","description":"Id of the unit"},"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":"This paramenter is deprecated. Use amount_dec instead. Total amount changed from this unit."},"children":[]}]}]}]},"amount_dec":{"type":"number","description":"The net change in units recorded, presented to two decimal places."}}}},"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":"The dst_actions of skin analysis"},"children":[]}]}]}],"items":{"type":"string"},"example":"[ \"hd_wrinkle\", \"hd_pore\", \"hd_texture\" ]"}}}}}}}}}},"id":"schema_1009"},"schema_1010":{"kind":"json-schema","data":{"type":"object","properties":{"status":{"type":"integer","example":400,"description":"Response status"},"error":{"type":"string","example":"Invalid parameter value"},"error_code":{"type":"string","example":"InvalidParameters"}}},"id":"schema_1010"},"schema_1011":{"kind":"json-schema","data":{"type":"object","properties":{"status":{"type":"integer","example":401,"description":"Response status"},"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":"Error code:"},"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 - Access token is not given or not valid"},"children":[]}]}]}]}]}}},"id":"schema_1011"},"schema_1012":{"kind":"json-schema","data":{"type":"integer","example":20,"minimum":1,"maximum":20},"id":"schema_1012"},"schema_1013":{"kind":"json-schema","data":{"type":"string","example":"MjA"},"id":"schema_1013"},"schema_1014":{"kind":"json-schema","data":{"type":"object","properties":{"status":{"type":"integer","example":200,"description":"Response status"},"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":"Token to query next page. "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"null"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" when there are no more pages."},"children":[]}]}]}]},"skus":{"type":"array","description":"List of the skus","items":{"type":"object","properties":{"description":{"type":"string","example":"AI Skin Analysis for SD 1~4 concerns","description":"Description of the sku"},"amount":{"type":"number","example":9,"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Units consumed per "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"proc_unit"},"children":[]}]}]}]},"unit":{"type":"string","enum":["result_image","second"],"example":"result_image","description":"Measurement unit of the cost"},"proc_unit":{"type":"integer","example":1,"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Number of "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"unit"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"s included in one charge of "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"amount"},"children":[]}]}]}]},"run_task_url":{"type":"string","example":"https://yce-api-01.makeupar.com/s2s/v2.0/task/skin-analysis","description":"Full URL of the task endpoint that consumes this sku"}}}}}}}},"id":"schema_1014"},"schema_1015":{"kind":"json-schema","data":{"type":"object","properties":{"status":{"type":"integer","example":401,"description":"Response status"},"error":{"type":"string","example":"Invalid API key"}}},"id":"schema_1015"}},"exampleStore":{"paths/~1s2s~1v2.0~1credit~1feature-cost/get/responses/200/content/application~1json/example":{"value":{"status":200,"result":{"next_token":"MjA","skus":[{"description":"AI Skin Analysis for SD 1~4 concerns","amount":9,"unit":"result_image","proc_unit":1,"run_task_url":"https://yce-api-01.makeupar.com/s2s/v2.0/task/skin-analysis"},{"description":"AI Skin Analysis for SD 5~7 concerns","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":"Use the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"access_token"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" obtained from authentication and pass it in header: "},"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":"Use the standard 'Bearer authentication'. Put your 'API Key' in header: "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"Authorization:Bearer YOUR_API_KEY"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":". Notice that there is ' ' a space between 'Bearer' and the 'YOUR_API_KEY'."},"children":[]}]}]}]}},"servers":[{"url":"https://yce-api-01.makeupar.com"}]},"options":{"layout":"stacked","hideSidebar":true,"mockServer":{"off":true,"position":"off"},"disableRouter":true,"downloadUrls":[{"url":"/_bundle/reference/unit_system.json?download"},{"url":"/_bundle/reference/unit_system.yaml?download"}],"excludeFromSearch":false,"specType":"openapi","markdocOptions":{"tags":{},"nodes":{},"components":{}},"metadata":{"title":"Unit system","description":"Check your unit details and usage history. Please note that Units is the currency used for YouCam API operations; different AI features deduct different amounts of units. In this document, the code name used for a Unit is \"Credit.\"\n"}},"baseSlug":"/reference/unit_system","routesMapping":{}}