{"id":20031,"date":"2026-09-28T00:19:15","date_gmt":"2026-09-28T04:19:15","guid":{"rendered":"https:\/\/wp.glbgpt.com\/?p=20031"},"modified":"2026-09-28T00:19:17","modified_gmt":"2026-09-28T04:19:17","slug":"perplexity-api-tutorial","status":"publish","type":"post","link":"https:\/\/wp.glbgpt.com\/kr\/hub\/perplexity-api-tutorial","title":{"rendered":"Perplexity API \ud29c\ud1a0\ub9ac\uc5bc: \uc18c\uc2a4 \uc811\uc9c0\ud615 \uc751\ub2f5\uc744 \ub2e8\uacc4\ubcc4\ub85c \uad6c\ucd95\ud558\uae30"},"content":{"rendered":"<style>\n[class*=\"pat-\"]{box-sizing:border-box}\np.pat-p,ul.pat-list{font:17px\/1.8 system-ui,-apple-system,\"Segoe UI\",sans-serif;color:#243F46;margin:0 0 22px}\np.pat-eyebrow{font:750 12px\/1.5 system-ui,sans-serif;letter-spacing:.12em;color:#35756f;margin:0 0 22px}\nh2.pat-h2{font:750 30px\/1.28 system-ui,sans-serif;color:#173E48;border-top:1px solid #D5E1DB;padding-top:23px;margin:58px 0 22px;scroll-margin-top:24px}\nh3.pat-h3{font:700 22px\/1.4 system-ui,sans-serif;color:#245D56;margin:30px 0 14px}\n.pat-p a,.pat-list a,.pat-table a{color:#146B61;text-decoration:underline;text-underline-offset:3px}\n.pat-p code,.pat-list code,.pat-table code{font:.88em Consolas,monospace;overflow-wrap:anywhere;background:#EEF3EF;padding:2px 4px;border-radius:3px}\np.pat-quick{background:#F5EDDA;border-left:4px solid #B99749;padding:23px 26px}\np.pat-note{background:#EEF4EF;border-radius:10px;padding:20px 24px}\nul.pat-toc{background:#EEF4EF;padding:24px 24px 24px 46px;border-radius:10px;columns:2;column-gap:32px;font-size:15px}\n.pat-list li{margin:8px 0;break-inside:avoid}\nul.pat-checklist{background:#F7F2E8;border:1px solid #DFD1B2;border-radius:10px;padding:20px 24px 20px 46px}\nfigure.pat-table{display:block;max-width:100%;overflow-x:auto;border:1px solid #CEDDD5;border-radius:10px;margin:26px 0}\n.pat-table table{border-collapse:collapse;width:100%;min-width:610px;font:14px\/1.65 system-ui,sans-serif}\n.pat-table th{background:#215957;color:white;text-align:left;padding:14px 16px;font-weight:650}\n.pat-table td{padding:13px 16px;vertical-align:top;border-bottom:1px solid #DFE7DF}\n.pat-table tbody tr:nth-child(even){background:#F2F6F0}\n.pat-table td:first-child{font-weight:600}\npre.pat-code{max-width:100%;overflow-x:auto;white-space:pre;padding:24px;border-radius:10px;background:#142F3C;color:#ECF7EF;font:14px\/1.7 Consolas,monospace;margin:24px 0}\n.pat-code code{font:inherit;white-space:pre;overflow-wrap:normal}\nfigure.pat-image{margin:30px 0}.pat-image img{display:block;width:100%;height:auto;border-radius:12px}\n.pat-image figcaption{font:14px\/1.6 system-ui,sans-serif;color:#627773;margin-top:10px}\n@media(max-width:650px){p.pat-p,ul.pat-list{font-size:16px}h2.pat-h2{font-size:26px;margin-top:44px}h3.pat-h3{font-size:20px}ul.pat-toc{columns:1}pre.pat-code{padding:18px;font-size:13px}p.pat-quick{padding:18px}.pat-table th,.pat-table td{padding:11px 12px}}\n\n\/* Native image blocks: same presentation as the approved preview. *\/\nfigure.wp-block-image.pat-image{display:block;max-width:100%;margin:30px 0}\nfigure.wp-block-image.pat-official{width:100%;max-width:848px;margin:30px auto}\nfigure.pat-image>a{display:block}figure.pat-image img{display:block;width:100%;max-width:100%;height:auto;border-radius:12px}\nfigure.pat-image figcaption.wp-element-caption{font:14px\/1.6 system-ui,sans-serif;color:#627773;margin:10px 0 0;text-align:left}\n.pat-image figcaption a{color:#146B61;text-decoration:underline;text-underline-offset:3px}\n<\/style>\n\n\n\n<p class=\"pat-p pat-eyebrow wp-block-paragraph\">PERPLEXITY API \u00b7 \ud30c\uc774\uc36c \ud29c\ud1a0\ub9ac\uc5bc \u00b7 2026<\/p>\n\n\n\n<p class=\"pat-p wp-block-paragraph\">\uc774 Perplexity API \ud29c\ud1a0\ub9ac\uc5bc\uc5d0\uc11c\ub294 \ud074\ub9ad \uac00\ub2a5\ud55c \uc6f9 \ucd9c\ucc98\uac00 \ud3ec\ud568\ub41c \ub2f5\ubcc0\uc744 \ubc18\ud658\ud558\ub294 Python \uc2a4\ud06c\ub9bd\ud2b8\ub97c \uc791\uc131\ud558\ub294 \ubc29\ubc95\uc744 \uc124\uba85\ud569\ub2c8\ub2e4. Agent API\ub97c \uc0ac\uc6a9\ud558\uc5ec \uc9c8\ubb38\uc744 \uc804\uc1a1\ud558\uace0, \ub2f5\ubcc0\uc744 \uc77d\uc5b4\ub4e4\uc774\uba70, \ub2f5\ubcc0 \ub0b4 \uc778\uc6a9 \ub9c8\ucee4\ub97c \ucd9c\ucc98 ID\uc640 \ub9e4\uce6d\ud55c \ud6c4, \uac80\ud1a0\ud560 \uc218 \uc788\ub294 Markdown \ud30c\uc77c\uc744 \ub0b4\ubcf4\ub0b4 \ubcf4\uc138\uc694.<\/p>\n\n\n\n<p class=\"pat-p wp-block-paragraph\">\uc774 \uae00\uc5d0\uc11c\ub294 \ud55c \uac00\uc9c0 \uc9c8\ubb38\uc744 \uacc4\uc18d \ub2e4\ub8f0 \uac83\uc785\ub2c8\ub2e4: <em>\uc18c\uaddc\ubaa8 \ud30c\uc774\uc36c \ud504\ub85c\uc81d\ud2b8\uc5d0\uc11c\ub294 \uac00\uc0c1 \ud658\uacbd\uc744 \uc5b4\ub5bb\uac8c \ud65c\uc6a9\ud558\uace0 \uc758\uc874\uc131\uc744 \uad00\ub9ac\ud574\uc57c \ud560\uae4c\uc694?<\/em> \uae30\ubcf8 \uc694\uccad\ubd80\ud130 \uc2dc\uc791\ud55c \ub2e4\uc74c, \uc18c\uc2a4 \ud30c\uc2f1\uacfc \ub3c4\uba54\uc778 \ud544\ud130\ub97c \ucd94\uac00\ud558\uc138\uc694. \uae30\ubcf8\uc801\uc778 \ud30c\uc774\uc36c \uc9c0\uc2dd\uc774 \ud544\uc694\ud558\uba70, API \uacfc\uae08\uc774 \uc124\uc815\ub41c Perplexity \uac1c\ubc1c\uc790 \uacc4\uc815\uc774 \uc788\uc5b4\uc57c \ud569\ub2c8\ub2e4.<\/p>\n\n\n\n<p class=\"pat-p wp-block-paragraph\">\uc5ec\ub7ec\ubd84\ub3c4 \uc77c\uc0c1\uc801\uc778 \uc870\uc0ac\ub098 \uae00\uc4f0\uae30\uc5d0 AI\ub97c \ud65c\uc6a9\ud558\uace0 \uacc4\uc2e0\ub2e4\uba74, <a href=\"https:\/\/www.glbgpt.com\/perplexity?inviter=hub_content_perplexity&amp;login=1\">Perplexity \ub300 GlobalGPT<\/a> \uc62c\uc778\uc6d0 AI \uc791\uc5c5 \uacf5\uac04 \ub0b4\uc5d0\uc11c \ubaa8\ub4e0 \uae30\ub2a5\uc744 \uc774\uc6a9\ud560 \uc218 \uc788\uc5b4, \ubcc4\ub3c4\uc758 \ub3c4\uad6c \uac04\uc744 \uc624\uac08 \ud544\uc694\uac00 \uc904\uc5b4\ub4ed\ub2c8\ub2e4. \uc774 \uc18c\ube44\uc790\uc6a9 \uc6cc\ud06c\ud50c\ub85c\ub294 \uc5ec\uae30\uc11c \uc0ac\uc6a9\ub418\ub294 \uac1c\ubc1c\uc790 \ud0a4 \ubc0f API \uacfc\uae08 \uc2dc\uc2a4\ud15c\uacfc\ub294 \ubcc4\uac1c\uc785\ub2c8\ub2e4.<\/p>\n\n\n\n<p class=\"pat-p pat-quick wp-block-paragraph\"><strong>\uac04\ub2e8\ud55c \ub2f5\ubcc0:<\/strong> \uc0ac\uc6a9\ud558\uc2ed\uc2dc\uc624 <code>\ube60\ub978<\/code> \uc6f9 \uae30\ubc18\uc758 \uccab \ubc88\uc9f8 \ub2f5\ubcc0\uc744 \uc704\ud55c \uc5d0\uc774\uc804\ud2b8 \uc0ac\uc804 \uc124\uc815, \uc77d\uae30 <code>response.output_text<\/code> \ub2f5\ubcc0\uc744 \ud655\uc778\ud558\uc2dc\uace0, \ub2e4\uc74c\uc744 \uc77d\uc5b4\ubcf4\uc2dc\uae30 \ubc14\ub78d\ub2c8\ub2e4. <code>\uac80\uc0c9 \uacb0\uacfc<\/code> ~\uc5d0 \uc788\ub294 \ud56d\ubaa9 <code>response.output<\/code> \ucd9c\ucc98\uc758 \uacbd\uc6b0. \uac01 \uc778\ub77c\uc778 \ub9c8\ucee4\ub97c \ubc18\ud658\ub41c \uac12\uc744 \uae30\uc900\uc73c\ub85c \ucd9c\ucc98\uc640 \ub9e4\uce6d\ud569\ub2c8\ub2e4. <code>id<\/code>. \uc778\uc6a9\uc774\ub780 \u201c\ud574\ub2f9 \ub2f5\ubcc0\uc774 \uc774 \uacb0\uacfc\ub97c \uac00\ub9ac\ud0a8\ub2e4\u201d\ub294 \uc758\ubbf8\uc77c \ubfd0, \ud574\ub2f9 \ud398\uc774\uc9c0\uac00 \ubaa8\ub4e0 \uc8fc\uc7a5\uc744 \uc785\uc99d\ud55c\ub2e4\ub294 \uac83\uc744 \ubcf4\uc7a5\ud558\ub294 \uac83\uc740 \uc544\ub2d9\ub2c8\ub2e4.<\/p>\n\n\n\n<p class=\"pat-p wp-block-paragraph\"><strong>\uc0c1\ud0dc \uc608\uc2dc:<\/strong> \uc774 \uc694\uccad \uad6c\ubb38\uc740 2026\ub144 9\uc6d4 28\uc77c \ud655\uc778\ub41c \uacf5\uc2dd \ubb38\uc11c\ub97c \ub530\ub985\ub2c8\ub2e4. \uc778\uc6a9 \ub3c4\uc6b0\ubbf8\ub294 \uc624\ud504\ub77c\uc778 \uc0d8\ud50c \ub370\uc774\ud130\ub97c \uc0ac\uc6a9\ud558\uc5ec \uac80\uc99d\ub418\uc5c8\uc73c\uba70, \uc774 \ud29c\ud1a0\ub9ac\uc5bc\uc744 \uc704\ud574 \uc720\ub8cc API \uc694\uccad\uc740 \uc2e4\ud589\ub418\uc9c0 \uc54a\uc558\uc2b5\ub2c8\ub2e4. \uadf8\ub9bc\uc5d0 \ud45c\uc2dc\ub41c \uc18c\uc2a4 \ub808\ucf54\ub4dc\ub294 \uc124\uba85\uc744 \uc704\ud55c \uc608\uc2dc\uc785\ub2c8\ub2e4.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><a href=\"https:\/\/www.glbgpt.com\/perplexity?inviter=hub_content_perplexity&amp;login=1\"><img alt=\"\" decoding=\"async\" src=\"https:\/\/wp.glbgpt.com\/wp-content\/uploads\/2025\/10\/image-33.png\" class=\"wp-image-2306\"\/><\/a><\/figure>\n\n\n\n<div class=\"wp-block-buttons is-content-justification-center is-layout-flex wp-container-core-buttons-is-layout-3e41869c wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link has-black-color has-text-color has-background has-link-color has-medium-font-size has-custom-font-size wp-element-button\" href=\"https:\/\/www.glbgpt.com\/perplexity?inviter=hub_content_perplexity&amp;login=1\" style=\"background-color:#fec33a;line-height:1\"><strong>\uc9c0\uae08 \ud37c\ud50c\ub809\uc11c\ud2f0 \uccb4\ud5d8\ud558\uae30 &gt;<\/strong><\/a><\/div>\n<\/div>\n\n\n\n<ul class=\"wp-block-list pat-list pat-toc\">\n<li><a href=\"#api-choice\">\uc5b4\ub5a4 Perplexity API\ub97c \uc0ac\uc6a9\ud574\uc57c \ud560\uae4c\uc694?<\/a><\/li>\n\n\n\n<li><a href=\"#setup\">1\ub2e8\uacc4: API \ud0a4\ub97c \ubc1c\uae09\ubc1b\uace0 Python\uc744 \uc124\uc815\ud569\ub2c8\ub2e4.<\/a><\/li>\n\n\n\n<li><a href=\"#first-request\">2\ub2e8\uacc4: \uccab \ubc88\uc9f8 \uc18c\uc2a4 \uc811\uc9c0 \uc694\uccad \ubcf4\ub0b4\uae30<\/a><\/li>\n\n\n\n<li><a href=\"#sources\">3\ub2e8\uacc4: \ub2f5\uc744 \ucd94\ucd9c\ud558\uace0 \uadf8 \ucd9c\ucc98\ub97c \ud655\uc778\ud558\uc138\uc694<\/a><\/li>\n\n\n\n<li><a href=\"#filters\">4\ub2e8\uacc4: \uac80\uc0c9 \ud544\ud130\ub97c \ud65c\uc6a9\ud558\uc5ec \ub2f5\ubcc0\uc758 \uc815\ud655\ub3c4\ub97c \ub192\uc774\uae30<\/a><\/li>\n\n\n\n<li><a href=\"#export\">5\ub2e8\uacc4: \ud074\ub9ad \uac00\ub2a5\ud55c \ucd9c\ucc98\uac00 \ud3ec\ud568\ub41c \uc644\uc804\ud55c \ub2f5\ubcc0 \uc800\uc7a5\ud558\uae30<\/a><\/li>\n\n\n\n<li><a href=\"#advanced\">\uc2a4\ud2b8\ub9ac\ubc0d \ubc0f \uad6c\uc870\ud654\ub41c \ucd9c\ub825<\/a><\/li>\n\n\n\n<li><a href=\"#cost-errors\">\ube44\uc6a9 \ubc0f \ud754\ud788 \ubc1c\uc0dd\ud558\ub294 \uc624\ub958<\/a><\/li>\n\n\n\n<li><a href=\"#migration\">\uad6c\ubc84\uc804 Sonar \ud29c\ud1a0\ub9ac\uc5bc\uc5d0\uc11c \ub118\uc5b4\uc624\uba70<\/a><\/li>\n\n\n\n<li><a href=\"#faq\">\uc790\uc8fc \ubb3b\ub294 \uc9c8\ubb38<\/a><\/li>\n<\/ul>\n\n\n\n<h2 id=\"api-choice\" class=\"wp-block-heading pat-h2\">Perplexity API \ud29c\ud1a0\ub9ac\uc5bc: \uc801\ud569\ud55c API \uc120\ud0dd\ud558\uae30<\/h2>\n\n\n\n<p class=\"pat-p wp-block-paragraph\">\uc774\uac83\ub4e4\uc740 \uac1c\ubc1c\uc790\uc6a9 \uc778\ud130\ud398\uc774\uc2a4\uc785\ub2c8\ub2e4. \ucc44\ud305 \uc81c\ud488\uc5d0\uc11c\ub294 \uc720\uc0ac\ud55c \uae30\ub2a5\uc744 \ub2e4\ub978 \ubc29\uc2dd\uc73c\ub85c \uad6c\ud604\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \ub2f9\uc0ac\uc758 \uac1c\uc694\uc5d0 \ub530\ub974\uba74 <a href=\"https:\/\/www.glbgpt.com\/hub\/what-are-the-main-features-of-perplexity-ai\/\">Perplexity\uc758 \uc8fc\uc694 \uae30\ub2a5<\/a> \uc0ac\uc6a9\uc790\uac00 \uc9c1\uc811 \uacbd\ud5d8\ud558\ub294 \ub0b4\uc6a9\uc744 \uc124\uba85\ud569\ub2c8\ub2e4.<\/p>\n\n\n\n<p class=\"pat-p wp-block-paragraph\">Perplexity\uc758 <a href=\"https:\/\/docs.perplexity.ai\/docs\/getting-started\/quickstart\">\uacf5\uc2dd API \ube60\ub978 \uc2dc\uc791 \uac00\uc774\ub4dc<\/a> \uac1c\ubc1c\uc790\uc6a9 \uc81c\ud488\uc744 \uc218\ud589\ud574\uc57c \ud560 \uc791\uc5c5\ubcc4\ub85c \ubd84\ub958\ud569\ub2c8\ub2e4. \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0 \uc2e4\uc81c\ub85c \ud544\uc694\ud55c \ub370\uc774\ud130\ub97c \uc0dd\uc131\ud558\ub294 \uac00\uc7a5 \uc791\uc740 \ud45c\uba74\uc744 \uc120\ud0dd\ud558\uc2ed\uc2dc\uc624.<\/p>\n\n\n\n<figure class=\"wp-block-table pat-table\"><table><thead><tr><th>API<\/th><th>\uac00\uc7a5 \uc801\ud569<\/th><th>\ucf54\ub4dc\uac00 \uc218\uc2e0\ud558\ub294 \ub0b4\uc6a9<\/th><\/tr><\/thead><tbody><tr><td><strong>\uc5d0\uc774\uc804\ud2b8<\/strong><\/td><td>\uc6f9 \uac80\uc0c9\uc774\ub098 \uae30\ud0c0 \ub3c4\uad6c\ub97c \ubc14\ud0d5\uc73c\ub85c \uc791\uc131\ub41c \uc644\uc131\ub41c \ub2f5\ubcc0<\/td><td>\uc785\ub825\ub41c \ucd9c\ub825 \ud56d\ubaa9, \ub2f5\ubcc0 \ud14d\uc2a4\ud2b8 \ubc0f \uac80\uc0c9 \uacb0\uacfc \uae30\ub85d<\/td><\/tr><tr><td><strong>\uac80\uc0c9<\/strong><\/td><td>\uc2e0\uccad\uc11c\ub97c \uc81c\ucd9c\ud558\uba74 \uacb0\uacfc\uac00 \uc790\ub3d9\uc73c\ub85c \uc21c\uc704\uac00 \ub9e4\uaca8\uc9c0\uac70\ub098, \ud544\ud130\ub9c1\ub418\uac70\ub098, \uc694\uc57d\ub429\ub2c8\ub2e4.<\/td><td>Perplexity\uc5d0\uac8c \uc815\ub2f5\uc744 \uc9c1\uc811 \uc791\uc131\ud574 \ub2ec\ub77c\uace0 \uc694\uccad\ud558\uc9c0 \uc54a\uace0 \uc5bb\uc740 \uac80\uc0c9 \uacb0\uacfc<\/td><\/tr><tr><td><strong>\ub77c\uc6b0\ud130<\/strong><\/td><td>\uc694\uccad\uc744 \uc801\uc808\ud55c \ubaa8\ub378\ub85c \uc804\ub2ec<\/td><td>\ub77c\uc6b0\ud130\ub97c \ud1b5\ud574 \uc120\ud0dd\ub41c \ubaa8\ubc94 \ub2f5\uc548<\/td><\/tr><tr><td><strong>\uc784\ubca0\ub529<\/strong><\/td><td>\uc758\ubbf8 \uae30\ubc18 \uac80\uc0c9\uacfc RAG \uc778\ub371\uc2a4<\/td><td>\uc0ac\uc6a9\uc790 \uc815\uc758 \uac80\uc0c9 \ub808\uc774\uc5b4\ub97c \uc704\ud55c \ubca1\ud130 \ub370\uc774\ud130<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"pat-p wp-block-paragraph\">\uc774 \ud29c\ud1a0\ub9ac\uc5bc\uc5d0\uc11c\ub294 \uc0ac\uc6a9\uc790\uac00 \uc6d0\ud558\ub294 \uacb0\uacfc\uac00 \uc644\uc131\ub41c \ub2f5\ubcc0\uacfc \uadf8 \ucd9c\ucc98\uc774\ubbc0\ub85c \u2018Agent\u2019\ub97c \uc120\ud0dd\ud569\ub2c8\ub2e4. \ubcf4\ub2e4 \ud3ec\uad04\uc801\uc778 \uc5f0\uad6c \uc6cc\ud06c\ud50c\ub85c\uc6b0\uc5d0 \ub300\ud574\uc11c\ub294 \ub2e4\uc74c \uac00\uc774\ub4dc\ub97c \ucc38\uc870\ud558\uc2ed\uc2dc\uc624. <a href=\"https:\/\/www.glbgpt.com\/hub\/how-to-use-perplexity-for-research\/\">\uc5f0\uad6c \ubaa9\uc801\uc73c\ub85c Perplexity \ud65c\uc6a9<\/a>.<\/p>\n\n\n\n<p class=\"pat-p wp-block-paragraph\"><strong>Sonar \uc18c\uac1c:<\/strong> \ud604\uc7ac <a href=\"https:\/\/docs.perplexity.ai\/docs\/agent-api\/migrate-from-sonar\/overview\">\ub9c8\uc774\uadf8\ub808\uc774\uc158 \uac1c\uc694<\/a> Sonar Chat Completions\ub294 \uacc4\uc18d \uc9c0\uc6d0\ub41c\ub2e4\uace0 \ubc1d\ud788\uace0 \uc788\uc73c\uba70, \ubaa8\ub4e0 \uc2e0\uaddc \ud504\ub85c\uc81d\ud2b8\uc5d0\ub294 Agent\ub97c \uc0ac\uc6a9\ud560 \uac83\uc744 \uad8c\uc7a5\ud569\ub2c8\ub2e4. \ub530\ub77c\uc11c \uc774 \ud29c\ud1a0\ub9ac\uc5bc\uc5d0\uc11c\ub294 Agent\ub97c \uc0ac\uc6a9\ud569\ub2c8\ub2e4. \uc774\uc804 \ud29c\ud1a0\ub9ac\uc5bc\uc5d0 \uc5b8\uae09\ub41c \uae30\ud55c\uc744 \uadfc\uac70\ub85c \uae30\uc874 \ud1b5\ud569 \uae30\ub2a5\uc774 \ub354 \uc774\uc0c1 \uc791\ub3d9\ud558\uc9c0 \uc54a\ub294\ub2e4\uace0 \ucd94\uce21\ud558\uc9c0 \ub9c8\uc2ed\uc2dc\uc624.<\/p>\n\n\n\n<h2 id=\"setup\" class=\"wp-block-heading pat-h2\">1\ub2e8\uacc4: API \ud0a4\ub97c \ubc1c\uae09\ubc1b\uace0 Python\uc744 \uc124\uc815\ud569\ub2c8\ub2e4.<\/h2>\n\n\n\n<h3 class=\"wp-block-heading pat-h3\">\ud0a4 \uc0dd\uc131 \ubc0f \uccad\uad6c \uc900\ube44<\/h3>\n\n\n\n<p class=\"pat-p wp-block-paragraph\"><a href=\"https:\/\/console.perplexity.ai\/\">Perplexity API \ucf58\uc194\uc744 \uc5fd\ub2c8\ub2e4.<\/a>, \uc0ac\uc6a9\ud560 \ud504\ub85c\uc81d\ud2b8\ub97c \uc120\ud0dd\ud558\uac70\ub098 \uc0dd\uc131\ud558\uace0, API \uacb0\uc81c \uc124\uc815\uc744 \uad6c\uc131\ud55c \ub2e4\uc74c \ud0a4\ub97c \uc0dd\uc131\ud558\uc138\uc694. \ud0a4\ub294 \uc11c\ubc84 \uce21\uc5d0 \ubcf4\uad00\ud558\uc138\uc694. \uac1c\ubc1c\uc790\uc6a9 API \uc694\uae08\uc740 \uc18c\ube44\uc790\uc6a9 \uad6c\ub3c5 \uc694\uae08\uacfc \ubcc4\ub3c4\ub85c \uccad\uad6c\ub418\ubbc0\ub85c, \uc694\uccad\uc744 \ubcf4\ub0b4\uae30 \uc804\uc5d0 \ud504\ub85c\uc81d\ud2b8 \uc794\uc561\uc744 \ud655\uc778\ud558\uc138\uc694.<\/p>\n\n\n\n<h3 class=\"wp-block-heading pat-h3\">\uacf5\uc2dd SDK \uc124\uce58\ud558\uae30<\/h3>\n\n\n\n<pre class=\"wp-block-code pat-code\"><code>python -m venv .venv\n\n# macOS\/Linux: \uc774 \ud65c\uc131\ud654 \uba85\ub839\uc5b4\ub97c \uc120\ud0dd\ud558\uc138\uc694\nsource .venv\/bin\/activate\n\n# Windows PowerShell: \ub300\uc2e0 \uc774 \uba85\ub839\uc5b4\ub97c \uc0ac\uc6a9\ud558\uc138\uc694\n.venv\\Scripts\\Activate.ps1\n\npython -m pip install --upgrade perplexityai<\/code><\/pre>\n\n\n\n<p class=\"pat-p wp-block-paragraph\">\uc544\ub798 \ucf54\ub4dc\ub97c \uc2e4\ud589\ud558\ub824\uba74 Python 3.10 \uc774\uc0c1\uc744 \uc0ac\uc6a9\ud558\uc2ed\uc2dc\uc624. \uc0ac\uc6a9 \uc911\uc778 \uc6b4\uc601 \uccb4\uc81c\uc5d0 \ub9de\ub294 \uba85\ub839\uc5b4\ub97c \uc0ac\uc6a9\ud558\uc5ec \ud658\uacbd\uc744 \ud65c\uc131\ud654\ud55c \ub2e4\uc74c, SDK\ub97c \uc124\uce58\ud558\uc2ed\uc2dc\uc624. PowerShell\uc5d0\uc11c \ud658\uacbd \ud65c\uc131\ud654\uac00 \ucc28\ub2e8\ub418\ub294 \uacbd\uc6b0, \ub2e4\uc74c\uc744 \uc0ac\uc6a9\ud558\uc2ed\uc2dc\uc624. <code>.venv\\Scripts\\python.exe<\/code> ~ \ub300\uc2e0 <code>\ud30c\uc774\uc36c<\/code> \uc124\uce58 \ubc0f \uc2a4\ud06c\ub9bd\ud2b8 \uc2e4\ud589\uc744 \uc704\ud574.<\/p>\n\n\n\n<p class=\"pat-p wp-block-paragraph\">\ud328\ud0a4\uc9c0 \uc774\ub984\uc740 <code>perplexityai<\/code>, \ubc18\uba74 \ud30c\uc774\uc36c\uc758 import \ubb38\uc740 <code>\ub2f9\ud669\uc2a4\ub7ec\uc6c0<\/code>. \uc774 \ud29c\ud1a0\ub9ac\uc5bc\uc758 \uc885\uc18d\uc131\uc774 \ub2e4\ub978 \ud504\ub85c\uc81d\ud2b8\uc5d0 \uc601\ud5a5\uc744 \ubbf8\uce58\uc9c0 \uc54a\ub3c4\ub85d \uac00\uc0c1 \ud658\uacbd\uc744 \uc0ac\uc6a9\ud558\uc138\uc694.<\/p>\n\n\n\n<p class=\"pat-p wp-block-paragraph\">\uc774 \uc608\uc2dc\uc5d0\uc11c\ub294 \ucf54\ub529 \uad00\ub828 \ubb38\uc81c\ub97c \ub2e4\ub8e8\uace0 \uc788\ub294\ub370, \uc774\ub294 \ud574\ub2f9 \uc8fc\uc7a5\uc744 \uafb8\uc900\ud788 \uad00\ub9ac\ub418\ub294 \ubb38\uc11c\ub97c \ud1b5\ud574 \ud655\uc778\ud560 \uc218 \uc788\uae30 \ub54c\ubb38\uc785\ub2c8\ub2e4. \ub2f9\uc0ac\uc758 \uac00\uc774\ub4dc\uc5d0 \ub530\ub974\uba74 <a href=\"https:\/\/www.glbgpt.com\/hub\/is-perplexity-good-for-coding\/\">\ucf54\ub529\uc6a9 Perplexity<\/a> \uc5f0\uad6c \uc9c0\uc6d0\uc774 \uc9c1\uc811 \ucf54\ub4dc\ub97c \ud14c\uc2a4\ud2b8\ud558\ub294 \uacfc\uc815\uacfc \uc5b4\ub5bb\uac8c \uc870\ud654\ub97c \uc774\ub8e8\ub294\uc9c0 \uc124\uba85\ud569\ub2c8\ub2e4.<\/p>\n\n\n\n<h3 class=\"wp-block-heading pat-h3\">API \ud0a4\ub97c \ud658\uacbd \ubcc0\uc218\ub85c \uc124\uc815\ud558\uc138\uc694<\/h3>\n\n\n\n<pre class=\"wp-block-code pat-code\"><code># macOS\/Linux\nexport PERPLEXITY_API_KEY=\"\uc5ec\uae30\uc5d0 \ud0a4 \uc785\ub825\"\n\n# Windows PowerShell\n$env:PERPLEXITY_API_KEY = \"\uc5ec\uae30\uc5d0 \ud0a4 \uc785\ub825\"<\/code><\/pre>\n\n\n\n<p class=\"pat-p wp-block-paragraph\">SDK\ub294 \ub2e4\uc74c\uacfc \uac19\uc774 \uc77d\uc2b5\ub2c8\ub2e4. <code>PERPLEXITY_API_KEY<\/code> \ud074\ub77c\uc774\uc5b8\ud2b8\ub97c \uc0dd\uc131\ud560 \ub54c\uc785\ub2c8\ub2e4. \ud0a4\ub97c \uba54\ubaa8\uc7a5\uc5d0 \ubd99\uc5ec\ub123\uac70\ub098, Git\uc5d0 \ucee4\ubc0b\ud558\uac70\ub098, \ube0c\ub77c\uc6b0\uc800\ub85c \uc804\uc1a1\ud558\uc9c0 \ub9c8\uc2ed\uc2dc\uc624. \ub85c\uceec\uc5d0\uc11c .env \ud30c\uc77c\uc744 \uc0ac\uc6a9\ud558\ub294 \uacbd\uc6b0, \ud574\ub2f9 \ud30c\uc77c\uc744 \ubc84\uc804 \uad00\ub9ac \ub300\uc0c1\uc5d0\uc11c \uc81c\uc678\ud558\uace0 \uc120\ud0dd\ud55c \ud658\uacbd \ubcc0\uc218 \ub77c\uc774\ube0c\ub7ec\ub9ac\ub97c \ud1b5\ud574 \ubd88\ub7ec\uc624\uc2ed\uc2dc\uc624.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img fetchpriority=\"high\" decoding=\"async\" width=\"848\" height=\"632\" src=\"https:\/\/wp.glbgpt.com\/wp-content\/uploads\/2026\/09\/perplexity-api-official-sdk-authentication.webp\" alt=\"Python SDK \uc124\uce58 \ubc29\ubc95\uacfc PERPLEXITY_API_KEY \ud658\uacbd \ubcc0\uc218\uc5d0 \ub300\ud574 \uc124\uba85\ud55c Perplexity \uacf5\uc2dd \ubb38\uc11c.\" class=\"wp-image-20033\" srcset=\"https:\/\/wp.glbgpt.com\/wp-content\/uploads\/2026\/09\/perplexity-api-official-sdk-authentication.webp 848w, https:\/\/wp.glbgpt.com\/wp-content\/uploads\/2026\/09\/perplexity-api-official-sdk-authentication-300x224.webp 300w, https:\/\/wp.glbgpt.com\/wp-content\/uploads\/2026\/09\/perplexity-api-official-sdk-authentication-16x12.webp 16w, https:\/\/wp.glbgpt.com\/wp-content\/uploads\/2026\/09\/perplexity-api-official-sdk-authentication-767x572.webp 767w\" sizes=\"(max-width: 848px) 100vw, 848px\" \/><\/figure>\n\n\n\n<h2 id=\"first-request\" class=\"wp-block-heading pat-h2\">2\ub2e8\uacc4: \uccab \ubc88\uc9f8 \uc18c\uc2a4 \uc811\uc9c0 \uc694\uccad \ubcf4\ub0b4\uae30<\/h2>\n\n\n\n<p class=\"pat-p wp-block-paragraph\"><a href=\"https:\/\/docs.perplexity.ai\/docs\/agent-api\/quickstart\">Agent API \ube60\ub978 \uc2dc\uc791 \uac00\uc774\ub4dc<\/a> \ubb38\uc11c <code>\uac8c\uc2dc\ubb3c https:\/\/api.perplexity.ai\/v1\/agent<\/code>. \uc774 Python \ud074\ub77c\uc774\uc5b8\ud2b8\ub294 \uc694\uccad\uc744 \ub2e4\uc74c\uacfc \uac19\uc774 \uac10\uc2f8\uc11c <code>client.responses.create()<\/code>. . <code>\ube60\ub978<\/code> \uc774 \uc0ac\uc804 \uc124\uc815\uc740 \uae30\ubcf8\uc801\uc73c\ub85c \uc6f9 \uac80\uc0c9\uc744 \ud65c\uc131\ud654\ud558\ubbc0\ub85c, \uccab \ubc88\uc9f8 \uc608\uc81c\uc758 \ud06c\uae30\ub97c \uc791\uac8c \uc720\uc9c0\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n\n\n\n<pre class=\"wp-block-code pat-code\"><code>from perplexity import Perplexity\n\nclient = Perplexity()\n\nquestion = (\n    \"\uc18c\uaddc\ubaa8 \ud30c\uc774\uc36c \ud504\ub85c\uc81d\ud2b8\uc5d0\uc11c\ub294 \uac00\uc0c1 \ud658\uacbd\uc744 \uc5b4\ub5bb\uac8c \uc0ac\uc6a9\ud558\uace0\n    \uc758\uc874\uc131\uc744 \uad00\ub9ac\ud574\uc57c \ud560\uae4c\uc694?\"\n)\n\nresponse = client.responses.create(\n    preset=\"fast\",\n    input=question,\n)\n\nprint(response.output_text)<\/code><\/pre>\n\n\n\n<p class=\"pat-p wp-block-paragraph\">\uc774 \ucf54\ub4dc \uc870\uac01\uc744 \ub2e4\uc74c \uc774\ub984\uc73c\ub85c \uc800\uc7a5\ud558\uc138\uc694 <code>first_request.py<\/code>, \uadf8\ub7f0 \ub2e4\uc74c \ub2e4\uc74c \uba85\ub839\uc744 \uc2e4\ud589\ud569\ub2c8\ub2e4. <code>python first_request.py<\/code> \ud0a4\ub97c \uc124\uc815\ud55c \uac83\uacfc \ub3d9\uc77c\ud55c \ud130\ubbf8\ub110\uc5d0\uc11c \uc2e4\ud589\ud558\uc2ed\uc2dc\uc624. \ud638\ucd9c\uc774 \uc131\uacf5\ud558\uba74 \ube48 \ud14d\uc2a4\ud2b8\uac00 \uc544\ub2cc \uc751\ub2f5 \ud14d\uc2a4\ud2b8\uac00 \ucd9c\ub825\ub418\uc5b4\uc57c \ud569\ub2c8\ub2e4. \uacb0\uacfc\uc5d0 \ub300\ud55c \ud655\uc778\uc774 \ud544\uc694\ud558\ub2e4\uba74 \uc18c\uc2a4 \ucd94\ucd9c \ub2e8\uacc4\ub85c \uc9c4\ud589\ud558\uc2ed\uc2dc\uc624. \ud14d\uc2a4\ud2b8\ub9cc\uc73c\ub85c\ub294 \uac80\uc0ac\uac00 \uc644\ub8cc\ub41c \uac83\uc774 \uc544\ub2d9\ub2c8\ub2e4.<\/p>\n\n\n\n<p class=\"pat-p wp-block-paragraph\">\ud3b8\uc758\uc131 \uc18d\uc131 <code>\ucd9c\ub825 \ud14d\uc2a4\ud2b8<\/code> \ucd5c\uc885 \ub2f5\ubcc0 \ud14d\uc2a4\ud2b8\ub97c \uc81c\uacf5\ud569\ub2c8\ub2e4. \uc751\ub2f5 \uac1d\uccb4 \uc804\uccb4\ub3c4 \ud568\uaed8 \ubcf4\uad00\ud558\uc138\uc694. \uc6d0\ubcf8 \uae30\ub85d\uacfc \uc0ac\uc6a9 \ub0b4\uc5ed\uc740 \ucd9c\ub825\ub41c \ub2e8\ub77d\uc5d0\ub9cc \uc788\ub294 \uac83\uc774 \uc544\ub2c8\ub77c, \ud0c0\uc785\ud654\ub41c \ucd9c\ub825\ubb3c\uc5d0 \ud3ec\ud568\ub418\uc5b4 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n\n\n\n<h3 class=\"wp-block-heading pat-h3\">cURL\uc744 \uc0ac\uc6a9\ud55c \ub3d9\uc77c\ud55c \uc694\uccad<\/h3>\n\n\n\n<pre class=\"wp-block-code pat-code\"><code>curl https:\/\/api.perplexity.ai\/v1\/agent \\\n  -H \"Authorization: Bearer $PERPLEXITY_API_KEY\" \\\n  -H \"Content-Type: application\/json\" \\\n  -d '{\n    \"preset\": \"fast\",\n    \"input\": \"\uc18c\uaddc\ubaa8 \ud30c\uc774\uc36c \ud504\ub85c\uc81d\ud2b8\uc5d0\uc11c\ub294 \uac00\uc0c1 \ud658\uacbd\uc744 \uc5b4\ub5bb\uac8c \uc0ac\uc6a9\ud558\uace0 \uc758\uc874\uc131\uc744 \uad00\ub9ac\ud574\uc57c \ud560\uae4c\uc694?\"\n  }'<\/code><\/pre>\n\n\n\n<p class=\"pat-p wp-block-paragraph\">\uc774 cURL \uc608\uc81c\ub294 macOS\/Linux \ub610\ub294 Bash \ud638\ud658 \uc178\uc5d0\uc11c \uc0ac\uc6a9\ub418\ub294 Bash \uad6c\ubb38\uc744 \uc0ac\uc6a9\ud569\ub2c8\ub2e4. \uc2e4\ud589\ud560 \ub54c\ub9c8\ub2e4 \uc694\uae08\uc774 \ubd80\uacfc\ub418\ub294 \uc694\uccad\uc774 \ud558\ub098\uc529 \ubc1c\uc0dd\ud569\ub2c8\ub2e4. \uc5d4\ub4dc\ud3ec\uc778\ud2b8 \ubb38\uc81c\uc640 Python \ubb38\uc81c\ub97c \uad6c\ubd84\ud574\uc57c \ud560 \ub54c\uc5d0\ub9cc \uc774 \uc608\uc81c\ub97c \uc0ac\uc6a9\ud558\uc2ed\uc2dc\uc624. \ub2e8\uc21c\ud788 \uc608\uc81c\ub97c \ub530\ub77c \ud558\uae30 \uc704\ud574 \ubaa8\ub4e0 \ubc84\uc804\uc744 \uc2e4\ud589\ud558\uc9c0 \ub9c8\uc2ed\uc2dc\uc624.<\/p>\n\n\n\n<h3 class=\"wp-block-heading pat-h3\">\uc11c\ubc84 \uce21 \uc790\ubc14\uc2a4\ud06c\ub9bd\ud2b8 \ub300\uc751 \ucf54\ub4dc<\/h3>\n\n\n\n<p class=\"pat-p wp-block-paragraph\">Node.js 18 \uc774\uc0c1\uc5d0\ub294 \ub2e4\uc74c\uc774 \ud3ec\ud568\ub429\ub2c8\ub2e4. <code>\uac00\uc838\uc624\uae30<\/code>, \ub530\ub77c\uc11c \uc11c\ubc84 \uce21 \uc2a4\ubaa8\ud06c \ud14c\uc2a4\ud2b8\uc5d0\ub294 \ubcc4\ub3c4\uc758 \ub77c\uc774\ube0c\ub7ec\ub9ac\uac00 \ud544\uc694\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4. \uc6d0\ubcf8\uc744 \uc77d\uc5b4\ubcf4\uc138\uc694 <code>\ucd9c\ub825<\/code> JSON \uc751\ub2f5\uc5d0 \ud3ec\ud568\ub41c \ud56d\ubaa9\ub4e4; Python SDK\ub294 \ud3b8\ub9ac\ud55c <code>\ucd9c\ub825 \ud14d\uc2a4\ud2b8<\/code> \uc561\uc138\uc11c\ub9ac.<\/p>\n\n\n\n<pre class=\"wp-block-code pat-code\"><code>const res = await fetch(\"https:\/\/api.perplexity.ai\/v1\/agent\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `Bearer ${process.env.PERPLEXITY_API_KEY}`,\n    \"Content-Type\": \"application\/json\"\n  },\n  body: JSON.stringify({\n    preset: \"fast\",\n    input: \"\uc18c\uaddc\ubaa8 Python \ud504\ub85c\uc81d\ud2b8\uc5d0\uc11c \uac00\uc0c1 \ud658\uacbd\uc744 \uc0ac\uc6a9\ud558\uace0 \uc758\uc874\uc131\uc744 \uad00\ub9ac\ud558\ub824\uba74 \uc5b4\ub5bb\uac8c \ud574\uc57c \ud560\uae4c\uc694?\"\n  })\n});\nif (!res.ok) throw new Error(`Perplexity HTTP ${res.status}`);\nconsole.log(await res.json());<\/code><\/pre>\n\n\n\n<h2 id=\"sources\" class=\"wp-block-heading pat-h2\">3\ub2e8\uacc4: \ub2f5\uc744 \ucd94\ucd9c\ud558\uace0 \uadf8 \ucd9c\ucc98\ub97c \ud655\uc778\ud558\uc138\uc694<\/h2>\n\n\n\n<p class=\"pat-p wp-block-paragraph\"><a href=\"https:\/\/docs.perplexity.ai\/docs\/agent-api\/migrate-from-sonar\/how-to#inline-citations\">\uacf5\uc2dd \uc778\uc6a9 \uc9c0\uce68<\/a> \uc774 \uc0b0\ubb38\uc744 \uc99d\uac70 \uae30\ub85d\ub4e4\uacfc \uad6c\ubcc4\ud55c\ub2e4. \uc790\ub8cc\ub4e4\uc740 <code>\ucd9c\ub825<\/code> \uc720\ud615\uc774 \uc9c0\uc815\ub41c \ud56d\ubaa9 <code>\uac80\uc0c9 \uacb0\uacfc<\/code>. \ud574\ub2f9 \uae30\uc0ac\uc758 <code>\uacb0\uacfc<\/code> \uadf8\ub9ac\uace0 \uac01 \uc778\uc6a9 \ud45c\uc2dc\ub97c \uacb0\uacfc\uc758 <code>id<\/code>. \uacb0\uacfc\uc5d0\ub294 \uc81c\ubaa9\uacfc URL\uc774 \ud3ec\ud568\ub429\ub2c8\ub2e4. \uacb0\uacfc\ub97c \ud45c\uc2dc\ud558\uae30 \uc804\uc5d0 \ub204\ub77d\ub41c \uac12\uc744 \ucc98\ub9ac\ud558\uc2ed\uc2dc\uc624.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"848\" height=\"880\" src=\"https:\/\/wp.glbgpt.com\/wp-content\/uploads\/2026\/09\/perplexity-api-official-inline-citations.webp\" alt=\"\ubc88\ud638\uac00 \ub9e4\uaca8\uc9c4 \uc778\uc6a9, \ucd9c\ucc98 \uc720\ud615\ubcc4 \uc778\uc6a9 \ubc0f \uac80\uc0c9 \uacb0\uacfc ID\uc640 \ub9e4\uce6d\ub418\ub294 \ub9c8\ucee4\uc5d0 \ub300\ud574 \uc124\uba85\ud558\ub294 Perplexity \uacf5\uc2dd \ubb38\uc11c.\" class=\"wp-image-20034\" srcset=\"https:\/\/wp.glbgpt.com\/wp-content\/uploads\/2026\/09\/perplexity-api-official-inline-citations.webp 848w, https:\/\/wp.glbgpt.com\/wp-content\/uploads\/2026\/09\/perplexity-api-official-inline-citations-289x300.webp 289w, https:\/\/wp.glbgpt.com\/wp-content\/uploads\/2026\/09\/perplexity-api-official-inline-citations-12x12.webp 12w, https:\/\/wp.glbgpt.com\/wp-content\/uploads\/2026\/09\/perplexity-api-official-inline-citations-767x796.webp 767w\" sizes=\"(max-width: 848px) 100vw, 848px\" \/><\/figure>\n\n\n\n<p class=\"pat-p wp-block-paragraph\">\uc774 \ub9c8\uc9c0\ub9c9 \uc138\ubd80 \uc0ac\ud56d\uc774 \uc911\uc694\ud569\ub2c8\ub2e4. \ub2e4\ub978 \ub3c4\uad6c\uac00 \ud56d\ubaa9\uc744 \ucd94\uac00\ud55c \ud6c4\uc5d0\ub3c4 \u201c\uc778\uc6a9 1\u201d\uc774 \ud56d\uc0c1 \ubc30\uc5f4\uc758 \uccab \ubc88\uc9f8 \uc694\uc18c\ub77c\uace0 \uac00\uc815\ud574\uc11c\ub294 \uc548 \ub429\ub2c8\ub2e4. ID\ub97c \uae30\uc900\uc73c\ub85c \uc870\ud68c \uae30\ub2a5\uc744 \uad6c\ucd95\ud55c \ub2e4\uc74c, \ub2f5\ubcc0\uc5d0 \uc2e4\uc81c\ub85c \ub098\ud0c0\ub098\ub294 \ub9c8\ucee4\ub97c \uc2dd\ubcc4\ud558\uc2ed\uc2dc\uc624.<\/p>\n\n\n\n<pre class=\"wp-block-code pat-code\"><code>def field(obj, name, default=None):\n    if isinstance(obj, dict): return obj.get(name, default); else: return getattr(obj, name, default)\n\ndef source_index(output):\n    sources = {}\n    for item in output or []:\n    if field(item, \"type\") != \"search_results\":\n        continue\n    for result in field(item, \"results\", []) or []:\n            sid, url = field(result, \"id\"), field(result, \"url\")\n if sid is None:\n continue\n key = str(sid)\n if key in sources and field(sources[key], \"url\") != url:\n                raise ValueError(f\"\uc18c\uc2a4 ID {key}\uc5d0 \ub300\ud55c URL \ucda9\ub3cc\")\n sources[key] = result\n    return sources\n\nsources = source_index(response.output)\nprint(sources.get(\"7\"))  # \uc18c\uc2a4 ID\uc774\uba70, \ubc30\uc5f4\uc758 7\ubc88\uc9f8 \uc704\uce58\uac00 \uc544\ub2d8<\/code><\/pre>\n\n\n\n<p class=\"pat-p wp-block-paragraph\">\uc544\ub798\uc758 \uc804\uccb4 \uc2a4\ud06c\ub9bd\ud2b8\ub294 \ub2e4\uc74c\uc744 \uc778\uc2dd\ud569\ub2c8\ub2e4. <code>[1]<\/code> \uadf8\ub9ac\uace0 <code>[web:1]<\/code>, \uc77c\ubc18\uc801\uc778 \uc0ac\uc804 \uc124\uc815\uc5d0 \ub300\ud574 \ubb38\uc11c\ud654\ub41c \ud638\ucd9c \ud615\uc2dd\uc785\ub2c8\ub2e4. \uc704\uc758 \ud5ec\ud37c\ub294 SDK \uac1d\uccb4\uc640 \uc0ac\uc804 \ubaa8\ub450\ub97c \ucc98\ub9ac\ud558\uba70, \ub3d9\uc77c\ud55c ID\uc5d0 \ud560\ub2f9\ub41c \uc911\ubcf5 URL\uc744 \ud5c8\uc6a9\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4. \ub610\ud55c \uacb0\uacfc\uc758 \uc21c\uc11c\ub97c \uc7ac\uc870\uc815\ud558\uc9c0 \uc54a\uc73c\uba70, \ub204\ub77d\ub41c \uc18c\uc2a4\ub97c \ucd94\uce21\ud558\uc9c0\ub3c4 \uc54a\uc2b5\ub2c8\ub2e4.<\/p>\n\n\n\n<p class=\"pat-p wp-block-paragraph\">\uc778\uc6a9\uc758 \uc9c8\uc5d0 \ub300\ud55c \ubcf4\ub2e4 \ud3ec\uad04\uc801\uc778 \ub17c\uc758\ub294 \ub2f9\uc0ac\uc758 <a href=\"https:\/\/www.glbgpt.com\/hub\/perplexity-citation-accuracy\/\">Perplexity \uc778\uc6a9 \uc815\ud655\ub3c4 \uac00\uc774\ub4dc<\/a>. \uc778\uc6a9\uc740 \ucd94\uc801 \uae30\ub85d\uc785\ub2c8\ub2e4. \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0\ub294 \uc5ec\uc804\ud788 \uc624\ub798\ub41c \ud398\uc774\uc9c0, \uc911\ubcf5 URL \ubc0f \uc9c0\uc6d0\ub418\uc9c0 \uc54a\ub294 \uc8fc\uc7a5\uc5d0 \ub300\ud55c \uc815\ucc45\uc774 \ud544\uc694\ud569\ub2c8\ub2e4.<\/p>\n\n\n\n<p class=\"pat-p wp-block-paragraph\">\uc608\ub97c \ub4e4\uc5b4, \ubc18\ud658\ub41c \ubc30\uc5f4\uc5d0 ID 2 \ub2e4\uc74c\uc5d0 ID 7\uc774 \ud3ec\ud568\ub418\uc5b4 \uc788\ub2e4\uba74, \ub9c8\ucee4\ub294 <code>[7]<\/code> ID 7\uc5d0 \uc5f0\uacb0\ub418\uc5b4\uc57c \ud569\ub2c8\ub2e4. ID 7\uacfc 9 \ubaa8\ub450\uc5d0 \ub3d9\uc77c\ud55c URL\uc774 \ud45c\uc2dc\ub418\ub294 \uacbd\uc6b0, \ub450 ID\ub97c \ubaa8\ub450 \uc720\uc9c0\ud558\uba74\uc11c \ud574\ub2f9 URL\uc744 \ud55c \ubc88\ub9cc \ud45c\uc2dc\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. ID 8\uc774 \ub098\ud0c0\ub098\uc9c0 \uc54a\ub294\ub2e4\uba74, <code>[8]<\/code> \ud45c\uc2dc\ud558\uace0 \u2018\uc77c\uce58\ud558\uc9c0 \uc54a\uc74c\u2019\uc73c\ub85c \ud45c\uc2dc\ud569\ub2c8\ub2e4.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"597\" src=\"https:\/\/wp.glbgpt.com\/wp-content\/uploads\/2026\/09\/perplexity-api-citation-id-workflow-1024x597.webp\" alt=\"\uc778\uc6a9\ubb38 7\uc740 \ub2e4\ub978 \uacb0\uacfc\uac00 \uba3c\uc800 \ub098\uc5f4\ub418\uc5b4 \uc788\ub354\ub77c\ub3c4 ID 7\uc778 \uac80\uc0c9 \uacb0\uacfc\uc640 \uc5f0\uacb0\ub429\ub2c8\ub2e4.\" class=\"wp-image-20035\" srcset=\"https:\/\/wp.glbgpt.com\/wp-content\/uploads\/2026\/09\/perplexity-api-citation-id-workflow-1024x597.webp 1024w, https:\/\/wp.glbgpt.com\/wp-content\/uploads\/2026\/09\/perplexity-api-citation-id-workflow-300x175.webp 300w, https:\/\/wp.glbgpt.com\/wp-content\/uploads\/2026\/09\/perplexity-api-citation-id-workflow-768x448.webp 768w, https:\/\/wp.glbgpt.com\/wp-content\/uploads\/2026\/09\/perplexity-api-citation-id-workflow-18x10.webp 18w, https:\/\/wp.glbgpt.com\/wp-content\/uploads\/2026\/09\/perplexity-api-citation-id-workflow.webp 1440w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 id=\"filters\" class=\"wp-block-heading pat-h2\">4\ub2e8\uacc4: \uac80\uc0c9 \ud544\ud130\ub97c \ud65c\uc6a9\ud558\uc5ec \ub2f5\ubcc0\uc758 \uc815\ud655\ub3c4\ub97c \ub192\uc774\uae30<\/h2>\n\n\n\n<p class=\"pat-p wp-block-paragraph\">\uae30\ubcf8\uc801\uc778 \uc694\uccad\uc774 \uc81c\ub300\ub85c \uc791\ub3d9\ud558\uba74, \uc9c8\ubb38\uc758 \uc804\ubb38 \ubd84\uc57c\uac00 \uba85\ud655\ud788 \uc815\ud574\uc9c4 \uacbd\uc6b0 \uac80\uc0c9 \ubc94\uc704\ub97c \uc881\ud600\ubcf4\uc138\uc694. \ud30c\uc774\uc36c \ud328\ud0a4\uc9d5\uc758 \uacbd\uc6b0, \uc784\uc758\uc758 \ud29c\ud1a0\ub9ac\uc5bc\ubcf4\ub2e4 \ud574\ub2f9 \uc5b8\uc5b4\uc758 \ubb38\uc11c\uc640 \ud328\ud0a4\uc9d5 \uac00\uc774\ub4dc\ub97c \ucc38\uace0\ud558\ub294 \uac83\uc774 \ub354 \uc88b\uc740 \ucd9c\ubc1c\uc810\uc774 \ub429\ub2c8\ub2e4.<\/p>\n\n\n\n<pre class=\"wp-block-code pat-code\"><code>response = client.responses.create(\n    preset=\"fast\",\n    input=(\n \"\uc18c\uaddc\ubaa8 \ud30c\uc774\uc36c \ud504\ub85c\uc81d\ud2b8\uc5d0\uc11c\ub294 \uac00\uc0c1 \ud658\uacbd\uc744 \uc5b4\ub5bb\uac8c \uc0ac\uc6a9\ud558\uace0 \"\n \"\uc758\uc874\uc131\uc744 \uad00\ub9ac\ud574\uc57c \ud560\uae4c\uc694? \uc9c1\uc811 \ucc38\uace0\ud558\ub294 \uc9c0\uce68\uc744 \uc778\uc6a9\ud574 \uc8fc\uc138\uc694.\"\n    ),\n    tools=[\n {\n \"type\": \"web_search\",\n \"filters\": {\n \"search_domain_filter\": [\n \"docs.python.org\",\n                    \"packaging.python.org\",\n ]\n },\n }\n    ],\n)<\/code><\/pre>\n\n\n\n<p class=\"pat-p wp-block-paragraph\">\uc774 \ud544\ud130\ub294 \uc6f9 \uac80\uc0c9 \ub3c4\uad6c \uc124\uc815 \ub0b4\uc5d0 \uc704\uce58\ud569\ub2c8\ub2e4. \ub9c8\uc774\uadf8\ub808\uc774\uc158 \ubb38\uc11c\uc5d0\ub3c4 \ub2e4\uc74c\uacfc \uac19\uc774 \uc124\uba85\ub418\uc5b4 \uc788\uc2b5\ub2c8\ub2e4. <code>search_recency_filter<\/code> \uc2dc\uc758\uc131 \uc788\ub294 \uc9c8\ubb38\uc758 \uacbd\uc6b0. \uc9c8\ubb38\uc774 \ucd5c\uadfc \ucd9c\uc2dc\ub41c \uc81c\ud488\uc774\ub098 \ub274\uc2a4\uc5d0 \uc88c\uc6b0\ub420 \ub54c\ub294 \u2018\ucd5c\uadfc\uc131\u2019\uc744 \ud65c\uc6a9\ud558\uc138\uc694. \ubd84\uc57c\uc640 \ub0a0\uc9dc\uc758 \ubc94\uc704\ub97c \ub108\ubb34 \uc881\uac8c \uc124\uc815\ud558\uba74 \uadfc\uac70 \uc790\ub8cc\uac00 \ub108\ubb34 \ubd80\uc871\ud574\uc9c8 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n\n\n\n<p class=\"pat-p wp-block-paragraph\">\uc9c0\ub09c \ud55c \ub2ec \ub3d9\uc548\uc758 \ucd9c\uc2dc \ub0b4\uc5ed\uc5d0 \ub300\ud55c \uc9c8\ubb38\uc774\ub77c\uba74, \ub2e4\uc74c\uc744 \ucd94\uac00\ud558\uc138\uc694. <code>\"search_recency_filter\": \"month\"<\/code> \uc606\uc5d0 <code>search_domain_filter<\/code>. \uac00\uc0c1 \ud658\uacbd \uc608\uc81c\uc5d0\uc11c\ub294 \uc774\ub97c \uc81c\uc678\ud558\uc2ed\uc2dc\uc624. \uc548\uc815\uc801\uc778 \ubb38\uc11c\uc758 \uacbd\uc6b0 \uac8c\uc2dc\uc77c\uc774 \ub354 \uc624\ub798\ub41c \uacbd\uc6b0\uac00 \uc788\uc744 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc0ac\uc804 \uc124\uc815\ub41c \ubaa8\ub378\uc5d0\uc11c \uc9c1\uc811 \uc120\ud0dd\ud55c \ubaa8\ub378\ub85c \uc804\ud658\ud558\ub294 \uacbd\uc6b0, \uc6f9 \uac80\uc0c9 \ub3c4\uad6c\ub97c \uba85\uc2dc\uc801\uc73c\ub85c \ud3ec\ud568\uc2dc\ud0a4\uc2ed\uc2dc\uc624.<\/p>\n\n\n\n<p class=\"pat-p wp-block-paragraph\">\uac1c\ubc1c \uacfc\uc815\uc5d0\uc11c \ud544\ud130\ub9c1\ub41c \uacb0\uacfc\uc640 \ud544\ud130\ub9c1\ub418\uc9c0 \uc54a\uc740 \uacb0\uacfc\ub97c \ube44\uad50\ud574 \ubcf4\uc138\uc694. \uacb0\uacfc\uac00 \ub2ec\ub77c\uc9c4\ub2e4\uba74 \uadf8 \uc774\uc720\ub97c \uae30\ub85d\ud574 \ub450\uc138\uc694. \ud544\ud130\ub9c1 \uacfc\uc815\uc5d0\uc11c \uc720\uc6a9\ud55c \ub9e5\ub77d\uc774 \uc81c\uac70\ub418\uc5c8\uc744 \uc218\ub3c4 \uc788\uace0, \ubaa8\ub378\uc758 \uc8fc\uc758\ub97c \ubd84\uc0b0\uc2dc\ud0a4\ub358 \uc2e0\ub8b0\ub3c4\uac00 \ub0ae\uc740 \ud398\uc774\uc9c0\ub4e4\uc774 \uc81c\uac70\ub418\uc5c8\uc744 \uc218\ub3c4 \uc788\uc2b5\ub2c8\ub2e4. \uc774\ub294 \ud488\uc9c8\uc744 \ud310\ub2e8\ud558\uae30 \uc704\ud55c \uacb0\uc815\uc77c \ubfd0, \ub0a8\uc544 \uc788\ub294 \ubaa8\ub4e0 \ud398\uc774\uc9c0\uac00 \uc815\ud655\ud558\ub2e4\ub294 \ubcf4\uc7a5\uc740 \uc544\ub2d9\ub2c8\ub2e4.<\/p>\n\n\n\n<p class=\"pat-p wp-block-paragraph\">\uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0 \uc21c\uc704\uac00 \ub9e4\uaca8\uc9c4 \ub9c1\ud06c\uc640 \uc2a4\ub2c8\ud3ab\ub9cc \ud544\uc694\ud55c \uacbd\uc6b0, \ub2e4\uc74c\uc744 \ud638\ucd9c\ud558\uc2ed\uc2dc\uc624. <a href=\"https:\/\/docs.perplexity.ai\/docs\/getting-started\/quickstart\">\uac80\uc0c9 API<\/a> \uadf8\ub9ac\uace0 \uc9c1\uc811 \ud569\uc131\uc744 \uc218\ud589\ud558\uc138\uc694. \uc774\ub7ec\ud55c \ubd84\ub9ac\ub294 \uac80\ud1a0\uc640 \uce90\uc2f1\uc744 \ub354 \uc27d\uac8c \ub9cc\ub4e4\uc5b4 \uc904 \uc218 \uc788\uc2b5\ub2c8\ub2e4. Google\uacfc\uc758 \ub354 \uad11\ubc94\uc704\ud55c \ube44\uad50\uc5d0 \ub300\ud574\uc11c\ub294 \ub2e4\uc74c\uc744 \ucc38\uc870\ud558\uc138\uc694. <a href=\"https:\/\/www.glbgpt.com\/hub\/how-is-perplexity-different-than-google\/\">Perplexity\uac00 \uad6c\uae00\uacfc \uc5b4\ub5bb\uac8c \ub2e4\ub978\uac00<\/a>.<\/p>\n\n\n\n<h2 id=\"export\" class=\"wp-block-heading pat-h2\">5\ub2e8\uacc4: \ud074\ub9ad \uac00\ub2a5\ud55c \ucd9c\ucc98\uac00 \ud3ec\ud568\ub41c \uc644\uc804\ud55c \ub2f5\ubcc0 \uc800\uc7a5\ud558\uae30<\/h2>\n\n\n\n<p class=\"pat-p wp-block-paragraph\">\ub2e4\uc74c \ub0b4\uc6a9\uc744 \ub2e4\uc74c \uc774\ub984\uc73c\ub85c \uc800\uc7a5\ud558\uc138\uc694. <code>perplexity_tutorial.py<\/code>. \uc774 \ub3c4\uad6c\ub294 \ubaa8\ub4e0 \uae30\ub2a5\uc744 \uc790\uccb4\uc801\uc73c\ub85c \uac16\ucd94\uace0 \uc788\uc2b5\ub2c8\ub2e4. \uc18c\uc2a4 \ud5ec\ud37c\ub97c \ud3ec\ud568\ud558\uace0, Python \ubb38\uc11c \ub3c4\uba54\uc778 \ud544\ud130\ub97c \uc801\uc6a9\ud558\uba70, \uc77c\uce58\ud558\ub294 \uc778\uc6a9 \ub9c8\ucee4\ub97c \ub9c1\ud06c\ub85c \ubcc0\ud658\ud558\uace0, ID\ub97c \uc720\uc9c0\ud55c \ucc44 \uc911\ubcf5 URL\uc744 \uadf8\ub8f9\ud654\ud558\uba70, \ub9c8\ud06c\ub2e4\uc6b4\uacfc \ud568\uaed8 \uc644\uc804\ud55c SDK \uc751\ub2f5\uc744 \uc800\uc7a5\ud569\ub2c8\ub2e4.<\/p>\n\n\n\n<pre class=\"wp-block-code pat-code\"><code>from pathlib import Path\nfrom collections import defaultdict\nfrom urllib.parse import urlsplit\nimport json\nimport re\n\nQUESTION = (\n    \"How should a small Python project use virtual environments \"\n    \"and manage dependencies?\"\n)\n# Supports the documented &#91;1] and &#91;web:1] forms in prose answers.\nCITATION_RE = re.compile(r\"(?&lt;!!)\\&#91;(?:web:)?(\\d+)\\](?!\\()\")\n\ndef field(obj, name, default=None):\n    return obj.get(name, default) if isinstance(obj, dict) else getattr(obj, name, default)\n\ndef source_index(output):\n    sources = {}\n    for item in output or &#91;]:\n        if field(item, \"type\") != \"search_results\":\n            continue\n        for result in field(item, \"results\", &#91;]) or &#91;]:\n            sid, url = field(result, \"id\"), field(result, \"url\")\n            if sid is None:\n                continue\n            key = str(sid)\n            if key in sources and field(sources&#91;key], \"url\") != url:\n                raise ValueError(f\"Conflicting URLs for source ID {key}\")\n            sources&#91;key] = result\n    return sources\n\ndef safe_url(value):\n    if not isinstance(value, str):\n        return None\n    parsed = urlsplit(value)\n    if parsed.scheme not in (\"http\", \"https\") or not parsed.netloc:\n        return None\n    # Protect a Markdown angle-bracket destination.\n    return value.replace(\"&lt;\", \"%3C\").replace(\"&gt;\", \"%3E\").replace(\" \", \"%20\")\n\ndef md_label(value):\n    return re.sub(r\"(&#91;\\\\\\&#91;\\]&lt;&gt;])\", r\"\\\\\\1\", str(value).replace(\"\\n\", \" \"))\n\ndef export_markdown(answer, output, question=QUESTION):\n    sources = source_index(output)\n    cited = list(dict.fromkeys(CITATION_RE.findall(answer)))\n    missing = &#91;\n        sid for sid in cited\n        if sid not in sources or not safe_url(field(sources&#91;sid], \"url\"))\n    ]\n    def link(match):\n        sid = match.group(1)\n        url = safe_url(field(sources.get(sid, {}), \"url\"))\n        return f\"&#91;{match.group(0)&#91;1:-1]}](&lt;{url}&gt;)\" if url else match.group(0)\n\n    # Keep every ID when the same URL appears under different IDs.\n    grouped = defaultdict(list)\n    titles = {}\n    for sid in cited:\n        source = sources.get(sid, {})\n        url = safe_url(field(source, \"url\"))\n        if url:\n            grouped&#91;url].append(sid)\n            titles.setdefault(url, field(source, \"title\") or url)\n\n    lines = &#91;\"# Source-grounded answer\", \"\", question, \"\",\n             CITATION_RE.sub(link, answer), \"\", \"## Cited sources\", \"\"]\n    for url, ids in grouped.items():\n        lines.append(f\"- IDs {', '.join(ids)}: &#91;{md_label(titles&#91;url])}](&lt;{url}&gt;)\")\n    if missing:\n        lines.append(\"- Unmatched or unusable source IDs: \" + \", \".join(missing))\n    if not cited:\n        lines.append(\"- No recognized inline citations; evidence not verified.\")\n    lines.extend(&#91;\"\", \"Source links require review; matching IDs does not verify claims.\"])\n    return \"\\n\".join(lines) + \"\\n\"\n\ndef main():\n    from perplexity import Perplexity\n    response = Perplexity().responses.create(\n        preset=\"fast\",\n        input=QUESTION,\n        tools=&#91;{\"type\": \"web_search\", \"filters\": {\n            \"search_domain_filter\": &#91;\"docs.python.org\", \"packaging.python.org\"]\n        }}],\n    )\n    answer = response.output_text or \"\"\n    if not answer.strip():\n        raise RuntimeError(\"No answer text returned; inspect response status and errors.\")\n    Path(\"perplexity-response.json\").write_text(\n        response.model_dump_json(indent=2), encoding=\"utf-8\"\n    )\n    Path(\"perplexity-answer.md\").write_text(\n        export_markdown(answer, response.output), encoding=\"utf-8\"\n    )\n    print(\"Saved perplexity-answer.md and perplexity-response.json\")\n\nif __name__ == \"__main__\":\n    main()\n\n<\/code><\/pre>\n\n\n\n<p class=\"pat-p wp-block-paragraph\">\ub2ec\ub9ac\ub2e4 <code>python perplexity_tutorial.py<\/code> \ud504\ub85c\uc81d\ud2b8 \ub514\ub809\ud130\ub9ac\uc5d0\uc11c. \ub2e4\uc74c\uc744 \uae30\ub85d\ud569\ub2c8\ub2e4. <code>perplexity-answer.md<\/code> \uadf8\ub9ac\uace0 <code>perplexity-response.json<\/code> \uac70\uae30\uc5d0, \ud574\ub2f9 \uc774\ub984\uc758 \uae30\uc874 \ud30c\uc77c\uc744 \ub300\uccb4\ud558\uc5ec \uc800\uc7a5\ud569\ub2c8\ub2e4. \ub9c8\ud06c\ub2e4\uc6b4 \ud30c\uc77c\uc5d0\ub294 \uc9c8\ubb38, \ub9c1\ud06c\ub41c \ub2f5\ubcc0, \uc778\uc6a9\ub41c \ucd9c\ucc98 \ubc0f \uc77c\uce58\ud558\uc9c0 \uc54a\ub294 ID\uac00 \ud3ec\ud568\ub418\uc5b4 \uc788\uc2b5\ub2c8\ub2e4. JSON \ud30c\uc77c\uc5d0\ub294 \ubc18\ud658\ub41c \uacb0\uacfc\uc640 \uc9c4\ub2e8\uc6a9 \uc0ac\uc6a9 \uc815\ubcf4\uac00 \uc800\uc7a5\ub429\ub2c8\ub2e4.<\/p>\n\n\n\n<p class=\"pat-p wp-block-paragraph\">\uc774 \ud30c\uc11c\ub294 \ubb38\uc11c\uc5d0 \uba85\uc2dc\ub41c \uc0b0\ubb38 \ud615\uc2dd\uc758 \ub2e8\uc77c \ub9c8\ucee4 \ud615\ud0dc\ub97c \ub300\uc0c1\uc73c\ub85c \ud569\ub2c8\ub2e4. \uc774 \ud30c\uc11c\ub294 \uc644\uc804\ud55c \ub9c8\ud06c\ub2e4\uc6b4 \ud30c\uc11c\uac00 \uc544\ub2d9\ub2c8\ub2e4. \ub9cc\uc57d \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0\uc11c \ub2e4\uc74c\uacfc \uac19\uc740 \uc784\uc758\uc758 \ub9c8\ud06c\ub2e4\uc6b4, \ucf54\ub4dc \uc608\uc81c \ub610\ub294 \uc778\uc6a9\ubb38\uc744 \uc694\uccad\ud558\ub294 \uacbd\uc6b0 <code>[1,2]<\/code>, \ud574\ub2f9 \ud615\uc2dd\uc5d0 \ub300\ud55c \uad6c\ubb38 \uc778\uc2dd \ub80c\ub354\ub7ec\uc640 \ud14c\uc2a4\ud2b8\ub97c \ucd94\uac00\ud558\uc2ed\uc2dc\uc624. \uc54c \uc218 \uc5c6\ub294 \ub9c8\ucee4\ub97c \uc544\ubb34\ub7f0 \uacbd\uace0 \uc5c6\uc774 \uc7ac\ud574\uc11d\ud558\uc9c0 \ub9c8\uc2ed\uc2dc\uc624.<\/p>\n\n\n\n<h3 class=\"wp-block-heading pat-h3\">\ub9c1\ud06c\ub41c \ud398\uc774\uc9c0\uc5d0\uc11c \ud574\ub2f9 \ub2f5\ubcc0\uc744 \ud655\uc778\ud560 \uc218 \uc788\ub294\uc9c0 \ud655\uc778\ud558\uc138\uc694<\/h3>\n\n\n\n<p class=\"pat-p wp-block-paragraph\">\uc774 \uc608\uc2dc\uc758 \uacbd\uc6b0, \uc778\uc6a9\ub41c \ubb38\uc11c\uac00 \uc2e4\uc81c\ub85c \ud658\uacbd \uaca9\ub9ac \ubc0f \uc758\uc874\uc131 \uc124\uce58\uc5d0 \ub300\ud574 \uc124\uba85\ud558\uace0 \uc788\ub294\uc9c0 \ud655\uc778\ud574 \ubcf4\uc138\uc694. Python \ud648\ud398\uc774\uc9c0 \ub9c1\ud06c\ub294 \uad00\ub828 \ubb38\uc11c \uc139\uc158\ubcf4\ub2e4 \uc720\uc6a9\uc131\uc774 \ub5a8\uc5b4\uc9d1\ub2c8\ub2e4. \ub2f5\ubcc0\uc5d0\uc11c \ud2b9\uc815 \uba85\ub839\uc5b4\ub97c \ucd94\ucc9c\ud558\ub294 \uacbd\uc6b0, \uc2e4\ud589\ud558\uae30 \uc804\uc5d0 \ud574\ub2f9 \uba85\ub839\uc5b4\uac00 \uc9c0\uc6d0\ud558\ub294 \uc6b4\uc601 \uccb4\uc81c\uc640 Python \ubc84\uc804\uc744 \ud655\uc778\ud558\uc138\uc694. Mark\ub294 \uc778\uc6a9\ub41c \ubb38\uad6c\uac00 \u2018\ud574\uacb0\ub418\uc9c0 \uc54a\uc74c\u2019 \uc0c1\ud0dc\ub97c \ub4b7\ubc1b\uce68\ud558\uc9c0 \uc54a\ub294\ub2e4\uace0 \uc8fc\uc7a5\ud569\ub2c8\ub2e4.<\/p>\n\n\n\n<h2 id=\"advanced\" class=\"wp-block-heading pat-h2\">\ud544\uc694\ud560 \ub54c \uc2a4\ud2b8\ub9ac\ubc0d \ub610\ub294 \uad6c\uc870\ud654\ub41c \ucd9c\ub825\uc744 \ucd94\uac00\ud558\uc138\uc694<\/h2>\n\n\n\n<h3 class=\"wp-block-heading pat-h3\">\uc2a4\ud2b8\ub9ac\ubc0d<\/h3>\n\n\n\n<p class=\"pat-p wp-block-paragraph\">\uc2a4\ud2b8\ub9ac\ubc0d\uc740 \ucc44\ud305 \uc778\ud130\ud398\uc774\uc2a4\uc5d0\uc11c \uccb4\uac10\ub418\ub294 \uc9c0\uc5f0 \uc2dc\uac04\uc744 \uac1c\uc120\ud569\ub2c8\ub2e4. \uc0c1\ub2f4\uc6d0 \ub9c8\uc774\uadf8\ub808\uc774\uc158 \uac00\uc774\ub4dc\uc5d0\ub294 \ub2e4\uc74c\uacfc \uac19\uc740 \ud14d\uc2a4\ud2b8 \ub378\ud0c0 \uc774\ubca4\ud2b8\uac00 \uc124\uba85\ub418\uc5b4 \uc788\uc2b5\ub2c8\ub2e4. <code>response.output_text.delta<\/code>. \ub378\ud0c0 \ub370\uc774\ud130\uac00 \ub3c4\ucc29\ud558\ub294 \ub300\ub85c \ub80c\ub354\ub9c1\ud558\ub418, \ucd5c\uc885 \uc751\ub2f5 \ud56d\ubaa9\ub3c4 \ud568\uaed8 \uc218\uc9d1\ud558\uc5ec \ub2f5\ubcc0\uc774 \uc644\ub8cc\ub41c \ud6c4 UI\uc5d0 \uc18c\uc2a4 \ubaa9\ub85d\uc744 \ud45c\uc2dc\ud560 \uc218 \uc788\ub3c4\ub85d \ud558\uc138\uc694. \ud14d\uc2a4\ud2b8 \uc2a4\ud2b8\ub9bc\ub9cc\uc73c\ub85c\ub294 \uc18c\uc2a4 \ubaa9\ub85d\uc774 \ub420 \uc218 \uc5c6\uc2b5\ub2c8\ub2e4.<\/p>\n\n\n\n<p class=\"pat-p wp-block-paragraph\">\ub2e4\uc74c\uc740 \ud14d\uc2a4\ud2b8 \ud45c\uc2dc\uc6a9\uc785\ub2c8\ub2e4. \uccab \ubc88\uc9f8 \uc644\uc804\ud55c \uc18c\uc2a4 \ub808\ucf54\ub4dc\uc5d0 \ub300\ud574\uc11c\ub294 \ube44\uc2a4\ud2b8\ub9ac\ubc0d \ub0b4\ubcf4\ub0b4\uae30 \ubc29\uc2dd\uc744 \uc720\uc9c0\ud558\uc2ed\uc2dc\uc624. \uc2e4\uc81c \uc2a4\ud2b8\ub9ac\ubc0d \uad6c\ud604\uc5d0\uc11c\ub294 \ud234\/\ucd9c\ub825 \uc774\ubca4\ud2b8\ub97c \uc218\uc9d1\ud558\uace0, \uc911\ub2e8\ub418\uac70\ub098 \uc2e4\ud328\ud55c \uc2e4\ud589\uc744 \ucc98\ub9ac\ud574\uc57c \ud569\ub2c8\ub2e4.<\/p>\n\n\n\n<pre class=\"wp-block-code pat-code\"><code>stream = client.responses.create(\n    preset=\"fast\", input=question, stream=True\n)\nfor event in stream:\n    if event.type == \"response.output_text.delta\":\n print(event.delta, end=\"\", flush=True)<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading pat-h3\">\uc815\ud615\ud654\ub41c \ucd9c\ub825<\/h3>\n\n\n\n<p class=\"pat-p wp-block-paragraph\">\ud558\ub958 \ucf54\ub4dc\uc5d0\uc11c \ub2e4\uc74c\uacfc \uac19\uc740 \ud544\ub4dc\uac00 \ud544\uc694\ud55c \uacbd\uc6b0, \uad6c\uc870\ud654\ub41c \uc751\ub2f5\uc744 \uc0ac\uc6a9\ud558\uc2ed\uc2dc\uc624. <code>\ub2f5\ubcc0<\/code>, <code>confidence_note<\/code> \uadf8\ub9ac\uace0 <code>\ucd94\uac00 \uc9c8\ubb38<\/code>. \uc18c\uc2a4 ID\ub97c \ubcc4\ub3c4\uc758 \ud544\ub4dc\ub85c \uc720\uc9c0\ud558\uac70\ub098 \uc6d0\ub798\uc758 \uc5d0\uc774\uc804\ud2b8 \ucd9c\ub825 \uacb0\uacfc\ub97c \uadf8\ub300\ub85c \ubcf4\uc874\ud558\uc5ec, \uc2a4\ud0a4\ub9c8\uac00 \uad00\ub828 \uc99d\uac70\ub97c \uac00\ub9ac\uc9c0 \uc54a\ub3c4\ub85d \ud558\uc2ed\uc2dc\uc624. \uc6cc\ud06c\ud50c\ub85c\uc6b0\uc5d0\uc11c \ud574\ub2f9 \uc2a4\ud0a4\ub9c8\ub97c \uc0ac\uc6a9\ud558\uae30 \uc804\uc5d0, \uc9c1\uc811 \ud14c\uc2a4\ud2b8 \ucf00\uc774\uc2a4\ub97c \ud1b5\ud574 \uc2a4\ud0a4\ub9c8\uc758 \uc720\ud6a8\uc131\uc744 \ud655\uc778\ud558\uc2ed\uc2dc\uc624.<\/p>\n\n\n\n<p class=\"pat-p wp-block-paragraph\">\ub9c8\uc774\uadf8\ub808\uc774\uc158 \ucc38\uc870 \uc815\ubcf4\ub294 \uc720\uc9c0\ub429\ub2c8\ub2e4 <code>\uc751\ub2f5 \ud615\uc2dd<\/code> \uc640 \ud568\uaed8 <code>type: \"json_schema\"<\/code> \uad6c\uc870\ud654\ub41c \ucd9c\ub825\uc744 \uc704\ud574. \ud544\uc218 \ud544\ub4dc\ub97c \uc815\uc758\ud558\uace0, \ud544\uc694\ud55c \uacbd\uc6b0 \uc608\uc0c1\uce58 \ubabb\ud55c \uc18d\uc131\uc744 \ud5c8\uc6a9\ud558\uc9c0 \uc54a\ub3c4\ub85d \ud569\ub2c8\ub2e4. \uc2a4\ud0a4\ub9c8 \uc720\ud6a8\uc131 \uac80\uc0ac\ub294 \ud615\uc2dd\uc744 \uac80\uc99d\ud560 \ubfd0, \uc0ac\uc2e4 \uc5ec\ubd80\ub97c \uac80\uc99d\ud558\uc9c0\ub294 \uc54a\uc2b5\ub2c8\ub2e4. \uc989, \uc18c\uc2a4 ID\ub294 \uc5ec\uc804\ud788 \uc2e4\uc81c\ub85c \ubc18\ud658\ub41c \ub808\ucf54\ub4dc\ub85c \ud574\uacb0\ub418\uc5b4\uc57c \ud558\uba70, \ubaa8\ub378\uc774 \uc0dd\uc131\ud55c \uc2e0\ub8b0\ub3c4 \ub77c\ubca8\uc740 \uc815\ud655\ub3c4 \uce21\uc815\uac12\uc774 \uc544\ub2d9\ub2c8\ub2e4.<\/p>\n\n\n\n<h2 id=\"cost-errors\" class=\"wp-block-heading pat-h2\">Perplexity API \ube44\uc6a9 \ubc0f \uc790\uc8fc \ubc1c\uc0dd\ud558\ub294 \uc624\ub958<\/h2>\n\n\n\n<p class=\"pat-p wp-block-paragraph\"><a href=\"https:\/\/docs.perplexity.ai\/docs\/getting-started\/pricing\">Perplexity\uc758 \uacf5\uc2dd \uac00\uaca9 \uc548\ub0b4 \ud398\uc774\uc9c0<\/a>, 2026\ub144 9\uc6d4 28\uc77c \ud655\uc778, \uc5d0\uc774\uc804\ud2b8 \ubaa8\ub378 \ud1a0\ud070\uacfc \ub3c4\uad6c \ud638\ucd9c\uc744 \uad6c\ubd84\ud569\ub2c8\ub2e4. \ub2e4\uc74c\uc740 USD \uae30\uc900 \ub3c4\uad6c\/\uac80\uc0c9 \uc694\uae08\uc785\ub2c8\ub2e4. \uc774 <code>\ube60\ub978<\/code> \uc5d0\uc774\uc804\ud2b8 \uc0ac\uc804 \uc124\uc815 \ubc0f <code>search_type: \"fast\"<\/code> \uc774\ub294 \uc11c\ub85c \ub2e4\ub978 \uad6c\uc131 \uc635\uc158\uc77c \ubfd0\uc774\uba70, \uc0ac\uc804 \uc124\uc815 \uc774\ub984\ub9cc\uc73c\ub85c \uac80\uc0c9 \ube48\ub3c4\ub97c \ucd94\uce21\ud574\uc11c\ub294 \uc548 \ub429\ub2c8\ub2e4.<\/p>\n\n\n\n<figure class=\"wp-block-table pat-table\"><table><thead><tr><th>\uccad\uad6c \ub300\uc0c1 \uc5c5\ubb34<\/th><th>\uc8fc\ub2f9 USD<\/th><th>1,000\ub2f9 USD<\/th><\/tr><\/thead><tbody><tr><td>\uc5d0\uc774\uc804\ud2b8 \ud45c\uc900 \uc6f9 \uac80\uc0c9<\/td><td>$0.0025<\/td><td>$2.50<\/td><\/tr><tr><td>Agent Fast Search \ud638\ucd9c<\/td><td>$0.001<\/td><td>$1.00<\/td><\/tr><tr><td>\uc5d0\uc774\uc804\ud2b8 URL \uac00\uc838\uc624\uae30<\/td><td>$0.0005<\/td><td>$0.50<\/td><\/tr><tr><td>\uac80\uc0c9 API \uc694\uccad \uc131\uacf5<\/td><td>$0.005<\/td><td>$5.00<\/td><\/tr><tr><td>Fast Search\ub97c \ud65c\uc6a9\ud55c \uac80\uc0c9 API<\/td><td>$0.001<\/td><td>$1.00<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"736\" height=\"1024\" src=\"https:\/\/wp.glbgpt.com\/wp-content\/uploads\/2026\/09\/perplexity-api-official-tool-search-pricing-736x1024.webp\" alt=\"\uc5d0\uc774\uc804\ud2b8 \ub3c4\uad6c \ud638\ucd9c \uc694\uae08 \ubc0f \uc694\uccad 1,000\uac74\ub2f9 \uac80\uc0c9 API \uc694\uae08\uc744 \ub098\ud0c0\ub0b4\ub294 Perplexity \uacf5\uc2dd \uc694\uae08\ud45c.\" class=\"wp-image-20036\" srcset=\"https:\/\/wp.glbgpt.com\/wp-content\/uploads\/2026\/09\/perplexity-api-official-tool-search-pricing-736x1024.webp 736w, https:\/\/wp.glbgpt.com\/wp-content\/uploads\/2026\/09\/perplexity-api-official-tool-search-pricing-216x300.webp 216w, https:\/\/wp.glbgpt.com\/wp-content\/uploads\/2026\/09\/perplexity-api-official-tool-search-pricing-9x12.webp 9w, https:\/\/wp.glbgpt.com\/wp-content\/uploads\/2026\/09\/perplexity-api-official-tool-search-pricing-768x1068.webp 768w, https:\/\/wp.glbgpt.com\/wp-content\/uploads\/2026\/09\/perplexity-api-official-tool-search-pricing.webp 848w\" sizes=\"(max-width: 736px) 100vw, 736px\" \/><\/figure>\n\n\n\n<p class=\"pat-p wp-block-paragraph\"><strong>\uc608\uc2dc:<\/strong> \ud45c\uc900 \uc6f9 \uac80\uc0c9 \ud638\ucd9c 1,000\ud68c\uc640 URL \uc870\ud68c 1,000\ud68c\uc758 \ube44\uc6a9\uc740 <strong>\uacf5\uad6c \ube44\uc6a9 $3.00<\/strong> ($2.50 + $0.50), \ubaa8\ub378 \ud1a0\ud070\uc774\ub098 \uae30\ud0c0 \uc694\uae08\uc774 \uc801\uc6a9\ub418\uae30 \uc804\uc785\ub2c8\ub2e4. \uc774\ub294 \ud29c\ud1a0\ub9ac\uc5bc\uc744 \uc704\ud574 \uce21\uc815\ub41c \ube44\uc6a9\uc774 \uc544\ub2cc, \uac00\uc815\ub41c \uc791\uc5c5\ub7c9\uc785\ub2c8\ub2e4. \ub2e8\uc77c \uc5d0\uc774\uc804\ud2b8 \uc694\uccad\uc774 \uc5ec\ub7ec \ub3c4\uad6c\ub97c \ud638\ucd9c\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uac00\ub2a5\ud55c \uacbd\uc6b0, \ub2e4\uc74c\uc744 \ud655\uc778\ud558\uc2ed\uc2dc\uc624. <code>\uc0ac\uc6a9\ub7c9.\ube44\uc6a9.\ucd1d\ube44\uc6a9<\/code> \uc644\ub8cc\ub41c \uc751\ub2f5\uc5d0 \ub300\ud574.<\/p>\n\n\n\n<figure class=\"wp-block-table pat-table\"><table><thead><tr><th>\uc99d\uc0c1<\/th><th>\uac00\uc7a5 \uba3c\uc800 \ud655\uc778\ud574\uc57c \ud560 \uc0ac\ud56d<\/th><\/tr><\/thead><tbody><tr><td>401 \ub610\ub294 403<\/td><td>\ud658\uacbd \ubcc0\uc218 \uc774\ub984, \ud0a4 \uc720\ud6a8\uc131, \uacc4\uc815 \uc561\uc138\uc2a4 \uad8c\ud55c, \uadf8\ub9ac\uace0 \uc694\uccad\uc774 \ud604\uc7ac \uc5d4\ub4dc\ud3ec\uc778\ud2b8\uc5d0 \ub3c4\ub2ec\ud558\uace0 \uc788\ub294\uc9c0 \uc5ec\ubd80.<\/td><\/tr><tr><td>\uccad\uad6c \ub610\ub294 \ud560\ub2f9\ub7c9 \uc624\ub958<\/td><td>API \ud06c\ub808\ub527, \uacb0\uc81c \uc124\uc815, \ubaa8\ub378\/\ub3c4\uad6c \uc774\uc6a9\ub8cc \ubc0f \uacc4\uc815 \ud55c\ub3c4. Perplexity \uc18c\ube44\uc790 \uc694\uae08\uc81c\ub97c \uc120\ud0dd\ud55c\ub2e4\uace0 \ud574\uc11c \uc790\ub3d9\uc73c\ub85c API \ud06c\ub808\ub527\uc774 \uc81c\uacf5\ub418\ub294 \uac83\uc740 \uc544\ub2d9\ub2c8\ub2e4.<\/td><\/tr><tr><td>429<\/td><td>\uc694\uccad \uc81c\ud55c \ubc0f \uc7ac\uc2dc\ub3c4 \ub3d9\uc791. \uc81c\ud55c\ub41c \uc9c0\uc218\uc801 \ubc31\uc624\ud504\ub97c \uc0ac\uc6a9\ud558\uace0, \uc774\ubbf8 \ucc98\ub9ac\ub41c \uc694\uccad\uc744 \ubb34\ubd84\ubcc4\ud558\uac8c \ub2e4\uc2dc \uc2e4\ud589\ud558\uc9c0 \uc54a\ub3c4\ub85d \ud569\ub2c8\ub2e4.<\/td><\/tr><tr><td>\ud0c0\uc784\uc544\uc6c3<\/td><td>\ub124\ud2b8\uc6cc\ud06c \uacbd\ub85c, \ud504\ub86c\ud504\ud2b8 \ud06c\uae30, \ub3c4\uad6c \uc218 \ubc0f \ud074\ub77c\uc774\uc5b8\ud2b8 \ud0c0\uc784\uc544\uc6c3 \uc124\uc815. SDK\uc5d0\uc11c \uc694\uccad ID\ub97c \uc81c\uacf5\ud558\ub294 \uacbd\uc6b0 \uc774\ub97c \uae30\ub85d\ud558\ub418, \ud0a4\ub294 \uc808\ub300 \uae30\ub85d\ud558\uc9c0 \ub9c8\uc2ed\uc2dc\uc624.<\/td><\/tr><tr><td>\ub2f5\ubcc0\uc5d0 \ud574\ub2f9\ud558\ub294 \ucd9c\ucc98\uac00 \uc5c6\uc2b5\ub2c8\ub2e4.<\/td><td>\uc6d0\uc7ac\ub8cc\ub97c \uac80\uc0ac\ud558\uc2ed\uc2dc\uc624 <code>response.output<\/code>, \uc778\uc6a9 \uad6c\ubb38 \ubc0f \ucd9c\ucc98 ID; \ub9c1\ud06c\ub97c \uc784\uc758\ub85c \ub9cc\ub4e4\uc5b4\ub0b4\ub294 \ub300\uc2e0 \ud574\ub2f9 \ub2f5\ubcc0\uc744 \u2018\ud655\uc778\ub418\uc9c0 \uc54a\uc74c\u2019\uc73c\ub85c \ud45c\uc2dc\ud558\uc2ed\uc2dc\uc624.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"pat-p wp-block-paragraph\">\uac80\uc0c9 API\ub294 \uacb0\uacfc\uac00 \ubc18\ud658\ub418\uc9c0 \uc54a\ub294 \uc694\uccad\uc744 \ud3ec\ud568\ud558\uc5ec \uc131\uacf5\ud55c \uc694\uccad\uc5d0 \ub300\ud574 \uc694\uae08\uc744 \ubd80\uacfc\ud558\uba70, \uc694\uccad \uc694\uae08\uc5d0\ub294 \ud1a0\ud070 \uc694\uae08\uc774 \ubcc4\ub3c4\ub85c \ubd80\uacfc\ub418\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4. \uc5d0\uc774\uc804\ud2b8 \ube44\uc6a9\uc740 \ubaa8\ub378 \ud1a0\ud070 \ubc0f \ub3c4\uad6c\uc5d0 \ub530\ub77c \ub2ec\ub77c\uc9d1\ub2c8\ub2e4. \uc751\ub2f5 \uc6cc\ud06c\ud50c\ub85c\uc6b0\uc640 \uac80\uc0c9 \uc804\uc6a9 \uc6cc\ud06c\ud50c\ub85c\uc6b0\ub97c \ube44\uad50\ud560 \ub54c\ub294 \uc774\ub7ec\ud55c \uccad\uad6c \ub2e8\uc704\ub97c \uad6c\ubd84\ud558\uc5ec \uace0\ub824\ud574\uc57c \ud569\ub2c8\ub2e4.<\/p>\n\n\n\n<p class=\"pat-p wp-block-paragraph\">API \ube44\uc6a9 \ube44\uad50\ub97c \uc704\ud574, \ub2f9\uc0ac\uc758 <a href=\"https:\/\/www.glbgpt.com\/hub\/perplexity-api-cost-2025\/\">Perplexity API \uc694\uae08 \uc548\ub0b4<\/a> \ubc30\uacbd \uc815\ubcf4\ub97c \uc81c\uacf5\ud558\uc9c0\ub9cc, \ud604\uc7ac \uc694\uae08\uc740 \uacf5\uc2dd \uc694\uae08 \ud398\uc774\uc9c0\uc758 \ub0b4\uc6a9\uc744 \uae30\uc900\uc73c\ub85c \ud569\ub2c8\ub2e4.<\/p>\n\n\n\n<h2 id=\"migration\" class=\"wp-block-heading pat-h2\">\uad6c\ubc84\uc804 Sonar \ud29c\ud1a0\ub9ac\uc5bc\uc5d0\uc11c \ub118\uc5b4\uc624\uba70<\/h2>\n\n\n\n<p class=\"pat-p wp-block-paragraph\">\ub9ce\uc740 \uac80\uc0c9 \uacb0\uacfc\uc5d0\ub294 \uc5ec\uc804\ud788 \uc774\uc804 \ubc84\uc804\uc758 \u2018\ucc44\ud305 \uc644\uc131(Chat Completions)\u2019 \ubaa8\uc591\uc774 \ud45c\uc2dc\ub429\ub2c8\ub2e4. \uc0c1\ub2f4\uc6d0 \ub9c8\uc774\uadf8\ub808\uc774\uc158 \uac00\uc774\ub4dc\uc5d0\uc11c\ub294 \uc9c1\uc811\uc801\uc778 \uac1c\ub150 \ub9e4\ud551 \ubc29\uc2dd\uc744 \uc0ac\uc6a9\ud569\ub2c8\ub2e4. \uc18c\ube44\uc790 \ubaa8\ub378 \ub808\uc774\ube14\uacfc API \uc0ac\uc804 \uc124\uc815\uc744 \ube44\uad50\ud558\uace0 \uacc4\uc2e0\ub2e4\uba74, \ub2f9\uc0ac\uc758 \uc124\uba85 \uc790\ub8cc\ub97c \ucc38\uace0\ud558\uc2dc\uae30 \ubc14\ub78d\ub2c8\ub2e4. <a href=\"https:\/\/www.glbgpt.com\/hub\/what-llm-does-perplexity-use\/\">LLM \ud37c\ud50c\ub809\uc11c\ud2f0\uac00 \uc0ac\uc6a9\ud558\ub294 \uac83<\/a> \ubc30\uacbd\uc744 \uc124\uba85\ud574 \uc8fc\uc9c0\ub9cc, Agent API \ubb38\uc11c\ub97c \ub300\uc2e0\ud560 \uc218\ub294 \uc5c6\uc2b5\ub2c8\ub2e4.<\/p>\n\n\n\n<figure class=\"wp-block-table pat-table\"><table><thead><tr><th>\uad6c\ud615 \uc18c\ub098 \ud328\ud134<\/th><th>\uc5d0\uc774\uc804\ud2b8 API \ud328\ud134<\/th><\/tr><\/thead><tbody><tr><td><code>\uba54\uc2dc\uc9c0<\/code><\/td><td><code>\uc785\ub825<\/code><\/td><\/tr><tr><td><code>\ubaa8\ub378<\/code><\/td><td><code>\uc0ac\uc804 \uc124\uc815<\/code><\/td><\/tr><tr><td><code>choices[0].message.content<\/code><\/td><td><code>\ucd9c\ub825 \ud14d\uc2a4\ud2b8<\/code><\/td><\/tr><tr><td>\uad6c\ud615 \uc778\uc6a9 \ubc30\uc5f4\uc5d0 \ub300\ud55c \uac00\uc815<\/td><td><code>\uac80\uc0c9 \uacb0\uacfc<\/code> \ucd9c\ub825 \ud56d\ubaa9 \ubc0f ID \uae30\ubc18 \ub9e4\uce6d<\/td><\/tr><tr><td>\uc694\uccad\uc758 \uac80\uc0c9 \ub9e4\uac1c\ubcc0\uc218<\/td><td><code>tools=[{\"type\":\"web_search\",\"filters\":{...}}]<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"pat-p wp-block-paragraph\">\uc2e4\uc2dc\uac04 \uc911\uacc4 \ubcf4\uae30 <a href=\"https:\/\/docs.perplexity.ai\/docs\/agent-api\/migrate-from-sonar\/overview\">\ub9c8\uc774\uadf8\ub808\uc774\uc158 \uac1c\uc694<\/a> \uadf8\ub9ac\uace0 <a href=\"https:\/\/docs.perplexity.ai\/docs\/agent-api\/migrate-from-sonar\/how-to\">\uc774\uc8fc \uc138\ubd80 \uc815\ubcf4<\/a> \ud504\ub85c\ub355\uc158 \ucf54\ub4dc\ub97c \ubcc0\uacbd\ud558\uae30 \uc804\uc5d0. \uc0ac\uc804 \uc124\uc815\ub41c \ub9e4\ud551\uc740 \ub2e8\uc9c0 \ucd9c\ubc1c\uc810\uc77c \ubfd0\uc774\uba70, \uae30\uc874 \ubaa8\ub378\uacfc \uc0c8 \ubaa8\ub378\uc774 \ub3d9\uc77c\ud55c \ud488\uc9c8, \uc9c0\uc5f0 \uc2dc\uac04 \ub610\ub294 \ube44\uc6a9\uc744 \ubcf4\uc7a5\ud558\ub294 \uac83\uc740 \uc544\ub2d9\ub2c8\ub2e4.<\/p>\n\n\n\n<h2 id=\"faq\" class=\"wp-block-heading pat-h2\">\uc790\uc8fc \ubb3b\ub294 \uc9c8\ubb38<\/h2>\n\n\n\n<h3 class=\"wp-block-heading pat-h3\">Perplexity API\ub294 \ubb34\ub8cc\uc778\uac00\uc694?<\/h3>\n\n\n\n<p class=\"pat-p wp-block-paragraph\">\ud604\uc7ac\uc758 \ud035\uc2a4\ud0c0\ud2b8 \ubc0f \uc694\uae08 \uc815\ucc45 \ubb38\uc11c\uc5d0 \ub530\ub974\uba74, API\ub294 \uc885\ub7c9\uc81c \ubc29\uc2dd\uc73c\ub85c \uc694\uae08\uc774 \ubd80\uacfc\ub429\ub2c8\ub2e4. \uc18c\ube44\uc790 \uad6c\ub3c5, \uccb4\ud5d8\ud310 \ub610\ub294 \ud504\ub85c\ubaa8\uc158 \ud06c\ub808\ub527\uc774 \ubaa8\ub4e0 API \uc694\uccad\uc744 \ubb34\ub8cc\ub85c \ub9cc\ub4e4\uc5b4 \uc900\ub2e4\uace0 \uac00\uc815\ud558\uc9c0 \ub9c8\uc2ed\uc2dc\uc624.<\/p>\n\n\n\n<h3 class=\"wp-block-heading pat-h3\">API\ub97c \uc0ac\uc6a9\ud558\ub824\uba74 Perplexity Pro\uac00 \ud544\uc694\ud55c\uac00\uc694?<\/h3>\n\n\n\n<p class=\"pat-p wp-block-paragraph\">API \uc774\uc6a9 \uad8c\ud55c\uacfc \uc18c\ube44\uc790\uc6a9 Pro \uc694\uae08\uc81c\ub294 \ubcc4\uac1c\uc758 \uc0c1\ud488\uc785\ub2c8\ub2e4. \uc0ac\uc6a9\ud560 \uac1c\ubc1c\uc790 \uacc4\uc815\uc5d0 \ub300\ud574 API \uc778\uc99d \uc815\ubcf4\ub97c \uc0dd\uc131\ud558\uace0 API \uccad\uad6c \ub0b4\uc5ed\uc744 \ud655\uc778\ud558\uc138\uc694.<\/p>\n\n\n\n<h3 class=\"wp-block-heading pat-h3\">Agent API\ub97c \uc0ac\uc6a9\ud574\uc57c \ud560\uae4c\uc694, \uc544\ub2c8\uba74 Search API\ub97c \uc0ac\uc6a9\ud574\uc57c \ud560\uae4c\uc694?<\/h3>\n\n\n\n<p class=\"pat-p wp-block-paragraph\">\ucd9c\ucc98\uac00 \uba85\uc2dc\ub41c \uc644\uc131\ub41c \ub2f5\ubcc0\uc774 \ud544\uc694\ud560 \ub54c\ub294 \u2018\uc5d0\uc774\uc804\ud2b8\u2019\ub97c \uc120\ud0dd\ud558\uc138\uc694. \uc2e0\uccad\uc11c\uc5d0\uc11c \uc21c\uc704 \uc9c0\uc815, \ud544\ud130\ub9c1 \ubc0f \uc694\uc57d \uae30\ub2a5\uc744 \uc9c1\uc811 \ucc98\ub9ac\ud574\uc57c \ud560 \ub54c\ub294 \u2018\uac80\uc0c9\u2019\uc744 \uc120\ud0dd\ud558\uc138\uc694. \ubaa8\ub4e0 \uc0dd\uc131 \ub2e8\uacc4\ub97c \uc5c4\uaca9\ud558\uac8c \uc81c\uc5b4\ud574\uc57c \ud560 \uacbd\uc6b0, \u2018\uac80\uc0c9\u2019 \uae30\ub2a5\uc744 \uc790\uccb4 \ubaa8\ub378\uacfc \uacb0\ud569\ud558\uc5ec \uc0ac\uc6a9\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n\n\n\n<h3 class=\"wp-block-heading pat-h3\">\uc790\ubc14\uc2a4\ud06c\ub9bd\ud2b8\uc5d0\uc11c Perplexity\ub97c \ud638\ucd9c\ud560 \uc218 \uc788\ub098\uc694?<\/h3>\n\n\n\n<p class=\"pat-p wp-block-paragraph\">\ub124. \uc704\uc758 \uc11c\ubc84 \uce21 Node.js \uc608\uc81c\ub098 \uacf5\uc2dd JavaScript SDK\ub97c \uc0ac\uc6a9\ud558\uc138\uc694. \ud0a4\ub294 \uc11c\ubc84\uc5d0 \ubcf4\uad00\ud558\uc138\uc694. \uc6d0\uc2dc JSON\uc744 \uc77d\uc744 \ub54c\ub294 \uc720\ud615\uc774 \uc9c0\uc815\ub41c \ucd9c\ub825 \ud56d\ubaa9\uc744 \ud655\uc778\ud558\uace0 \ub3d9\uc77c\ud55c \uc18c\uc2a4 ID \ub9e4\ud551 \uaddc\uce59\uc744 \uc801\uc6a9\ud558\uc138\uc694.<\/p>\n\n\n\n<h3 class=\"wp-block-heading pat-h3\">Perplexity \uc778\uc6a9 \uc815\ubcf4\uac00 \ubc18\ub4dc\uc2dc \uc815\ud655\ud55c\uac00\uc694?<\/h3>\n\n\n\n<p class=\"pat-p wp-block-paragraph\">\uc544\ub2d9\ub2c8\ub2e4. \uc778\uc6a9 \uc815\ubcf4\ub294 \ud574\ub2f9 \ub2f5\ubcc0\uc774 \uc5b4\ub5a4 \uac80\uc0c9 \uacb0\uacfc\ub97c \uac00\ub9ac\ud0a4\ub294\uc9c0 \uc54c\ub824\uc904 \ubfd0\uc785\ub2c8\ub2e4. \uadc0\ud558\uc758 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc774\ub098 \uac80\ud1a0\uc790\ub294 \uc5ec\uc804\ud788 \uc815\ubcf4\uc758 \ucd5c\uc2e0\uc131, \uc2e0\ub8b0\uc131, \uadf8\ub9ac\uace0 \ud574\ub2f9 \ud398\uc774\uc9c0\uac00 \uc815\ud655\ud55c \uc8fc\uc7a5\uc744 \ub4b7\ubc1b\uce68\ud558\ub294\uc9c0 \uc5ec\ubd80\ub97c \ud655\uc778\ud574\uc57c \ud569\ub2c8\ub2e4.<\/p>\n\n\n\n<h3 class=\"wp-block-heading pat-h3\">\uc65c \ud30c\uc11c\uac00 \uc18c\uc2a4\ub97c \ucc3e\uc9c0 \ubabb\ud588\uc744\uae4c\uc694?<\/h3>\n\n\n\n<p class=\"pat-p wp-block-paragraph\">\uc6d0\ubcf8 \ucd9c\ub825 \ud56d\ubaa9 \uc720\ud615\uc744 \ud655\uc778\ud558\uace0, \uc6f9 \uac80\uc0c9\uc774 \uc2e4\ud589\ub418\uc5c8\ub294\uc9c0 \ud655\uc778\ud55c \ub2e4\uc74c, \uc815\uaddc \ud45c\ud604\uc2dd\uc774 \ud504\ub9ac\uc14b\uc758 \uc778\uc6a9 \ud615\uc2dd\uacfc \uc77c\uce58\ud558\ub294\uc9c0 \ud655\uc778\ud558\uc2ed\uc2dc\uc624. \ud45c\uc2dc\uae30\uac00 \ub098\ud0c0\ub098\uc9c0 \uc54a\uc73c\uba74, \ucd94\uce21\ud55c \ub9c1\ud06c\ub97c \ucd94\uac00\ud558\uc9c0 \ub9d0\uace0 \ub2f5\ubcc0\uc744 \u2018\ud655\uc778\ub418\uc9c0 \uc54a\uc74c\u2019\uc73c\ub85c \uc800\uc7a5\ud55c \ud6c4 \ud574\ub2f9 \uc694\uccad\uc744 \uc870\uc0ac\ud558\uc2ed\uc2dc\uc624.<\/p>\n\n\n\n<h3 class=\"wp-block-heading pat-h3\">GlobalGPT\uac00 Perplexity API \ud0a4\ub97c \ub300\uccb4\ud560 \uc218 \uc788\ub098\uc694?<\/h3>\n\n\n\n<p class=\"pat-p wp-block-paragraph\">GlobalGPT\ub294 \uc77c\uc0c1\uc801\uc778 AI \uc0ac\uc6a9\uc744 \uc704\ud55c \uc62c\uc778\uc6d0 AI \uc791\uc5c5 \uacf5\uac04\uc785\ub2c8\ub2e4. \uc774 \uc11c\ube44\uc2a4\uc758 \uad6c\ub3c5 \ubc0f \ubaa8\ub378 \uc774\uc6a9 \uad8c\ud55c\uc740 Perplexity \uac1c\ubc1c\uc790 \uacc4\uc815, API \ud0a4 \ubc0f API \ud06c\ub808\ub527\uacfc\ub294 \ubcc4\ub3c4\ub85c \uc81c\uacf5\ub418\uba70, \uc774 Python \ud29c\ud1a0\ub9ac\uc5bc\uc5d0\uc11c\ub294 \uac1c\ubc1c\uc790 \uacc4\uc815\uc744 \uc0ac\uc6a9\ud569\ub2c8\ub2e4.<\/p>\n\n\n\n<h2 id=\"checklist\" class=\"wp-block-heading pat-h2\">\uc2e4\uc6a9\uc801\uc778 \ucd9c\uc2dc \uccb4\ud06c\ub9ac\uc2a4\ud2b8<\/h2>\n\n\n\n<ul class=\"wp-block-list pat-list pat-checklist\">\n<li>\uc11c\ubc84 \uce21 \ud0a4\ub97c \uc0dd\uc131\ud558\uace0 API \uc694\uae08 \uacb0\uc81c\ub97c \ud655\uc778\ud558\uc2ed\uc2dc\uc624.<\/li>\n\n\n\n<li>\ucd5c\uc18c \uad6c\uc131\uc73c\ub85c \uc2e4\ud589\ud558\uc138\uc694 <code>\ube60\ub978<\/code> \ud544\ud130\ub97c \ucd94\uac00\ud558\uac70\ub098 \uc2a4\ud2b8\ub9ac\ubc0d\uc744 \uc2dc\uc791\ud558\uae30 \uc804\uc5d0 \uc694\uccad\ud574 \uc8fc\uc138\uc694.<\/li>\n\n\n\n<li>\ubcf4\uc774\ub294 \ub2f5\uc548 \ud14d\uc2a4\ud2b8\ubfd0\ub9cc \uc544\ub2c8\ub77c \uc804\uccb4 \uc751\ub2f5 \ub0b4\uc6a9\uc744 \uc800\uc7a5\ud558\uc138\uc694.<\/li>\n\n\n\n<li>\uc778\uc6a9 \ub9c8\ucee4\ub97c \ubc18\ud658\ub41c \ucd9c\ucc98 ID\uc640 \ub300\uc870\ud558\uace0, \uc77c\uce58\ud558\uc9c0 \uc54a\ub294 \ub9c8\ucee4\ub97c \ud45c\uc2dc\ud569\ub2c8\ub2e4.<\/li>\n\n\n\n<li>\uc778\uc6a9\ub41c \ud398\uc774\uc9c0\ub97c \uac80\ud1a0\ud558\uc5ec \uccad\uad6c\ud56d\uc758 \uadfc\uac70, \ucd5c\uc2e0\uc131 \ubc0f \uc911\ubcf5 URL \uc5ec\ubd80\ub97c \ud655\uc778\ud558\uc2ed\uc2dc\uc624.<\/li>\n\n\n\n<li>\ubc30\ud3ec\ud558\uae30 \uc804\uc5d0 \ub77c\uc774\ube0c \uc5d0\uc774\uc804\ud2b8, \uac00\uaca9 \uc815\ucc45 \ubc0f \ub9c8\uc774\uadf8\ub808\uc774\uc158 \ubb38\uc11c\ub97c \ub2e4\uc2dc \ud55c \ubc88 \ud655\uc778\ud558\uc2ed\uc2dc\uc624.<\/li>\n<\/ul>\n\n\n\n<p class=\"pat-p wp-block-paragraph\">\uc774\uc81c \uc2e0\ub8b0\ud560 \uc218 \uc788\ub294 Perplexity API \ud1b5\ud569\uc744 \uc704\ud55c \ud575\uc2ec \ud328\ud134\uc744 \ud30c\uc545\ud558\uc168\uc2b5\ub2c8\ub2e4. \uad6c\uccb4\uc801\uc778 \uc9c8\ubb38\uc744 \ub358\uc9c0\uace0, \uc5d0\uc774\uc804\ud2b8 API\uac00 \uac80\uc0c9\ud558\ub3c4\ub85d \ud558\uba70, \ub2f5\ubcc0\uacfc \uadfc\uac70\ub97c \ud568\uaed8 \ubcf4\uad00\ud558\uace0, \ubaa8\ub4e0 \uc778\uc6a9\uc744 \uac80\uc99d \uac00\ub2a5\ud558\uac8c \ub9cc\ub4dc\ub294 \uac83\uc785\ub2c8\ub2e4. \uc774\ub97c \ubc14\ud0d5\uc73c\ub85c \ub3d9\uc77c\ud55c \uc18c\uc2a4 ID \uc6cc\ud06c\ud50c\ub85c\uc6b0\ub97c \uc911\uc2ec\uc73c\ub85c \uce90\uc2f1, \uc7ac\uc2dc\ub3c4 \uae30\ub2a5 \ubc0f \uc790\uccb4 \uac80\ud1a0 \uaddc\uce59\uc744 \ucd94\uac00\ud558\uc2dc\uba74 \ub429\ub2c8\ub2e4.<\/p>\n\n\n\n<script type=\"application\/ld+json\">{\n    \"@context\": \"https:\\\/\\\/schema.org\",\n    \"@type\": \"FAQPage\",\n    \"mainEntity\": [\n        {\n            \"@type\": \"Question\",\n            \"name\": \"Is the Perplexity API free?\",\n            \"acceptedAnswer\": {\n                \"@type\": \"Answer\",\n                \"text\": \"The APIs are pay-as-you-go according to the current quickstart and pricing documentation. Do not assume that a consumer subscription, a trial or a promotional credit makes every API request free.\"\n            }\n        },\n        {\n            \"@type\": \"Question\",\n            \"name\": \"Do I need Perplexity Pro to use the API?\",\n            \"acceptedAnswer\": {\n                \"@type\": \"Answer\",\n                \"text\": \"API access and a consumer Pro plan are separate products. Create API credentials and check API billing for the developer account you plan to use.\"\n            }\n        },\n        {\n            \"@type\": \"Question\",\n            \"name\": \"Should I use Agent API or Search API?\",\n            \"acceptedAnswer\": {\n                \"@type\": \"Answer\",\n                \"text\": \"Choose Agent when you want a finished grounded answer with sources. Choose Search when your application should own ranking, filtering and synthesis. You can combine Search with your own model if you need strict control over every generation step.\"\n            }\n        },\n        {\n            \"@type\": \"Question\",\n            \"name\": \"Can I call Perplexity from JavaScript?\",\n            \"acceptedAnswer\": {\n                \"@type\": \"Answer\",\n                \"text\": \"Yes. Use the server-side Node.js example above or the official JavaScript SDK. Keep the key on the server. When reading raw JSON, inspect the typed output items and apply the same source-ID mapping rules.\"\n            }\n        },\n        {\n            \"@type\": \"Question\",\n            \"name\": \"Are Perplexity citations guaranteed to be correct?\",\n            \"acceptedAnswer\": {\n                \"@type\": \"Answer\",\n                \"text\": \"No. A citation tells you which returned result the answer points to. Your application or reviewer must still check freshness, authority and whether the page supports the exact claim.\"\n            }\n        },\n        {\n            \"@type\": \"Question\",\n            \"name\": \"Why did my parser find no sources?\",\n            \"acceptedAnswer\": {\n                \"@type\": \"Answer\",\n                \"text\": \"Inspect the raw output item types, confirm that web search ran, and check whether your regular expression matches the preset's citation form. If no marker appears, save the answer as unverified and investigate the request rather than adding a guessed link.\"\n            }\n        },\n        {\n            \"@type\": \"Question\",\n            \"name\": \"Can GlobalGPT replace a Perplexity API key?\",\n            \"acceptedAnswer\": {\n                \"@type\": \"Answer\",\n                \"text\": \"GlobalGPT is an all-in-one AI workspace for everyday AI use. Its subscription and model access are separate from a Perplexity developer account, API key and API credits; this Python tutorial uses the developer account.\"\n            }\n        }\n    ]\n}<\/script>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>","protected":false},"excerpt":{"rendered":"<p>PERPLEXITY API \u00b7 \ud30c\uc774\uc36c \ud29c\ud1a0\ub9ac\uc5bc \u00b7 2026 \uc774 Perplexity API \ud29c\ud1a0\ub9ac\uc5bc\uc5d0\uc11c\ub294 \ud074\ub9ad \uac00\ub2a5\ud55c \uc6f9 \ucd9c\ucc98\uac00 \ud3ec\ud568\ub41c \ub2f5\ubcc0\uc744 \ubc18\ud658\ud558\ub294 \ud30c\uc774\uc36c \uc2a4\ud06c\ub9bd\ud2b8\ub97c \ub9cc\ub4dc\ub294 \ubc29\ubc95\uc744 \uc548\ub0b4\ud569\ub2c8\ub2e4. \uc5d0\uc774\uc804\ud2b8 API\ub97c \uc0ac\uc6a9\ud558\uc5ec \uc9c8\ubb38\uc744 \uc804\uc1a1\ud558\uace0, \ub2f5\ubcc0\uc744 \uc77d\uc740 \ub2e4\uc74c, \uc778\uc6a9 \ub9c8\ucee4\ub97c \ucd9c\ucc98 ID\uc640 \ub9e4\uce6d\ud558\uc5ec \uac80\ud1a0\ud560 \uc218 \uc788\ub294 \ub9c8\ud06c\ub2e4\uc6b4 \ud30c\uc77c\uc744 \ub0b4\ubcf4\ub0c5\ub2c8\ub2e4. \uc6b0\ub9ac\ub294 [\u2026]<\/p>","protected":false},"author":17,"featured_media":20032,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_seopress_robots_primary_cat":"","_seopress_titles_title":"Perplexity API Tutorial: Build Answers with Sources","_seopress_titles_desc":"Perplexity API tutorial for Python: get a key, build answers with clickable sources, and match citation IDs correctly. Follow the complete script step by step.","_seopress_robots_index":"","footnotes":""},"categories":[7],"tags":[],"class_list":["post-20031","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ai-chat"],"acf":[],"_links":{"self":[{"href":"https:\/\/wp.glbgpt.com\/kr\/wp-json\/wp\/v2\/posts\/20031","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.glbgpt.com\/kr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.glbgpt.com\/kr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.glbgpt.com\/kr\/wp-json\/wp\/v2\/users\/17"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.glbgpt.com\/kr\/wp-json\/wp\/v2\/comments?post=20031"}],"version-history":[{"count":2,"href":"https:\/\/wp.glbgpt.com\/kr\/wp-json\/wp\/v2\/posts\/20031\/revisions"}],"predecessor-version":[{"id":20038,"href":"https:\/\/wp.glbgpt.com\/kr\/wp-json\/wp\/v2\/posts\/20031\/revisions\/20038"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wp.glbgpt.com\/kr\/wp-json\/wp\/v2\/media\/20032"}],"wp:attachment":[{"href":"https:\/\/wp.glbgpt.com\/kr\/wp-json\/wp\/v2\/media?parent=20031"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.glbgpt.com\/kr\/wp-json\/wp\/v2\/categories?post=20031"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.glbgpt.com\/kr\/wp-json\/wp\/v2\/tags?post=20031"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}