{"id":20344,"date":"2026-10-02T10:27:46","date_gmt":"2026-10-02T14:27:46","guid":{"rendered":"https:\/\/wp.glbgpt.com\/?p=20344"},"modified":"2026-10-02T10:27:47","modified_gmt":"2026-10-02T14:27:47","slug":"openai-image-variations-api","status":"publish","type":"post","link":"https:\/\/wp.glbgpt.com\/hub\/zh\/openai-image-variations-api","title":{"rendered":"OpenAI \u56fe\u50cf\u53d8\u4f53 API\uff1a\u529f\u80fd\u4ecb\u7ecd\u53ca\u5e94\u4f7f\u7528\u54ea\u6761\u8def\u7531"},"content":{"rendered":"<aside aria-label=\"\u7b80\u7b54\" style=\"box-sizing:border-box;margin:22px 0;padding:19px 21px;border-top:3px solid #a24f63;border-bottom:1px solid #dcc8cd;background:#fbf4f5\"><strong style=\"display:block;margin-bottom:7px;color:#813c4d;font-size:14px;text-transform:uppercase\">\u7b80\u7b54<\/strong><p style=\"margin:0;color:#293f36;font-size:17px;line-height:1.65\">OpenAI \u56fe\u50cf\u53d8\u4f53 API \u662f\u4e00\u4e2a\u529f\u80fd\u6709\u9650\u3001\u91c7\u7528\u4f20\u7edf\u98ce\u683c\u7684\u7aef\u70b9\uff0c\u7528\u4e8e\u6839\u636e\u8f93\u5165\u56fe\u50cf\u751f\u6210\u89c6\u89c9\u53d8\u4f53\u3002\u5f53\u60a8\u5e0c\u671b\u5c06\u540c\u4e00\u5927\u81f4\u7684\u4e3b\u9898\u6216\u6784\u56fe\u8868\u73b0\u4e3a\u591a\u5f20\u65b0\u56fe\u50cf\u65f6\uff0c\u5b83\u975e\u5e38\u6709\u7528\uff0c\u4f46\u5b83\u5e76\u4e0d\u9002\u5408\u8fdb\u884c\u7cbe\u786e\u3001\u57fa\u4e8e\u6307\u4ee4\u7684\u7f16\u8f91\u3002 \u8be5\u63a5\u53e3\u4e0d\u63d0\u4f9b\u81ea\u7136\u8bed\u8a00\u63d0\u793a\u5b57\u6bb5\uff0c\u65e0\u6cd5\u7528\u4e8e\u5411\u6a21\u578b\u7cbe\u786e\u8bf4\u660e\u5e94\u4fdd\u7559\u6216\u66f4\u6539\u7684\u5185\u5bb9\u3002.<\/p><\/aside>\n\n\n\n<div class=\"wp-block-group is-layout-constrained wp-block-group-is-layout-constrained\">\n<figure class=\"wp-block-image size-large\"><img alt=\"\" fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"540\" src=\"https:\/\/wp.glbgpt.com\/wp-content\/uploads\/2026\/09\/image-6-1024x540.png\" class=\"wp-image-19115\" srcset=\"https:\/\/wp.glbgpt.com\/wp-content\/uploads\/2026\/09\/image-6-1024x540.png 1024w, https:\/\/wp.glbgpt.com\/wp-content\/uploads\/2026\/09\/image-6-300x158.png 300w, https:\/\/wp.glbgpt.com\/wp-content\/uploads\/2026\/09\/image-6-18x9.png 18w, https:\/\/wp.glbgpt.com\/wp-content\/uploads\/2026\/09\/image-6-768x405.png 768w, https:\/\/wp.glbgpt.com\/wp-content\/uploads\/2026\/09\/image-6-1536x810.png 1536w, https:\/\/wp.glbgpt.com\/wp-content\/uploads\/2026\/09\/image-6.png 1812w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/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 style=\"--wp--block-button--width: 50;\" class=\"wp-block-button has-custom-width wp-block-button__width wp-block-button__width-50\"><a class=\"wp-block-button__link has-white-color has-text-color has-background has-link-color wp-element-button\" href=\"https:\/\/www.glbgpt.com\/image-generator\/gpt-image-2-5?inviter=hub_content_gptimage25&amp;login=1\" style=\"background:linear-gradient(135deg,rgb(252,185,0) 33%,rgb(255,105,0) 74%)\"><strong>\u7acb\u5373\u5728 GlobalGPT \u4e0a\u4f53\u9a8c GPT Image 2.5\uff01<\/strong><\/a><\/div>\n<\/div>\n<\/div>\n\n\n\n<nav aria-label=\"\u6587\u7ae0\u5185\u5bb9\" style=\"box-sizing:border-box;margin:24px 0;padding:20px;border:1px solid #bdd3ca;border-left:6px solid #2f6f5b;border-radius:8px;background:#eef6f2\"><strong style=\"display:block;margin-bottom:10px;color:#173c31;font-size:17px\">\u672c\u6307\u5357\u4e2d<\/strong><ol style=\"margin:0;padding-left:22px;columns:2;column-gap:34px\"><li style=\"margin:6px 0;break-inside:avoid\"><a href=\"#what-is-the-openai-image-variations-api\" style=\"color:#245f4c\">\u4ec0\u4e48\u662f OpenAI \u56fe\u50cf\u53d8\u4f53 API\uff1f<\/a><\/li><li style=\"margin:6px 0;break-inside:avoid\"><a href=\"#the-most-important-limitation-variations-are-not-prompted-edits\" style=\"color:#245f4c\">\u6700\u91cd\u8981\u7684\u9650\u5236\uff1a\u53d8\u4f53\u5e76\u975e\u6839\u636e\u63d0\u793a\u8fdb\u884c\u7684\u7f16\u8f91<\/a><\/li><li style=\"margin:6px 0;break-inside:avoid\"><a href=\"#a-decision-framework-before-you-call-the-api\" style=\"color:#245f4c\">\u8c03\u7528 API \u4e4b\u524d\u7684\u51b3\u7b56\u6846\u67b6<\/a><\/li><li style=\"margin:6px 0;break-inside:avoid\"><a href=\"#input-preparation-small-details-decide-whether-the-request-works\" style=\"color:#245f4c\">\u8f93\u5165\u51c6\u5907\uff1a\u7ec6\u5fae\u4e4b\u5904\u51b3\u5b9a\u8bf7\u6c42\u80fd\u5426\u6210\u529f<\/a><\/li><li style=\"margin:6px 0;break-inside:avoid\"><a href=\"#node-js-example-a-defensive-variations-request\" style=\"color:#245f4c\">Node.js \u793a\u4f8b\uff1a\u9632\u5fa1\u6027\u53d8\u4f53\u8bf7\u6c42<\/a><\/li><li style=\"margin:6px 0;break-inside:avoid\"><a href=\"#python-example\" style=\"color:#245f4c\">Python \u793a\u4f8b<\/a><\/li><li style=\"margin:6px 0;break-inside:avoid\"><a href=\"#when-the-image-edit-api-is-the-better-answer\" style=\"color:#245f4c\">\u4f55\u65f6\u5e94\u9009\u62e9\u56fe\u50cf\u7f16\u8f91 API \u4f5c\u4e3a\u66f4\u4f73\u89e3\u51b3\u65b9\u6848<\/a><\/li><li style=\"margin:6px 0;break-inside:avoid\"><a href=\"#a-low-cost-test-that-produces-useful-evidence\" style=\"color:#245f4c\">\u4e00\u9879\u80fd\u63d0\u4f9b\u6709\u4ef7\u503c\u8bc1\u636e\u7684\u4f4e\u6210\u672c\u68c0\u6d4b<\/a><\/li><li style=\"margin:6px 0;break-inside:avoid\"><a href=\"#error-handling-you-need-in-production\" style=\"color:#245f4c\">\u751f\u4ea7\u73af\u5883\u4e2d\u5fc5\u4e0d\u53ef\u5c11\u7684\u9519\u8bef\u5904\u7406<\/a><\/li><li style=\"margin:6px 0;break-inside:avoid\"><a href=\"#cost-planning-without-publishing-stale-prices\" style=\"color:#245f4c\">\u5728\u4e0d\u53d1\u5e03\u8fc7\u65f6\u4ef7\u683c\u7684\u60c5\u51b5\u4e0b\u8fdb\u884c\u6210\u672c\u89c4\u5212<\/a><\/li><li style=\"margin:6px 0;break-inside:avoid\"><a href=\"#when-globalgpt-is-the-simpler-workflow\" style=\"color:#245f4c\">\u4f55\u65f6\u201cGlobalGPT\u201d\u624d\u662f\u66f4\u7b80\u4fbf\u7684\u5de5\u4f5c\u6d41\u7a0b<\/a><\/li><li style=\"margin:6px 0;break-inside:avoid\"><a href=\"#practical-recommendation\" style=\"color:#245f4c\">\u5b9e\u7528\u5efa\u8bae<\/a><\/li><\/ol><\/nav>\n\n\n\n<h2 id=\"what-is-the-openai-image-variations-api\" class=\"wp-block-heading\">\u4ec0\u4e48\u662f OpenAI \u56fe\u50cf\u53d8\u4f53 API\uff1f<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u56fe\u50cf\u53d8\u4f53\u529f\u80fd\u4ee5\u56fe\u50cf\u800c\u975e\u6587\u672c\u63d0\u793a\u4e3a\u8d77\u70b9\u3002\u8be5\u670d\u52a1\u4f1a\u5206\u6790\u6e90\u56fe\u50cf\uff0c\u5e76\u8fd4\u56de\u4e00\u5f20\u6216\u591a\u5f20\u4e0e\u4e4b\u5728\u6574\u4f53\u98ce\u683c\u4e0a\u76f8\u4f3c\u7684\u5168\u65b0\u751f\u6210\u56fe\u50cf\u3002\u4e0d\u540c\u751f\u6210\u7684\u56fe\u50cf\u4e4b\u95f4\uff0c\u989c\u8272\u3001\u5149\u7167\u3001\u7269\u4f53\u7ec6\u8282\u3001\u8d28\u611f\u548c\u6784\u56fe\u53ef\u80fd\u4f1a\u6709\u6240\u53d8\u5316\u3002\u751f\u6210\u7684\u7ed3\u679c\u662f\u6e90\u56fe\u50cf\u7684\u521b\u610f\u53d8\u4f53\uff0c\u800c\u975e\u50cf\u7d20\u7ea7\u5b8c\u5168\u590d\u5236\u7684\u526f\u672c\u3002.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5f00\u53d1\u4eba\u5458\u901a\u5e38\u901a\u8fc7\u65e9\u671f\u7684 DALL-E \u793a\u4f8b\u6765\u4e86\u89e3\u8be5\u7aef\u70b9\u3002\u8fd9\u79cd\u5386\u53f2\u80cc\u666f\u4f1a\u9020\u6210\u6df7\u6dc6\uff0c\u56e0\u4e3a\u201c\u53d8\u4f53\u201d\u4e00\u8bcd\u542c\u8d77\u6765\u50cf\u662f\u4e00\u79cd\u901a\u7528\u7684\u56fe\u50cf\u5230\u56fe\u50cf\u7279\u5f81\u3002\u5b9e\u9645\u4e0a\uff0c\u901a\u5e38\u6709\u4e09\u7c7b\u4e0d\u540c\u7684\u4efb\u52a1\u4f1a\u88ab\u5f52\u5165\u8be5\u6807\u7b7e\u4e4b\u4e0b\uff1a<\/p>\n\n\n\n<div style=\"overflow-x:auto;margin:20px 0\"><table style=\"border-collapse:collapse;width:100%;min-width:640px\"><thead><tr><th style=\"padding:9px;border-bottom:1px solid #cfd9d3;text-align:left;background:#e6eee8\">\u7ea6\u4f2f<\/th><th style=\"padding:9px;border-bottom:1px solid #cfd9d3;text-align:left;background:#e6eee8\">\u6700\u4f73 API \u6982\u5ff5<\/th><th style=\"padding:9px;border-bottom:1px solid #cfd9d3;text-align:left;background:#e6eee8\">\u63a7\u5236\u7ea7\u522b<\/th><\/tr><\/thead><tbody><tr><td style=\"padding:9px;border-bottom:1px solid #e2e6e2;vertical-align:top\">\u6839\u636e\u6587\u5b57\u751f\u6210\u65b0\u56fe\u7247<\/td><td style=\"padding:9px;border-bottom:1px solid #e2e6e2;vertical-align:top\">\u56fe\u50cf\u751f\u6210<\/td><td style=\"padding:9px;border-bottom:1px solid #e2e6e2;vertical-align:top\">\u63d0\u793a\u8bcd\u63a7\u5236\u573a\u666f<\/td><\/tr><tr><td style=\"padding:9px;border-bottom:1px solid #e2e6e2;vertical-align:top\">\u6309\u7167\u8bf4\u660e\u4fee\u6539\u73b0\u6709\u56fe\u7247\u7684\u5c40\u90e8\u6216\u5168\u90e8\u5185\u5bb9<\/td><td style=\"padding:9px;border-bottom:1px solid #e2e6e2;vertical-align:top\">\u56fe\u7247\u7f16\u8f91<\/td><td style=\"padding:9px;border-bottom:1px solid #e2e6e2;vertical-align:top\">\u63d0\u793a\u8bcd\u3001\u6e90\u56fe\u50cf\uff0c\u6709\u65f6\u8fd8\u6709\u8499\u7248<\/td><\/tr><tr><td style=\"padding:9px;border-bottom:1px solid #e2e6e2;vertical-align:top\">\u9488\u5bf9\u540c\u4e00\u5f20\u56fe\u7247\uff0c\u8bf7\u63d0\u4f9b\u4e0d\u540c\u7684\u89e3\u8bfb<\/td><td style=\"padding:9px;border-bottom:1px solid #e2e6e2;vertical-align:top\">\u56fe\u50cf\u53d8\u4f53<\/td><td style=\"padding:9px;border-bottom:1px solid #e2e6e2;vertical-align:top\">\u6e90\u9a71\u52a8\u3001\u6709\u9650\u7684\u6307\u4ee4\u63a7\u5236<\/td><\/tr><\/tbody><\/table><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u56e0\u6b64\uff0c\u6700\u597d\u5c06\u8be5\u7aef\u70b9\u7406\u89e3\u4e3a\u4e00\u6761\u4e13\u7528\u8def\u5f84\uff0c\u800c\u975e\u9ed8\u8ba4\u7684 OpenAI \u56fe\u50cf API\u3002 \u5f53\u524d\u7684 OpenAI \u56fe\u50cf\u6a21\u578b\u53ef\u80fd\u901a\u8fc7\u5176\u4ed6\u7aef\u70b9\u6216 Responses API \u63d0\u4f9b\u66f4\u5f3a\u5927\u7684\u751f\u6210\u548c\u7f16\u8f91\u529f\u80fd\u3002\u6a21\u578b\u652f\u6301\u5e76\u975e\u4e92\u6362\u7684\uff1a\u5217\u4e3a\u751f\u6210\u7528\u9014\u7684\u6a21\u578b\u5e76\u4e0d\u81ea\u52a8\u9002\u7528\u4e8e\u53d8\u4f53\uff0c\u4e14\u65e7\u7248\u7684\u793a\u4f8b\u9875\u9762\u4e5f\u4e0d\u80fd\u4f5c\u4e3a\u5f53\u524d\u53ef\u7528\u6027\u7684\u8bc1\u660e\u3002.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5728\u7f16\u5199\u4ee3\u7801\u4e4b\u524d\uff0c\u8bf7\u9605\u8bfb OpenAI \u6587\u6863\u4e2d\u6700\u65b0\u7684\u201c\u6a21\u578b\u4e0e\u7aef\u70b9\u517c\u5bb9\u6027\u201d\u8868\u683c\u3002\u9664\u975e\u5b98\u65b9 API \u53c2\u8003\u6587\u6863\u4e2d\u660e\u786e\u8bf4\u660e\uff0c\u5426\u5219\u672c\u6587\u7279\u610f\u907f\u514d\u65ad\u8a00\u65b0\u53d1\u5e03\u7684\u6a21\u578b\u652f\u6301\u65e7\u7248\u8def\u7531\u3002.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4f7f\u7528 OpenAI \u7684 <a href=\"https:\/\/platform.openai.com\/docs\/guides\/images\">\u5b98\u65b9\u56fe\u50cf\u751f\u6210\u6307\u5357<\/a> \u6709\u5173\u5f53\u524d\u5de5\u4f5c\u6d41\u7684\u6307\u5bfc\uff0c\u8bf7\u53c2\u9605 <a href=\"https:\/\/platform.openai.com\/docs\/api-reference\/images\">Images API \u53c2\u8003\u6587\u6863<\/a> \u6709\u5173\u652f\u6301\u7684\u5b57\u6bb5\u548c\u7aef\u70b9\uff0c\u4ee5\u53ca <a href=\"https:\/\/openai.com\/api\/pricing\/\">API \u5b9a\u4ef7\u9875\u9762<\/a> \u7528\u4e8e\u5f53\u524d\u7684\u8ba1\u8d39\u3002\u5f53\u5b9e\u65bd\u60c5\u51b5\u53d1\u751f\u53d8\u5316\u65f6\uff0c\u8bf7\u91cd\u65b0\u68c0\u67e5\u8fd9\u4e09\u9879\u3002.<\/p>\n\n\n\n<h2 id=\"the-most-important-limitation-variations-are-not-prompted-edits\" class=\"wp-block-heading\">\u6700\u91cd\u8981\u7684\u9650\u5236\uff1a\u53d8\u4f53\u5e76\u975e\u6839\u636e\u63d0\u793a\u8fdb\u884c\u7684\u7f16\u8f91<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u6700\u5e38\u89c1\u7684\u5b9e\u73b0\u9519\u8bef\u662f\u671f\u671b\u6536\u5230\u8fd9\u6837\u7684\u8bf7\u6c42\uff1a<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">\u4fdd\u7559\u8fd9\u53cc\u978b\uff0c\u53ea\u628a\u5899\u58c1\u6539\u6210\u6d45\u7eff\u8272\uff0c\u4fdd\u7559\u6807\u5fd7\uff0c\u5e76\u6dfb\u52a0\u67d4\u548c\u7684\u7a97\u5149\u3002.<\/p>\n<\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\">\u8fd9\u662f\u4e00\u6761\u7f16\u8f91\u6307\u4ee4\u3002\u53d8\u4f53\u8bf7\u6c42\u901a\u5e38\u4e0d\u63a5\u53d7\u6b64\u7c7b\u63d0\u793a\u3002\u8be5\u670d\u52a1\u53ef\u80fd\u4f1a\u8fd4\u56de\u4e00\u5f20\u978b\u578b\u4e0d\u540c\u3001\u6807\u5fd7\u7ecf\u8fc7\u4fee\u6539\u3001\u62cd\u6444\u89d2\u5ea6\u53d1\u751f\u53d8\u5316\u6216\u989c\u8272\u6709\u6240\u8c03\u6574\u7684\u56fe\u7247\uff0c\u56e0\u4e3a\u8bed\u4e49\u76f8\u4f3c\u6027\u5e76\u4e0d\u7b49\u540c\u4e8e\u8eab\u4efd\u4fdd\u7559\u3002.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5f53\u76ee\u6807\u662f\u63a2\u7d22\u65f6\uff0c\u91c7\u7528\u53d8\u4f53\uff1b\u5f53\u76ee\u6807\u662f\u7ea6\u675f\u65f6\uff0c\u91c7\u7528\u7f16\u8f91\u3002.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u8be5\u89c4\u5219\u8fd8\u80fd\u9632\u6b62\u51fa\u73b0\u8bef\u5bfc\u6027\u7684\u4ea7\u54c1\u627f\u8bfa\u3002\u5ba3\u4f20\u201c\u7b26\u5408\u54c1\u724c\u98ce\u683c\u7684\u5e7f\u544a\u53d8\u4f53\u201d\u7684\u9875\u9762\uff0c\u4e0d\u5e94\u4ec5\u4f9d\u8d56\u4e8e\u6e90\u6570\u636e\u7684\u968f\u673a\u751f\u6210\u7ed3\u679c\uff0c\u800c\u5e94\u6d4b\u8bd5\u5fbd\u6807\u8fd8\u539f\u5ea6\u3001\u4ea7\u54c1\u51e0\u4f55\u5f62\u72b6\u3001\u6587\u5b57\u6e32\u67d3\u6548\u679c\u4ee5\u53ca\u8272\u5f69\u51c6\u786e\u6027\u3002\u5373\u4f7f\u6574\u4f53\u56fe\u50cf\u770b\u8d77\u6765\u5f88\u903c\u771f\uff0cAI\u751f\u6210\u7684\u6587\u672c\u548c\u7ec6\u5fae\u6807\u8bb0\u4ecd\u53ef\u80fd\u51fa\u73b0\u504f\u5dee\u3002.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5982\u679c\u60a8\u9700\u8981\u4e00\u5957\u66f4\u5168\u9762\u7684\u56fe\u50cf\u5de5\u5177\uff0c\u53c8\u4e0d\u60f3\u5355\u72ec\u7ef4\u62a4\u591a\u4e2a\u670d\u52a1\u5546\u8d26\u6237\uff0cGlobalGPT \u63d0\u4f9b\u4e86\u4e00\u4e2a\u5b9e\u7528\u7684\u5de5\u4f5c\u533a\uff0c\u53ef\u7528\u4e8e\u5bf9\u6bd4\u5404\u79cd\u56fe\u50cf\u751f\u6210\u548c\u7f16\u8f91\u6a21\u578b\u3002\u5176 <a href=\"https:\/\/www.glbgpt.com\/hub\/best-ai-image-generators\/\">AI\u56fe\u50cf\u751f\u6210\u5668\u5bf9\u6bd4<\/a> \u6709\u52a9\u4e8e\u6839\u636e\u4efb\u52a1\u9009\u62e9\u6a21\u578b\uff0c\u800c <a href=\"https:\/\/www.glbgpt.com\/hub\/globalgpt-image-edit\/\">GlobalGPT \u56fe\u7247\u7f16\u8f91\u6307\u5357<\/a> \u4fa7\u91cd\u4e8e\u6307\u4ee4\u9a71\u52a8\u7684\u53d8\u66f4\uff0c\u800c\u975e\u4ec5\u57fa\u4e8e\u6e90\u4ee3\u7801\u7684\u53d8\u66f4\u3002.<\/p>\n\n\n\n<h2 id=\"a-decision-framework-before-you-call-the-api\" class=\"wp-block-heading\">\u8c03\u7528 API \u4e4b\u524d\u7684\u51b3\u7b56\u6846\u67b6<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u5728\u9009\u62e9\u7ec8\u7aef\u8bbe\u5907\u4e4b\u524d\uff0c\u8bf7\u5148\u95ee\u81ea\u5df1\u4e94\u4e2a\u95ee\u9898\u3002.<\/p>\n\n\n\n<section data-visual=\"process-flow\" aria-label=\"\u63d0\u4ea4\u56fe\u7247\u8bf7\u6c42\u524d\u7684\u4e94\u4e2a\u51b3\u5b9a\" style=\"box-sizing:border-box;margin:24px 0;padding:22px;border:1px solid #b8cec5;border-radius:8px;background:#edf5f1\"><h3 style=\"margin:0 0 16px;color:#183b31;font:700 21px\/1.3 Georgia,serif\">\u63d0\u4ea4\u56fe\u7247\u8bf7\u6c42\u524d\u7684\u4e94\u4e2a\u51b3\u5b9a<\/h3><div style=\"display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px\"><article style=\"box-sizing:border-box;min-width:0;padding:16px;border-top:4px solid #2f705a;border-radius:6px;background:#fff;box-shadow:0 3px 10px rgba(35,67,55,.07)\"><span aria-hidden=\"true\" style=\"display:inline-grid;place-items:center;width:28px;height:28px;margin-bottom:9px;border-radius:50%;background:#183b31;color:#fff;font-weight:800\">1<\/span><h4 style=\"margin:0 0 8px;color:#203c33;font-size:16px;line-height:1.35\">1. \u7279\u5b9a\u5bf9\u8c61\u5fc5\u987b\u4fdd\u6301\u4e0d\u53d8\u5417\uff1f<\/h4><div style=\"color:#40564d;font-size:14px;line-height:1.58;overflow-wrap:anywhere\"><p style=\"margin:0 0 10px\">\u5982\u679c\u7b54\u6848\u662f\u80af\u5b9a\u7684\uff0c\u90a3\u4e48\u7eaf\u7cb9\u7684\u53d8\u4f53\u5904\u7406\u5b58\u5728\u98ce\u9669\u3002\u4ea7\u54c1\u5f62\u72b6\u3001\u5305\u88c5\u6587\u5b57\u3001\u4eba\u7269\u9762\u90e8\u7279\u5f81\u548c\u5fbd\u6807\uff0c\u6070\u6070\u662f\u751f\u6210\u5f0f\u7cfb\u7edf\u5bb9\u6613\u91cd\u65b0\u8be0\u91ca\u7684\u7ec6\u8282\u3002\u5efa\u8bae\u91c7\u7528\u7f16\u8f91\u5904\u7406\u3001\u8499\u7248\u5408\u6210\u6216\u4f20\u7edf\u7684\u56fe\u5f62\u5904\u7406\u6d41\u7a0b\u3002.<\/p><\/div><\/article><article style=\"box-sizing:border-box;min-width:0;padding:16px;border-top:4px solid #a45b6b;border-radius:6px;background:#fff;box-shadow:0 3px 10px rgba(35,67,55,.07)\"><span aria-hidden=\"true\" style=\"display:inline-grid;place-items:center;width:28px;height:28px;margin-bottom:9px;border-radius:50%;background:#183b31;color:#fff;font-weight:800\">2<\/span><h4 style=\"margin:0 0 8px;color:#203c33;font-size:16px;line-height:1.35\">2. \u662f\u5426\u9700\u8981\u7528\u8bed\u8a00\u63cf\u8ff0\u8fd9\u4e00\u53d8\u5316\uff1f<\/h4><div style=\"color:#40564d;font-size:14px;line-height:1.58;overflow-wrap:anywhere\"><p style=\"margin:0 0 10px\">\u5982\u679c\u60a8\u5fc5\u987b\u6307\u5b9a\u80cc\u666f\u3001\u5e03\u5149\u65b9\u6848\u3001\u955c\u5934\u3001\u5b63\u8282\u3001\u914d\u8272\u65b9\u6848\u6216\u5bbd\u9ad8\u6bd4\u5904\u7406\u65b9\u5f0f\uff0c\u8bf7\u4f7f\u7528\u652f\u6301\u63d0\u793a\u8bcd\u7684\u751f\u6210\u6216\u7f16\u8f91\u6d41\u7a0b\u3002\u53d8\u4f53\u7aef\u70b9\u4ec5\u51ed\u6e90\u6570\u636e\u65e0\u6cd5\u53ef\u9760\u5730\u63a8\u65ad\u51fa\u60a8\u7684\u610f\u56fe\u3002.<\/p><\/div><\/article><article style=\"box-sizing:border-box;min-width:0;padding:16px;border-top:4px solid #2f705a;border-radius:6px;background:#fff;box-shadow:0 3px 10px rgba(35,67,55,.07)\"><span aria-hidden=\"true\" style=\"display:inline-grid;place-items:center;width:28px;height:28px;margin-bottom:9px;border-radius:50%;background:#183b31;color:#fff;font-weight:800\">3<\/span><h4 style=\"margin:0 0 8px;color:#203c33;font-size:16px;line-height:1.35\">3. \u53d1\u73b0\u6bd4\u53ef\u91cd\u590d\u6027\u66f4\u6709\u4ef7\u503c\u5417\uff1f<\/h4><div style=\"color:#40564d;font-size:14px;line-height:1.58;overflow-wrap:anywhere\"><p style=\"margin:0 0 10px\">\u5728\u6784\u601d\u9636\u6bb5\uff0c\u591a\u79cd\u53d8\u4f53\u65b9\u6848\u6548\u679c\u5f88\u597d\uff1a\u60c5\u7eea\u63a2\u7d22\u3001\u7c97\u7565\u7684\u827a\u672f\u6307\u5bfc\u3001\u98ce\u683c\u5206\u652f\u4ee5\u53ca\u7f29\u7565\u56fe\u5019\u9009\u65b9\u6848\u3002\u4f46\u5f53\u6cd5\u5f8b\u5ba1\u6838\u4eba\u5458\u53ea\u5e0c\u671b\u4fee\u6539\u4e00\u4e2a\u5df2\u83b7\u6279\u51c6\u7684\u5143\u7d20\u65f6\uff0c\u8fd9\u4e9b\u53d8\u4f53\u65b9\u6848\u7684\u6548\u679c\u5c31\u8f83\u5f31\u4e86\u3002.<\/p><\/div><\/article><article style=\"box-sizing:border-box;min-width:0;padding:16px;border-top:4px solid #a45b6b;border-radius:6px;background:#fff;box-shadow:0 3px 10px rgba(35,67,55,.07)\"><span aria-hidden=\"true\" style=\"display:inline-grid;place-items:center;width:28px;height:28px;margin-bottom:9px;border-radius:50%;background:#183b31;color:#fff;font-weight:800\">4<\/span><h4 style=\"margin:0 0 8px;color:#203c33;font-size:16px;line-height:1.35\">4. \u80fd\u5426\u62d2\u7edd\u5927\u591a\u6570\u8f93\u51fa\u7ed3\u679c\uff1f<\/h4><div style=\"color:#40564d;font-size:14px;line-height:1.58;overflow-wrap:anywhere\"><p style=\"margin:0 0 10px\">\u79d1\u5b66\u7684\u5de5\u4f5c\u6d41\u7a0b\u5e94\u5305\u62ec\u7b5b\u9009\u73af\u8282\u3002\u751f\u6210\u4e00\u5c0f\u6279\u7ed3\u679c\uff0c\u5bf9\u7167\u68c0\u67e5\u6e05\u5355\u5bf9\u6bcf\u9879\u7ed3\u679c\u8fdb\u884c\u8bc4\u5206\uff0c\u5e76\u4ec5\u4fdd\u7559\u901a\u8fc7\u8bc4\u5206\u7684\u8f93\u51fa\u7ed3\u679c\u3002\u4e0d\u8981\u8ba9\u4e0b\u6e38\u81ea\u52a8\u5316\u6d41\u7a0b\u9ed8\u8ba4\u7b2c\u4e00\u5f20\u56fe\u50cf\u5c31\u662f\u5408\u683c\u7684\u3002.<\/p><\/div><\/article><article style=\"box-sizing:border-box;min-width:0;padding:16px;border-top:4px solid #2f705a;border-radius:6px;background:#fff;box-shadow:0 3px 10px rgba(35,67,55,.07)\"><span aria-hidden=\"true\" style=\"display:inline-grid;place-items:center;width:28px;height:28px;margin-bottom:9px;border-radius:50%;background:#183b31;color:#fff;font-weight:800\">5<\/span><h4 style=\"margin:0 0 8px;color:#203c33;font-size:16px;line-height:1.35\">5. \u6e90\u7528\u4f8b\u548c\u8f93\u51fa\u7528\u4f8b\u662f\u5426\u7531\u60a8\u8d1f\u8d23\uff1f<\/h4><div style=\"color:#40564d;font-size:14px;line-height:1.58;overflow-wrap:anywhere\"><p style=\"margin:0 0 10px\">API \u8bbf\u95ee\u6743\u9650\u5e76\u4e0d\u6388\u4e88\u4f7f\u7528\u7b2c\u4e09\u65b9\u5fbd\u6807\u3001\u53d7\u7248\u6743\u4fdd\u62a4\u7684\u89d2\u8272\u3001\u79c1\u4eba\u7167\u7247\u6216\u53d7\u4fdd\u62a4\u8096\u50cf\u7684\u6743\u5229\u3002\u8bf7\u786e\u8ba4\u60a8\u7684\u8f93\u5165\u6743\u9650\uff0c\u5e76\u67e5\u9605 OpenAI \u7684\u73b0\u884c\u6761\u6b3e\u548c\u4f7f\u7528\u653f\u7b56\u3002\u5982\u9700\u66f4\u5e7f\u6cdb\u7684\u5b9e\u8df5\u8ba8\u8bba\uff0c\u8bf7\u53c2\u9605 <a href=\"https:\/\/www.glbgpt.com\/hub\/can-i-use-ai-images-for-commercial-use\/\">AI\u751f\u6210\u7684\u56fe\u50cf\u80fd\u5426\u7528\u4e8e\u5546\u4e1a\u7528\u9014<\/a> \u4ee5\u53ca\u5173\u4e8e\u2026\u2026\u7684\u5355\u72ec\u6307\u5357 <a href=\"https:\/\/www.glbgpt.com\/hub\/can-i-use-chatgpt-images-for-commercial-use-a-complete-guide-to-safe-use-in-2026\/\">ChatGPT\u56fe\u7247\u7684\u5546\u4e1a\u7528\u9014<\/a>.<\/p><\/div><\/article><\/div><\/section>\n\n\n\n<figure data-asset-id=\"I02\" style=\"box-sizing:border-box;margin:28px 0;border:1px solid #d6dfda;border-radius:8px;overflow:hidden;background:#fff\"><img loading=\"lazy\" src=\"https:\/\/static.futureshareai.com\/glb_features\/mcp\/4\/openai-image-variations-api-decision-flow_5f95dd1f43594ca9a917cf26d25a13a9.webp\" alt=\"\u6bd4\u8f83\u53d8\u4f53\u3001\u7f16\u8f91\u3001\u8499\u7248\u548c\u4f20\u7edf\u56fe\u5f62\u5904\u7406\u8def\u5f84\u7684\u5206\u652f\u56fe\u50cf\u5de5\u4f5c\u6d41\" width=\"1440\" height=\"1080\" decoding=\"async\" style=\"display:block;width:100%;height:auto\"><figcaption style=\"padding:12px 15px;color:#4a5b54;font-size:14px;line-height:1.55\">\u7528\u4e8e\u9009\u62e9\u56fe\u50cf\u7aef\u70b9\u7684\u7f16\u8f91\u51b3\u7b56\u56fe\uff1b\u5b8c\u6574\u7684\u51b3\u7b56\u6587\u672c\u5305\u542b\u5728\u53ef\u8bbf\u95ee\u7684 HTML \u6d41\u7a0b\u4e2d\u3002.<\/figcaption><\/figure>\n\n\n\n<h2 id=\"input-preparation-small-details-decide-whether-the-request-works\" class=\"wp-block-heading\">\u8f93\u5165\u51c6\u5907\uff1a\u7ec6\u5fae\u4e4b\u5904\u51b3\u5b9a\u8bf7\u6c42\u80fd\u5426\u6210\u529f<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u8f83\u65e9\u7248\u672c\u7684\u53d8\u4f53\u793a\u4f8b\u901a\u5e38\u8981\u6c42\u8f93\u5165\u6587\u4ef6\u4e3a PNG \u683c\u5f0f\u3001\u753b\u5e03\u4e3a\u6b63\u65b9\u5f62\uff0c\u4e14\u6587\u4ef6\u5927\u5c0f\u5728\u6587\u6863\u89c4\u5b9a\u7684\u9650\u5236\u8303\u56f4\u5185\u3002\u8fd9\u4e9b\u8981\u6c42\u53ef\u80fd\u4f1a\u53d1\u751f\u53d8\u5316\uff0c\u56e0\u6b64\u8bf7\u4ee5\u5b9e\u65f6 API \u53c2\u8003\u6587\u6863\u4e3a\u51c6\u3002\u8bf7\u52ff\u5047\u8bbe\u7f16\u8f91\u7aef\u70b9\u63a5\u53d7\u7684 JPEG \u6587\u4ef6\u4e5f\u80fd\u88ab\u53d8\u4f53\u7aef\u70b9\u63a5\u53d7\u3002.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6709\u610f\u8bc6\u5730\u51c6\u5907\u56fe\u7247\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5c06\u56fe\u7247\u88c1\u526a\u6210\u6b63\u65b9\u5f62\uff0c\u4f46\u4e0d\u8981\u88c1\u6389\u4e3b\u4f53\u3002.<\/li>\n\n\n\n<li>\u4ec5\u5728\u6709\u5b9e\u9645\u610f\u4e49\u65f6\uff0c\u624d\u5728\u8f6c\u6362\u4e3a PNG \u683c\u5f0f\u65f6\u4fdd\u7559 alpha \u901a\u9053\u3002.<\/li>\n\n\n\n<li>\u8bf7\u4f7f\u7528\u517c\u5bb9 RGB \u7684\u989c\u8272\u6a21\u5f0f\u3002.<\/li>\n\n\n\n<li>\u5c06\u6587\u4ef6\u538b\u7f29\u81f3\u5f53\u524d\u89c4\u5b9a\u9650\u503c\u4ee5\u4e0b\u3002.<\/li>\n\n\n\n<li>\u5220\u9664\u4e0d\u5e94\u79bb\u5f00\u60a8\u7cfb\u7edf\u7684\u5143\u6570\u636e\u3002.<\/li>\n\n\n\n<li>\u8bf7\u5c06\u539f\u59cb\u6821\u9a8c\u548c\u548c\u5c3a\u5bf8\u5b58\u50a8\u5728\u4f5c\u4e1a\u8bb0\u5f55\u4e2d\u3002.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u5bf9\u5fae\u5c0f\u7684\u6e90\u56fe\u50cf\u8fdb\u884c\u653e\u5927\u5e76\u4e0d\u80fd\u6062\u590d\u4e22\u5931\u7684\u7ec6\u8282\uff0c\u5b83\u53ea\u662f\u751f\u6210\u66f4\u591a\u7684\u50cf\u7d20\u3002\u5982\u679c\u6e90\u56fe\u50cf\u6a21\u7cca\uff0c\u8bf7\u5148\u8003\u8651\u8fdb\u884c\u4fee\u590d\uff1b\u6709\u5173 <a href=\"https:\/\/www.glbgpt.com\/hub\/can-chatgpt-enhance-images\/\">\u4f7f\u7528 ChatGPT \u589e\u5f3a\u56fe\u50cf<\/a> \u548c <a href=\"https:\/\/www.glbgpt.com\/hub\/can-chatgpt-unblur-your-photos-a-complete-guide-in-2026\/\">\u6d88\u9664\u7167\u7247\u6a21\u7cca<\/a> \u89e3\u91ca\u4e3a\u4ec0\u4e48\u4e0d\u5e94\u5c06\u91cd\u5efa\u4e0e\u771f\u5b9e\u8bc1\u636e\u7684\u6062\u590d\u6df7\u4e3a\u4e00\u8c08\u3002.<\/p>\n\n\n\n<h2 id=\"node-js-example-a-defensive-variations-request\" class=\"wp-block-heading\">Node.js \u793a\u4f8b\uff1a\u9632\u5fa1\u6027\u53d8\u4f53\u8bf7\u6c42<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e0d\u540c\u7248\u672c\u7684 SDK \u63a5\u53e3\u53ef\u80fd\u4f1a\u6709\u6240\u53d8\u5316\u3002\u8bf7\u5728\u6700\u65b0\u7684 OpenAI JavaScript SDK \u6587\u6863\u4e2d\u786e\u8ba4\u5177\u4f53\u65b9\u6cd5\u548c\u652f\u6301\u7684\u6a21\u578b\u3002\u4e0b\u9762\u7684\u793a\u4f8b\u91c7\u7528\u7684\u662f\u4fdd\u5b88\u7684\u5904\u7406\u65b9\u5f0f\uff1a\u6a21\u578b\u6765\u81ea\u914d\u7f6e\uff0c\u54cd\u5e94\u4f1a\u7ecf\u8fc7\u9a8c\u8bc1\uff0c\u4e14\u4e0d\u4f1a\u53d1\u9001\u4efb\u4f55\u4e0d\u53d7\u652f\u6301\u7684\u63d0\u793a\u3002.<\/p>\n\n\n\n<section data-copy-card=\"openai-image-variations-api-copy-1\" style=\"box-sizing:border-box;position:relative;margin:24px 0;padding:20px;border-radius:8px;background:#14251f;color:#eaf4ef\"><strong style=\"display:block;margin:0 96px 10px 0;color:#7fd0b0;font-size:14px\">js<\/strong><textarea id=\"openai-image-variations-api-copy-1-text\" readonly style=\"box-sizing:border-box;width:100%;min-height:170px;padding:14px;border:1px solid #587467;border-radius:6px;background:#1b3028;color:#f4f8f6;font:14px\/1.65 ui-monospace,Consolas,monospace;resize:vertical\">import fs from &quot;node:fs&quot;;\nimport path from &quot;node:path&quot;;\nimport OpenAI from &quot;openai&quot;;\n\nconst client = new OpenAI({ apiKey: process.env.OPENAI_API_KEY });\n\nconst inputPath = path.resolve(&quot;.\/input\/source-square.png&quot;);\nconst model = process.env.OPENAI_VARIATION_MODEL;\n\nif (!model) {\n  throw new Error(&quot;Set OPENAI_VARIATION_MODEL from the current OpenAI docs.&quot;);\n}\n\nif (!fs.existsSync(inputPath)) {\n  throw new Error(`Input file not found: ${inputPath}`);\n}\n\nconst result = await client.images.createVariation({\n  model,\n  image: fs.createReadStream(inputPath),\n  n: 2,\n  size: &quot;1024&#215;1024&quot;,\n  response_format: &quot;b64_json&quot;\n});\n\nif (!Array.isArray(result.data) || result.data.length === 0) {\n  throw new Error(&quot;The API returned no image data.&quot;);\n}\n\nfs.mkdirSync(&quot;.\/output&quot;, { recursive: true });\n\nresult.data.forEach((item, index) =&gt; {\n  if (!item.b64_json) {\n    throw new Error(`Missing base64 data for result ${index + 1}`);\n  }\n\n  const bytes = Buffer.from(item.b64_json, &quot;base64&quot;);\n  fs.writeFileSync(`.\/output\/variation-${index + 1}.png`, bytes);\n});\n\nconsole.log(`Saved ${result.data.length} variation(s).`);<\/textarea><button type=\"button\" onclick=\"(async()=>{const t=document.getElementById(&#8216;openai-image-variations-api-copy-1-text&#8217;),s=document.getElementById(&#8216;openai-image-variations-api-copy-1-status&#8217;);try{await Promise.race([navigator.clipboard.writeText(t.value),new Promise((_,r)=>setTimeout(()=>r(new Error(&#8216;timeout&#8217;)),800))]);s.textContent=&#8217;Copied.&#8217;}catch(e){t.focus();t.select();s.textContent=&#8217;Selected. Press Ctrl\/Cmd+C.&#8217;}})()&#8221; style=&#8221;position:absolute;right:20px;top:16px;border:1px solid #709486;border-radius:6px;padding:8px 12px;background:#2e604e;color:#fff;cursor:pointer;font-weight:700&#8243;>Copy<\/button><span id=\"openai-image-variations-api-copy-1-status\" aria-live=\"polite\" style=\"display:block;min-height:20px;margin-top:8px;color:#bfd3ca;font-size:13px\"><\/span><\/section>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e3a\u4ec0\u4e48\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\u4f7f\u7528 Base64\uff1f\u8fd9\u6837\u53ef\u4ee5\u907f\u514d\u4f9d\u8d56\u4e34\u65f6\u4e0b\u8f7d\u94fe\u63a5\u3002\u57fa\u4e8e URL \u7684\u54cd\u5e94\u867d\u7136\u65b9\u4fbf\uff0c\u4f46\u4f60\u7684 Worker \u5fc5\u987b\u5728\u8fc7\u671f\u524d\u4e0b\u8f7d\u8fd9\u4e9b\u54cd\u5e94\uff0c\u5e76\u9a8c\u8bc1\u8fd4\u56de\u7684\u5185\u5bb9\u7c7b\u578b\u3002Base64 \u4f1a\u589e\u52a0\u54cd\u5e94\u5927\u5c0f\uff0c\u56e0\u6b64\u5728\u5927\u89c4\u6a21\u573a\u666f\u4e0b\uff0c\u5b83\u5e76\u4e0d\u4e00\u5b9a\u81ea\u52a8\u662f\u6700\u4f73\u9009\u62e9\u3002.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5207\u52ff\u5c06 API \u5bc6\u94a5\u653e\u5165\u6d4f\u89c8\u5668 JavaScript \u4ee3\u7801\u6216\u516c\u5171\u4ee3\u7801\u5e93\u4e2d\u3002\u5e94\u901a\u8fc7\u53ef\u4fe1\u670d\u52a1\u5668\u3001\u5bc6\u94a5\u7ba1\u7406\u51fd\u6570\u6216 worker \u8c03\u7528 OpenAI\u3002\u9a8c\u8bc1\u6587\u4ef6\u7c7b\u578b\u65f6\uff0c\u4e0d\u4ec5\u8981\u68c0\u67e5\u6587\u4ef6\u540d\uff0c\u8fd8\u8981\u68c0\u67e5\u5b57\u8282\u5185\u5bb9\uff0c\u5e76\u5728\u63a5\u53d7\u516c\u5171\u4e0a\u4f20\u4e4b\u524d\u8bbe\u7f6e\u8bf7\u6c42\u9650\u5236\u3002.<\/p>\n\n\n\n<h2 id=\"python-example\" class=\"wp-block-heading\">Python \u793a\u4f8b<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u540c\u6837\uff0c\u8bf7\u4ee5\u5f53\u524d\u7684 SDK \u6587\u6863\u4f5c\u4e3a\u65b9\u6cd5\u540d\u548c\u6a21\u578b\u540d\u79f0\u7684\u6743\u5a01\u6765\u6e90\u3002.<\/p>\n\n\n\n<section data-copy-card=\"openai-image-variations-api-copy-2\" style=\"box-sizing:border-box;position:relative;margin:24px 0;padding:20px;border-radius:8px;background:#14251f;color:#eaf4ef\"><strong style=\"display:block;margin:0 96px 10px 0;color:#7fd0b0;font-size:14px\">\u87d2\u86c7<\/strong><textarea id=\"openai-image-variations-api-copy-2-text\" readonly style=\"box-sizing:border-box;width:100%;min-height:170px;padding:14px;border:1px solid #587467;border-radius:6px;background:#1b3028;color:#f4f8f6;font:14px\/1.65 ui-monospace,Consolas,monospace;resize:vertical\">import base64\nimport os\nfrom pathlib import Path\n\nfrom openai import OpenAI\n\nclient = OpenAI(api_key=os.environ[&quot;OPENAI_API_KEY&quot;])\nmodel = os.environ.get(&quot;OPENAI_VARIATION_MODEL&quot;)\n\nif not model:\n    raise RuntimeError(&quot;Set OPENAI_VARIATION_MODEL from the current docs.&quot;)\n\nsource = Path(&quot;input\/source-square.png&quot;)\noutput_dir = Path(&quot;output&quot;)\noutput_dir.mkdir(parents=True, exist_ok=True)\n\nwith source.open(&quot;rb&quot;) as image_file:\n    response = client.images.create_variation(\n        model=model,\n        image=image_file,\n        n=2,\n        size=&quot;1024&#215;1024&quot;,\n        response_format=&quot;b64_json&quot;,\n    )\n\nfor index, image in enumerate(response.data, start=1):\n    if not image.b64_json:\n        raise RuntimeError(f&quot;Missing image data for result {index}&quot;)\n    (output_dir \/ f&quot;variation-{index}.png&quot;).write_bytes(\n        base64.b64decode(image.b64_json)\n    )<\/textarea><button type=\"button\" onclick=\"(async()=>{const t=document.getElementById(&#8216;openai-image-variations-api-copy-2-text&#8217;),s=document.getElementById(&#8216;openai-image-variations-api-copy-2-status&#8217;);try{await Promise.race([navigator.clipboard.writeText(t.value),new Promise((_,r)=>setTimeout(()=>r(new Error(&#8216;timeout&#8217;)),800))]);s.textContent=&#8217;Copied.&#8217;}catch(e){t.focus();t.select();s.textContent=&#8217;Selected. Press Ctrl\/Cmd+C.&#8217;}})()&#8221; style=&#8221;position:absolute;right:20px;top:16px;border:1px solid #709486;border-radius:6px;padding:8px 12px;background:#2e604e;color:#fff;cursor:pointer;font-weight:700&#8243;>Copy<\/button><span id=\"openai-image-variations-api-copy-2-status\" aria-live=\"polite\" style=\"display:block;min-height:20px;margin-top:8px;color:#bfd3ca;font-size:13px\"><\/span><\/section>\n\n\n\n<p class=\"wp-block-paragraph\">\u5728\u751f\u4ea7\u73af\u5883\u4e2d\uff0c\u4ec5\u5bf9\u53ef\u91cd\u8bd5\u7684\u6545\u969c\u5c06\u8bf7\u6c42\u5305\u88f9\u5728\u91cd\u8bd5\u903b\u8f91\u4e2d\u3002\u8f93\u5165\u683c\u5f0f\u9519\u8bef\u6216\u6a21\u578b\u4e0d\u53d7\u652f\u6301\u7b49\u95ee\u9898\uff0c\u5373\u4f7f\u91cd\u8bd5\u4e94\u6b21\u4e5f\u4e0d\u4f1a\u5f97\u5230\u6539\u5584\u3002\u8bf7\u8bb0\u5f55\u8bf7\u6c42 ID\u3001SDK \u7248\u672c\u3001\u6240\u9009\u6a21\u578b\u3001\u6587\u4ef6\u6821\u9a8c\u548c\u3001\u72b6\u6001\u3001\u5ef6\u8fdf\u548c\u9519\u8bef\u7c7b\u522b\uff0c\u540c\u65f6\u5207\u52ff\u8bb0\u5f55\u673a\u5bc6\u4fe1\u606f\u6216\u79c1\u6709\u56fe\u50cf\u5b57\u8282\u3002.<\/p>\n\n\n\n<h2 id=\"when-the-image-edit-api-is-the-better-answer\" class=\"wp-block-heading\">\u4f55\u65f6\u5e94\u9009\u62e9\u56fe\u50cf\u7f16\u8f91 API \u4f5c\u4e3a\u66f4\u4f73\u89e3\u51b3\u65b9\u6848<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u5047\u8bbe\u4e00\u4e2a\u8425\u9500\u56e2\u961f\u6709\u4e00\u5f20\u5df2\u83b7\u6279\u51c6\u7684\u4ea7\u54c1\u7167\u7247\u3002\u8be5\u7167\u7247\u9700\u8981\u7528\u4e8e\u56db\u79cd\u573a\u666f\uff1a\u84dd\u8272\u6444\u5f71\u68da\u80cc\u666f\u3001\u8282\u65e5\u9910\u684c\u3001\u7b80\u6d01\u7684\u7535\u5546\u5e73\u53f0\u7f29\u7565\u56fe\u4ee5\u53ca\u7ad6\u7248\u6545\u4e8b\u3002\u4ec5\u6e90\u56fe\u7684\u53d8\u4f53\u53ef\u80fd\u4f1a\u91cd\u65b0\u8bbe\u8ba1\u4ea7\u54c1\u3002\u7f16\u8f91\u63d0\u793a\u53ef\u4ee5\u8868\u8fbe\u8fd9\u4e9b\u4e0d\u53d8\u91cf\u3002.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5728\u652f\u6301\u7f16\u8f91\u529f\u80fd\u7684\u56fe\u50cf\u6a21\u578b\u4e2d\u4f7f\u7528\u5982\u4e0b\u63d0\u793a\u8bcd\uff1a<\/p>\n\n\n\n<section data-copy-card=\"openai-image-variations-api-copy-3\" style=\"box-sizing:border-box;position:relative;margin:24px 0;padding:20px;border-radius:8px;background:#14251f;color:#eaf4ef\"><strong style=\"display:block;margin:0 96px 10px 0;color:#7fd0b0;font-size:14px\">\u6587\u672c<\/strong><textarea id=\"openai-image-variations-api-copy-3-text\" readonly style=\"box-sizing:border-box;width:100%;min-height:170px;padding:14px;border:1px solid #587467;border-radius:6px;background:#1b3028;color:#f4f8f6;font:14px\/1.65 ui-monospace,Consolas,monospace;resize:vertical\">Edit the supplied product photo for an ecommerce campaign.\n\nPreserve exactly:\n&#8211; the product&#8217;s silhouette, proportions, label layout, and visible logo\n&#8211; the camera angle and product position\n&#8211; the original material and surface texture\n\nChange only:\n&#8211; replace the background with a soft pale-blue studio sweep\n&#8211; add a subtle contact shadow directly below the product\n&#8211; use clean diffused daylight from camera left\n\nDo not add text, badges, extra objects, reflections, hands, or packaging.\nReturn one polished square image with comfortable edge clearance.<\/textarea><button type=\"button\" onclick=\"(async()=>{const t=document.getElementById(&#8216;openai-image-variations-api-copy-3-text&#8217;),s=document.getElementById(&#8216;openai-image-variations-api-copy-3-status&#8217;);try{await Promise.race([navigator.clipboard.writeText(t.value),new Promise((_,r)=>setTimeout(()=>r(new Error(&#8216;timeout&#8217;)),800))]);s.textContent=&#8217;Copied.&#8217;}catch(e){t.focus();t.select();s.textContent=&#8217;Selected. Press Ctrl\/Cmd+C.&#8217;}})()&#8221; style=&#8221;position:absolute;right:20px;top:16px;border:1px solid #709486;border-radius:6px;padding:8px 12px;background:#2e604e;color:#fff;cursor:pointer;font-weight:700&#8243;>Copy<\/button><span id=\"openai-image-variations-api-copy-3-status\" aria-live=\"polite\" style=\"display:block;min-height:20px;margin-top:8px;color:#bfd3ca;font-size:13px\"><\/span><\/section>\n\n\n\n<p class=\"wp-block-paragraph\">\u201c\u5b8c\u5168\u201d\u4e00\u8bcd\u5e76\u975e\u4fdd\u8bc1\uff0c\u800c\u662f\u4e00\u79cd\u5fc5\u987b\u52a0\u4ee5\u9a8c\u8bc1\u7684\u9650\u5236\u6761\u4ef6\u3002\u8bf7\u5c06\u8f93\u51fa\u7ed3\u679c\u4e0e\u539f\u59cb\u5185\u5bb9\u5728\u5168\u5206\u8fa8\u7387\u4e0b\u8fdb\u884c\u5bf9\u6bd4\u3002\u6709\u5173\u9ad8\u7ea7\u6587\u672c\u63d0\u793a\u7f16\u8f91\u793a\u4f8b\uff0c\u8bf7\u53c2\u9605 <a href=\"https:\/\/www.glbgpt.com\/hub\/how-to-edit-images-with-text-prompts-in-nano-banana.html\">\u5982\u4f55\u4f7f\u7528\u6587\u672c\u63d0\u793a\u7f16\u8f91\u56fe\u7247<\/a>, <a href=\"https:\/\/www.glbgpt.com\/hub\/can-chatgpt-edit-images\/\">ChatGPT \u80fd\u5426\u7f16\u8f91\u56fe\u7247<\/a>, \u548c <a href=\"https:\/\/www.glbgpt.com\/hub\/can-chatgpt-modify-images\/\">ChatGPT \u80fd\u5426\u5bf9\u56fe\u50cf\u8fdb\u884c\u7f16\u8f91<\/a>.<\/p>\n\n\n\n<h2 id=\"a-low-cost-test-that-produces-useful-evidence\" class=\"wp-block-heading\">\u4e00\u9879\u80fd\u63d0\u4f9b\u6709\u4ef7\u503c\u8bc1\u636e\u7684\u4f4e\u6210\u672c\u68c0\u6d4b<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e0d\u8981\u7528\u4e00\u4e2a\u82b1\u54e8\u7684\u63d0\u793a\u8bcd\u8fdb\u884c\u6d4b\u8bd5\uff0c\u7136\u540e\u62a5\u544a\u8bf4\u8f93\u51fa\u201c\u770b\u8d77\u6765\u4e0d\u9519\u201d\u3002\u6784\u5efa\u4e00\u4e2a\u5c0f\u578b\u8bc4\u4f30\u3002.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u8bf7\u9009\u62e9\u4e00\u5f20\u5305\u542b\u4ee5\u4e0b\u5185\u5bb9\u7684\u6e90\u56fe\u50cf\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u4e00\u4e2a\u5177\u6709\u53ef\u8bc6\u522b\u51e0\u4f55\u5f62\u72b6\u7684\u4e2d\u5fc3\u7269\u4f53\uff1b;<\/li>\n\n\n\n<li>\u4e24\u79cd\u4e3b\u8272\u8c03\uff1b;<\/li>\n\n\n\n<li>\u4e00\u4e2a\u7b80\u5355\u7684\u80cc\u666f\uff1b;<\/li>\n\n\n\n<li>\u4e0d\u6d89\u53ca\u4efb\u4f55\u666e\u901a\u4eba\u3001\u53d7\u4fdd\u62a4\u4eba\u7269\u6216\u6666\u6da9\u96be\u61c2\u7684\u6cd5\u5f8b\u6587\u672c\uff1b;<\/li>\n\n\n\n<li>\u4e00\u4e2a\u867d\u5c0f\u5374\u5f15\u4eba\u6ce8\u76ee\u7684\u7ec6\u8282\uff0c\u6bd4\u5982\u4e00\u9897\u7ebd\u6263\u6216\u4e00\u6761\u6761\u7eb9\u3002.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u8fd0\u884c\u4e24\u4e2a\u4f5c\u4e1a\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>\u751f\u6210\u4e24\u4e2a\u4ec5\u6e90\u4ee3\u7801\u7684\u53d8\u4f53\u3002.<\/li><li>\u4f7f\u7528\u76f8\u540c\u7684\u6e90\u6587\u672c\u548c\u7cbe\u786e\u7684\u4fee\u6539\u8981\u6c42\uff0c\u751f\u6210\u4e24\u4e2a\u57fa\u4e8e\u63d0\u793a\u7684\u4fee\u6539\u7248\u672c\u3002.<\/li><\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">\u7136\u540e\uff0c\u9488\u5bf9\u4e3b\u9898\u4e00\u81f4\u6027\u3001\u51e0\u4f55\u5f62\u72b6\u3001\u8272\u5f69\u8fd8\u539f\u5ea6\u3001\u6784\u56fe\u3001\u4f2a\u5f71\u6c34\u5e73\u4ee5\u53ca\u6307\u4ee4\u9075\u5faa\u60c5\u51b5\uff0c\u5bf9\u6240\u6709\u56db\u4e2a\u8f93\u51fa\u7ed3\u679c\u5206\u522b\u63090\u52302\u5206\u8fdb\u884c\u8bc4\u5206\u3002\u53d8\u4f53\u8f93\u51fa\u5728\u6e90\u5173\u7cfb\u4e4b\u5916\u65e0\u9700\u9075\u5b88\u6307\u4ee4\u9075\u5faa\u8981\u6c42\uff0c\u800c\u7f16\u8f91\u8f93\u51fa\u5219\u5fc5\u987b\u9075\u5b88\u3002\u8fd9\u4f7f\u5f97\u6bd4\u8f83\u66f4\u52a0\u516c\u5e73\uff0c\u5e76\u80fd\u63ed\u793a\u7aef\u70b9\u4e4b\u95f4\u7684\u5dee\u5f02\u3002.<\/p>\n\n\n\n<div style=\"overflow-x:auto;margin:20px 0\"><table style=\"border-collapse:collapse;width:100%;min-width:640px\"><thead><tr><th style=\"padding:9px;border-bottom:1px solid #cfd9d3;text-align:left;background:#e6eee8\">\u6807\u51c6<\/th><th style=\"padding:9px;border-bottom:1px solid #cfd9d3;text-align:left;background:#e6eee8\">0<\/th><th style=\"padding:9px;border-bottom:1px solid #cfd9d3;text-align:left;background:#e6eee8\">1<\/th><th style=\"padding:9px;border-bottom:1px solid #cfd9d3;text-align:left;background:#e6eee8\">2<\/th><\/tr><\/thead><tbody><tr><td style=\"padding:9px;border-bottom:1px solid #e2e6e2;vertical-align:top\">\u4e3b\u4f53\u8eab\u4efd<\/td><td style=\"padding:9px;border-bottom:1px solid #e2e6e2;vertical-align:top\">\u53e6\u4e00\u4e2a\u8bdd\u9898<\/td><td style=\"padding:9px;border-bottom:1px solid #e2e6e2;vertical-align:top\">\u7c7b\u4f3c\u7684<\/td><td style=\"padding:9px;border-bottom:1px solid #e2e6e2;vertical-align:top\">\u660e\u786e\u4fdd\u7559<\/td><\/tr><tr><td style=\"padding:9px;border-bottom:1px solid #e2e6e2;vertical-align:top\">\u51e0\u4f55\u5b66<\/td><td style=\"padding:9px;border-bottom:1px solid #e2e6e2;vertical-align:top\">\u4e3b\u8981\u6f02\u79fb<\/td><td style=\"padding:9px;border-bottom:1px solid #e2e6e2;vertical-align:top\">\u8f7b\u5fae\u504f\u79fb<\/td><td style=\"padding:9px;border-bottom:1px solid #e2e6e2;vertical-align:top\">\u7a33\u5b9a\u7248<\/td><\/tr><tr><td style=\"padding:9px;border-bottom:1px solid #e2e6e2;vertical-align:top\">\u989c\u8272<\/td><td style=\"padding:9px;border-bottom:1px solid #e2e6e2;vertical-align:top\">\u9519\u8bef<\/td><td style=\"padding:9px;border-bottom:1px solid #e2e6e2;vertical-align:top\">\u90e8\u5206\u4fdd\u7559<\/td><td style=\"padding:9px;border-bottom:1px solid #e2e6e2;vertical-align:top\">\u51c6\u786e<\/td><\/tr><tr><td style=\"padding:9px;border-bottom:1px solid #e2e6e2;vertical-align:top\">\u5de5\u827a\u54c1<\/td><td style=\"padding:9px;border-bottom:1px solid #e2e6e2;vertical-align:top\">\u5206\u6563\u6ce8\u610f\u529b<\/td><td style=\"padding:9px;border-bottom:1px solid #e2e6e2;vertical-align:top\">\u8f7b\u5fae\u7455\u75b5<\/td><td style=\"padding:9px;border-bottom:1px solid #e2e6e2;vertical-align:top\">\u6e05\u7406<\/td><\/tr><tr><td style=\"padding:9px;border-bottom:1px solid #e2e6e2;vertical-align:top\">\u8bf7\u6c42\u7684\u66f4\u6539<\/td><td style=\"padding:9px;border-bottom:1px solid #e2e6e2;vertical-align:top\">\u7f3a\u5931<\/td><td style=\"padding:9px;border-bottom:1px solid #e2e6e2;vertical-align:top\">\u90e8\u5206<\/td><td style=\"padding:9px;border-bottom:1px solid #e2e6e2;vertical-align:top\">\u5b8c\u6210<\/td><\/tr><\/tbody><\/table><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u4fdd\u5b58\u5b8c\u6574\u7684\u4f5c\u4e1a\u8bb0\u5f55\uff0c\u5305\u62ec\u5931\u8d25\u7684\u60c5\u51b5\u3002\u5b9e\u9645\u6d4b\u8bd5\u53ef\u80fd\u4f1a\u8868\u660e\uff0c\u67d0\u79cd\u5bcc\u6709\u521b\u610f\u7684\u53d8\u4f53\u5728\u89c6\u89c9\u4e0a\u66f4\u5177\u51b2\u51fb\u529b\uff0c\u800c\u53e6\u4e00\u79cd\u7f16\u8f91\u65b9\u6848\u5728\u64cd\u4f5c\u4e0a\u66f4\u7a33\u59a5\u3002\u8fd9\u662f\u4e00\u4e2a\u6709\u7528\u7684\u7ed3\u8bba\u3002\u5b83\u6bd4\u58f0\u79f0\u67d0\u4e00\u79cd\u7ed3\u679c\u5728\u6240\u6709\u60c5\u51b5\u4e0b\u90fd\u66f4\u597d\u66f4\u5177\u8bf4\u670d\u529b\u3002.<\/p>\n\n\n\n<h2 id=\"error-handling-you-need-in-production\" class=\"wp-block-heading\">\u751f\u4ea7\u73af\u5883\u4e2d\u5fc5\u4e0d\u53ef\u5c11\u7684\u9519\u8bef\u5904\u7406<\/h2>\n\n\n\n<section data-visual=\"card-grid\" aria-label=\"\u751f\u4ea7\u9519\u8bef\u9700\u8981\u660e\u786e\u5904\u7406\" style=\"box-sizing:border-box;margin:24px 0\"><h3 style=\"margin:0 0 15px;color:#283f36;font:700 21px\/1.3 Georgia,serif\">\u751f\u4ea7\u9519\u8bef\u9700\u8981\u660e\u786e\u5904\u7406<\/h3><div style=\"display:grid;grid-template-columns:repeat(auto-fit,minmax(235px,1fr));gap:14px\"><article style=\"box-sizing:border-box;min-width:0;padding:18px;border:1px solid #c7d8d0;border-radius:8px;background:#f2f7f4\"><h4 style=\"margin:0 0 9px;color:#245a49;font-size:16px;line-height:1.35\">\u56fe\u7247\u65e0\u6548\u6216\u683c\u5f0f\u4e0d\u53d7\u652f\u6301<\/h4><div style=\"color:#405148;font-size:14px;line-height:1.62;overflow-wrap:anywhere\"><p style=\"margin:0 0 10px\">\u5c3d\u65e9\u7b5b\u9664\u8d85\u5927\u6587\u4ef6\uff0c\u5728\u53d7\u63a7\u7684\u73af\u5883\u4e2d\u5bf9\u5176\u8fdb\u884c\u89e3\u7801\uff0c\u8c03\u6574\u65b9\u5411\uff0c\u7136\u540e\u91cd\u65b0\u7f16\u7801\u3002\u4e0d\u8981\u4ec5\u51ed\u6587\u4ef6\u6269\u5c55\u540d\u6216\u5ba2\u6237\u7aef\u7684MIME\u7c7b\u578b\u6765\u5224\u65ad\u3002.<\/p><\/div><\/article><article style=\"box-sizing:border-box;min-width:0;padding:18px;border:1px solid #dcc7cd;border-radius:8px;background:#fbf4f5\"><h4 style=\"margin:0 0 9px;color:#7d3f4d;font-size:16px;line-height:1.35\">\u4e0d\u652f\u6301\u7684\u6a21\u578b\u6216\u53c2\u6570<\/h4><div style=\"color:#405148;font-size:14px;line-height:1.62;overflow-wrap:anywhere\"><p style=\"margin:0 0 10px\">\u5e94\u5411\u64cd\u4f5c\u5458\u8fd4\u56de\u914d\u7f6e\u9519\u8bef\uff0c\u800c\u4e0d\u662f\u5728\u540e\u53f0\u6084\u65e0\u58f0\u606f\u5730\u66f4\u6539\u6a21\u578b\u3002\u5907\u7528\u65b9\u6848\u53ef\u80fd\u4f1a\u5f71\u54cd\u8d28\u91cf\u3001\u5b89\u5168\u884c\u4e3a\u3001\u4ef7\u683c\u4ee5\u53ca\u6cd5\u5f8b\u5ba1\u67e5\u72b6\u6001\u3002.<\/p><\/div><\/article><article style=\"box-sizing:border-box;min-width:0;padding:18px;border:1px solid #c7d8d0;border-radius:8px;background:#f2f7f4\"><h4 style=\"margin:0 0 9px;color:#245a49;font-size:16px;line-height:1.35\">\u901f\u7387\u9650\u5236\u6216\u670d\u52a1\u5668\u6682\u65f6\u6545\u969c<\/h4><div style=\"color:#405148;font-size:14px;line-height:1.62;overflow-wrap:anywhere\"><p style=\"margin:0 0 10px\">\u4f7f\u7528\u5e26\u6296\u52a8\u7684\u6709\u754c\u6307\u6570\u9000\u907f\u7b97\u6cd5\u3002\u7ef4\u62a4\u4e00\u4e2a\u5e42\u7b49\u6027\u8bb0\u5f55\uff0c\u4ee5\u786e\u4fdd\u5728\u8d85\u65f6\u540e\u91cd\u8bd5\u4e0d\u4f1a\u751f\u6210\u91cd\u590d\u7684\u5df2\u652f\u4ed8\u4efb\u52a1\u3002.<\/p><\/div><\/article><article style=\"box-sizing:border-box;min-width:0;padding:18px;border:1px solid #dcc7cd;border-radius:8px;background:#fbf4f5\"><h4 style=\"margin:0 0 9px;color:#7d3f4d;font-size:16px;line-height:1.35\">\u5b89\u5168\u62d2\u6536<\/h4><div style=\"color:#405148;font-size:14px;line-height:1.62;overflow-wrap:anywhere\"><p style=\"margin:0 0 10px\">\u8bf7\u52ff\u4e3a\u4e86\u89c4\u907f\u62d2\u7edd\u800c\u81ea\u52a8\u5f31\u5316\u6216\u6a21\u7cca\u5316\u8bf7\u6c42\u3002\u5e94\u663e\u793a\u4e2d\u7acb\u7684\u63d0\u793a\u4fe1\u606f\uff0c\u4fdd\u7559\u9519\u8bef\u7c7b\u522b\uff0c\u5e76\u8ba9\u7528\u6237\u9009\u62e9\u7b26\u5408\u8981\u6c42\u7684\u6765\u6e90\u3002.<\/p><\/div><\/article><article style=\"box-sizing:border-box;min-width:0;padding:18px;border:1px solid #c7d8d0;border-radius:8px;background:#f2f7f4\"><h4 style=\"margin:0 0 9px;color:#245a49;font-size:16px;line-height:1.35\">\u90e8\u5206\u6279\u6b21\u7ed3\u679c<\/h4><div style=\"color:#405148;font-size:14px;line-height:1.62;overflow-wrap:anywhere\"><p style=\"margin:0 0 10px\">\u5c06\u6bcf\u4e2a\u8f93\u51fa\u89c6\u4e3a\u72ec\u7acb\u9879\u3002\u5728\u5c06\u4efb\u52a1\u6807\u8bb0\u4e3a\u6210\u529f\u4e4b\u524d\uff0c\u9700\u9a8c\u8bc1\u5176\u53ef\u89e3\u7801\u6027\u3001\u5b9e\u9645\u683c\u5f0f\u3001\u5c3a\u5bf8\u4ee5\u53ca\u6700\u5c0f\u5b57\u8282\u5927\u5c0f\u3002.<\/p><\/div><\/article><\/div><\/section>\n\n\n\n<h2 id=\"cost-planning-without-publishing-stale-prices\" class=\"wp-block-heading\">\u5728\u4e0d\u53d1\u5e03\u8fc7\u65f6\u4ef7\u683c\u7684\u60c5\u51b5\u4e0b\u8fdb\u884c\u6210\u672c\u89c4\u5212<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u56fe\u50cf API \u7684\u8d39\u7528\u53d6\u51b3\u4e8e\u652f\u6301\u7684\u6a21\u578b\u3001\u56fe\u50cf\u5c3a\u5bf8\u3001\u8d28\u91cf\u3001\u8f93\u51fa\u6570\u91cf\uff0c\u6709\u65f6\u8fd8\u53d6\u51b3\u4e8e\u8f93\u5165\u5904\u7406\u3002\u4ece\u65e7\u535a\u5ba2\u6587\u7ae0\u4e2d\u590d\u5236\u8fc7\u6765\u7684\u786c\u7f16\u7801\u4ef7\u683c\u5c5e\u4e8e\u7ef4\u62a4\u9519\u8bef\u3002.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u8bf7\u4f7f\u7528\u4ee5\u4e0b\u89c4\u5212\u516c\u5f0f\uff1a<\/p>\n\n\n\n<section data-copy-card=\"openai-image-variations-api-copy-4\" style=\"box-sizing:border-box;position:relative;margin:24px 0;padding:20px;border-radius:8px;background:#14251f;color:#eaf4ef\"><strong style=\"display:block;margin:0 96px 10px 0;color:#7fd0b0;font-size:14px\">\u6587\u672c<\/strong><textarea id=\"openai-image-variations-api-copy-4-text\" readonly style=\"box-sizing:border-box;width:100%;min-height:170px;padding:14px;border:1px solid #587467;border-radius:6px;background:#1b3028;color:#f4f8f6;font:14px\/1.65 ui-monospace,Consolas,monospace;resize:vertical\">estimated batch cost = requests x outputs per request x current unit cost\n                      + input-image processing cost, when applicable<\/textarea><button type=\"button\" onclick=\"(async()=>{const t=document.getElementById(&#8216;openai-image-variations-api-copy-4-text&#8217;),s=document.getElementById(&#8216;openai-image-variations-api-copy-4-status&#8217;);try{await Promise.race([navigator.clipboard.writeText(t.value),new Promise((_,r)=>setTimeout(()=>r(new Error(&#8216;timeout&#8217;)),800))]);s.textContent=&#8217;Copied.&#8217;}catch(e){t.focus();t.select();s.textContent=&#8217;Selected. Press Ctrl\/Cmd+C.&#8217;}})()&#8221; style=&#8221;position:absolute;right:20px;top:16px;border:1px solid #709486;border-radius:6px;padding:8px 12px;background:#2e604e;color:#fff;cursor:pointer;font-weight:700&#8243;>Copy<\/button><span id=\"openai-image-variations-api-copy-4-status\" aria-live=\"polite\" style=\"display:block;min-height:20px;margin-top:8px;color:#bfd3ca;font-size:13px\"><\/span><\/section>\n\n\n\n<p class=\"wp-block-paragraph\">\u5c06\u5b9a\u4ef7\u4fe1\u606f\u5b58\u50a8\u5728\u4e0e OpenAI \u5b98\u65b9\u5b9a\u4ef7\u9875\u9762\u5173\u8054\u7684\u3001\u5e26\u6709\u65e5\u671f\u6807\u8bb0\u7684\u914d\u7f6e\u8bb0\u5f55\u4e2d\u3002\u6dfb\u52a0\u9884\u7b97\u8b66\u62a5\u3001\u6bcf\u65e5\u4e0a\u9650\u3001\u6bcf\u6b21\u8bf7\u6c42\u7684\u6700\u5927\u8f93\u51fa\u91cf\u4ee5\u53ca\u6bcf\u4f4d\u7528\u6237\u7684\u914d\u989d\u3002\u8d85\u65f6\u5e76\u4e0d\u610f\u5473\u7740\u63d0\u4f9b\u5546\u672a\u63a5\u53d7\u8be5\u4efb\u52a1\uff1b\u91cd\u8bd5\u524d\u8bf7\u6838\u5bf9\u63d0\u4f9b\u5546\u7684\u8bf7\u6c42 ID\u3002\u4ec5\u8fd9\u4e00\u6761\u89c4\u5219\u5c31\u80fd\u907f\u514d\u8bb8\u591a\u610f\u5916\u7684\u91cd\u590d\u6536\u8d39\u3002.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5bf9\u4e8e\u6b63\u5728\u6bd4\u8f83\u6a21\u578b\u7684\u56e2\u961f\u6765\u8bf4\uff0c <a href=\"https:\/\/www.glbgpt.com\/hub\/best-ai-image-generators\/\">\u6700\u4f73AI\u56fe\u50cf\u751f\u6210\u5668\u6307\u5357<\/a> \u63d0\u4f9b\u4e86\u66f4\u5e7f\u6cdb\u7684\u5de5\u4f5c\u6d41\u80cc\u666f\uff0c\u5e76\u4e14 <a href=\"https:\/\/www.glbgpt.com\/hub\/7-best-chatgpt-alternatives-for-images\/\">ChatGPT\u7684\u56fe\u7247\u66ff\u4ee3\u65b9\u6848<\/a> \u6709\u52a9\u4e8e\u5c06 API \u7684\u9002\u7528\u6027\u4e0e\u89c6\u89c9\u5ba1\u7f8e\u533a\u5206\u5f00\u6765\u3002.<\/p>\n\n\n\n<h2 id=\"when-globalgpt-is-the-simpler-workflow\" class=\"wp-block-heading\">\u4f55\u65f6\u201cGlobalGPT\u201d\u624d\u662f\u66f4\u7b80\u4fbf\u7684\u5de5\u4f5c\u6d41\u7a0b<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u5f53\u60a8\u9700\u8981\u670d\u52a1\u5668\u7aef\u81ea\u52a8\u5316\u3001\u4e25\u683c\u7684\u8bbf\u95ee\u63a7\u5236\u3001\u81ea\u5b9a\u4e49\u7684\u5b58\u50a8\u751f\u547d\u5468\u671f\u4ee5\u53ca\u4e0e\u5e94\u7528\u7a0b\u5e8f\u7684\u6df1\u5ea6\u96c6\u6210\u65f6\uff0c\u76f4\u63a5\u4f7f\u7528 OpenAI API \u662f\u4e00\u4e2a\u660e\u667a\u7684\u9009\u62e9\u3002\u6b64\u5916\uff0c\u5b83\u8fd8\u8981\u6c42\u8fdb\u884c\u51ed\u8bc1\u7ba1\u7406\u3001\u8f93\u5165\u9a8c\u8bc1\u3001\u9519\u8bef\u5904\u7406\u3001\u6210\u672c\u63a7\u5236\u4ee5\u53ca\u6301\u7eed\u7684\u7aef\u70b9\u7ef4\u62a4\u3002.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5982\u679c\u76ee\u6807\u662f\u6bd4\u8f83\u521b\u610f\u6210\u679c\u5e76\u5b8c\u6210\u56fe\u50cf\u4efb\u52a1\uff0c\u4e14\u65e0\u9700\u6784\u5efa\u4e13\u95e8\u7684\u96c6\u6210\u65b9\u6848\uff0c\u90a3\u4e48 GlobalGPT \u662f\u4e00\u79cd\u66f4\u7b80\u4fbf\u7684\u9014\u5f84\u3002\u60a8\u53ef\u4ee5\u5728\u540c\u4e00\u4e2a\u5de5\u4f5c\u533a\u4e2d\u5728\u751f\u6210\u578b\u6a21\u578b\u548c\u7f16\u8f91\u578b\u6a21\u578b\u4e4b\u95f4\u5207\u6362\uff0c\u5c06\u63d0\u793a\u8bed\u4f5c\u4e3a\u521b\u610f\u8bb0\u5f55\u7684\u4e00\u90e8\u5206\u4fdd\u5b58\u4e0b\u6765\uff0c\u5e76\u6839\u636e\u4efb\u52a1\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u5de5\u5177\uff0c\u800c\u65e0\u9700\u5f3a\u5236\u5c06\u6bcf\u4e2a\u8bf7\u6c42\u90fd\u901a\u8fc7\u65e7\u7248\u7684\u53d8\u4f53\u7aef\u70b9\u5904\u7406\u3002.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/www.glbgpt.com\/home?inviter=hub_popup&amp;login=1\">\u8bd5\u7528 GlobalGPT<\/a> \u5f53\u60a8\u9700\u8981\u4ea4\u4e92\u5f0f\u591a\u6a21\u578b\u56fe\u50cf\u5de5\u4f5c\u6d41\u65f6\u3002\u5982\u679c\u56fe\u50cf\u5904\u7406\u6b65\u9aa4\u5fc5\u987b\u96c6\u6210\u5230\u60a8\u81ea\u5df1\u7684\u8f6f\u4ef6\u4e2d\uff0c\u4e14\u60a8\u613f\u610f\u81ea\u884c\u8d1f\u8d23\u76f8\u5173\u5de5\u7a0b\u5f00\u53d1\uff0c\u8bf7\u4f7f\u7528\u76f4\u63a5\u7684 OpenAI API\u3002.<\/p>\n\n\n\n<h2 id=\"practical-recommendation\" class=\"wp-block-heading\">\u5b9e\u7528\u5efa\u8bae<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u4ec5\u5728\u786e\u8ba4\u5f53\u524d\u7aef\u70b9\u652f\u6301\u8be5\u529f\u80fd\uff0c\u4e14\u786e\u5b9e\u5e0c\u671b\u4ece\u6b63\u65b9\u5f62\u6e90\u56fe\u50cf\u4e2d\u751f\u6210\u65e0\u9650\u5236\u7684\u53d8\u4f53\u65f6\uff0c\u624d\u5e94\u4f7f\u7528 OpenAI \u56fe\u50cf\u53d8\u4f53 API\u3002\u8bf7\u52ff\u5c06\u5176\u4f5c\u4e3a\u6240\u6709\u56fe\u50cf\u5230\u56fe\u50cf\u5904\u7406\u4efb\u52a1\u7684\u7b80\u4fbf\u66ff\u4ee3\u65b9\u6848\u3002.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u82e5\u9700\u8fdb\u884c\u7cbe\u51c6\u7684\u521b\u610f\u8c03\u6574\uff0c\u8bf7\u4ece\u56fe\u50cf\u7f16\u8f91\u5de5\u4f5c\u6d41\u5f00\u59cb\u3002\u82e5\u8981\u521b\u5efa\u65b0\u5408\u6210\u753b\u9762\uff0c\u8bf7\u4ece\u6587\u5b57\u8f6c\u56fe\u50cf\u751f\u6210\u5f00\u59cb\u3002\u5bf9\u4e8e\u54c1\u724c\u7d20\u6750\uff0c\u5728\u50cf\u7d20\u7cbe\u5ea6\u81f3\u5173\u91cd\u8981\u7684\u60c5\u51b5\u4e0b\uff0c\u5e94\u52a0\u5165\u4eba\u5de5\u5ba1\u6838\u548c\u4f20\u7edf\u5408\u6210\u6d41\u7a0b\u3002\u6700\u4f18\u7684\u67b6\u6784\u5e76\u975e\u53d6\u51b3\u4e8e\u578b\u53f7\u662f\u5426\u6700\u65b0\uff0c\u800c\u5728\u4e8e\u5176\u63a7\u5236\u754c\u9762\u80fd\u5426\u6ee1\u8db3\u5177\u4f53\u9700\u6c42\u3002.<\/p>\n\n\n\n<h2 id=\"faq\" class=\"wp-block-heading\">\u5e38\u89c1\u95ee\u9898<\/h2>\n\n\n\n<div data-faq-question=\"Does the OpenAI Image Variations API accept a text prompt?\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">OpenAI \u56fe\u50cf\u53d8\u4f53 API \u662f\u5426\u652f\u6301\u6587\u672c\u63d0\u793a\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u7ecf\u5178\u53d8\u4f53\u5de5\u4f5c\u6d41\u662f\u4ee5\u6e90\u56fe\u50cf\u4e3a\u5bfc\u5411\u7684\uff0c\u4e0d\u5e94\u5c06\u5176\u89c6\u4e3a\u57fa\u4e8e\u63d0\u793a\u7684\u7f16\u8f91\u7ec8\u70b9\u3002\u5982\u679c\u60a8\u9700\u8981\u63cf\u8ff0\u5177\u4f53\u7684\u66f4\u6539\uff0c\u8bf7\u4f7f\u7528 OpenAI \u6587\u6863\u4e2d\u8bb0\u5f55\u7684\u5f53\u524d\u53d7\u652f\u6301\u7684\u56fe\u50cf\u7f16\u8f91\u6216\u751f\u6210\u8def\u5f84\u3002.<\/p>\n\n\n\n<div data-faq-question=\"Is an image variation the same as an image edit?\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">\u56fe\u50cf\u53d8\u4f53\u548c\u56fe\u50cf\u7f16\u8f91\u662f\u4e00\u56de\u4e8b\u5417\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e0d\u3002\u53d8\u4f53\u662f\u5bf9\u6e90\u5185\u5bb9\u7684\u4e00\u79cd\u65b0\u8be0\u91ca\uff0c\u800c\u7f16\u8f91\u5219\u662f\u901a\u8fc7\u6307\u4ee4\uff08\u6709\u65f6\u8fd8\u501f\u52a9\u8499\u7248\uff09\u6765\u63a7\u5236\u5177\u4f53\u4fee\u6539\u5185\u5bb9\u3002\u5f53\u67d0\u4e9b\u5143\u7d20\u5fc5\u987b\u4fdd\u6301\u4e0d\u53d8\u65f6\uff0c\u901a\u5e38\u66f4\u9002\u5408\u91c7\u7528\u7f16\u8f91\u65b9\u5f0f\u3002.<\/p>\n\n\n\n<div data-faq-question=\"Which OpenAI model supports image variations?\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">\u54ea\u6b3e OpenAI \u578b\u53f7\u652f\u6301\u56fe\u50cf\u53d8\u4f53\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u6a21\u578b\u517c\u5bb9\u6027\u53d8\u66f4\u3002\u90e8\u7f72\u524d\uff0c\u8bf7\u76f4\u63a5\u5728 OpenAI \u5f53\u524d\u7684 Images API \u53c2\u8003\u6587\u6863\u4e2d\u786e\u8ba4\u652f\u6301\u7684\u6a21\u578b\u3002\u8bf7\u52ff\u5047\u8bbe\u6bcf\u4e2a\u56fe\u50cf\u751f\u6210\u6a21\u578b\u90fd\u652f\u6301\u6240\u6709 Images \u7aef\u70b9\u3002.<\/p>\n\n\n\n<div data-faq-question=\"Why does my variations request reject a JPEG?\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">\u4e3a\u4ec0\u4e48\u6211\u7684\u53d8\u4f53\u8bf7\u6c42\u4f1a\u62d2\u7eddJPEG\u683c\u5f0f\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u7aef\u70b9\u53ef\u80fd\u5bf9\u683c\u5f0f\u3001\u5c3a\u5bf8\u3001\u5f62\u72b6\u6216\u6587\u4ef6\u5927\u5c0f\u6709\u7279\u5b9a\u8981\u6c42\u3002\u8bf7\u5c06\u6e90\u6587\u4ef6\u8c03\u6574\u4e3a\u7b26\u5408\u5b9e\u65f6\u6587\u6863\u7684\u8981\u6c42\uff08\u5728\u8f83\u65e9\u7684\u793a\u4f8b\u4e2d\u901a\u5e38\u4e3a\u6b63\u65b9\u5f62 PNG \u683c\u5f0f\uff09\uff0c\u5e76\u5728\u4e0a\u4f20\u524d\u5bf9\u89e3\u7801\u540e\u7684\u6587\u4ef6\u8fdb\u884c\u9a8c\u8bc1\u3002.<\/p>\n\n\n\n<div data-faq-question=\"Can the API preserve a logo or face exactly?\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">\u8be5 API \u80fd\u5426\u7cbe\u786e\u4fdd\u7559\u5fbd\u6807\u6216\u4eba\u8138\u7684\u5f62\u72b6\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e0d\u5e94\u627f\u8bfa\u5728\u751f\u6210\u5f0f\u53d8\u4f53\u4e2d\u5b8c\u5168\u4fdd\u7559\u539f\u6709\u5185\u5bb9\u3002\u8bf7\u4ee5\u5168\u5206\u8fa8\u7387\u6d4b\u8bd5\u56fe\u50cf\u7684\u8eab\u4efd\u7279\u5f81\u3001\u51e0\u4f55\u5f62\u72b6\u3001\u62fc\u5199\u548c\u54c1\u724c\u989c\u8272\u3002\u5f53\u5fc5\u987b\u4fdd\u8bc1\u8fd8\u539f\u7cbe\u5ea6\u65f6\uff0c\u8bf7\u4f7f\u7528\u7f16\u8f91\u3001\u8499\u7248\u3001\u5408\u6210\u6216\u975e\u751f\u6210\u5f0f\u56fe\u5f62\u5de5\u4f5c\u6d41\u7a0b\u3002.<\/p>\n\n\n\n<div data-faq-question=\"How many variations should I request?\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">\u6211\u5e94\u8be5\u8981\u6c42\u591a\u5c11\u79cd\u53d8\u4f53\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u5148\u4ece\u5c0f\u6279\u91cf\u5f00\u59cb\uff0c\u901a\u5e38\u662f\u4e00\u4e24\u4e2a\u8f93\u51fa\u7ed3\u679c\uff0c\u5728\u6269\u5927\u89c4\u6a21\u524d\u5148\u8861\u91cf\u5408\u683c\u7387\u3002\u8f93\u51fa\u7ed3\u679c\u8d8a\u591a\uff0c\u6210\u672c\u548c\u5ba1\u6838\u5de5\u4f5c\u91cf\u5c31\u8d8a\u5927\uff1b\u4f46\u8fd9\u5e76\u4e0d\u80fd\u4fdd\u8bc1\u4efb\u4f55\u4e00\u5f20\u56fe\u7247\u90fd\u80fd\u6ee1\u8db3\u4e25\u683c\u7684\u54c1\u724c\u8981\u6c42\u3002.<\/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\": \"Does the OpenAI Image Variations API accept a text prompt?\",\n            \"acceptedAnswer\": {\n                \"@type\": \"Answer\",\n                \"text\": \"The classic variations workflow is source-image driven and should not be treated as a prompt-led editing endpoint. If you need to describe exact changes, use a currently supported image editing or generation route documented by OpenAI.\"\n            }\n        },\n        {\n            \"@type\": \"Question\",\n            \"name\": \"Is an image variation the same as an image edit?\",\n            \"acceptedAnswer\": {\n                \"@type\": \"Answer\",\n                \"text\": \"No. A variation creates a new interpretation of the source, while an edit uses instructions and sometimes a mask to control what changes. Edits are usually more suitable when particular elements must remain stable.\"\n            }\n        },\n        {\n            \"@type\": \"Question\",\n            \"name\": \"Which OpenAI model supports image variations?\",\n            \"acceptedAnswer\": {\n                \"@type\": \"Answer\",\n                \"text\": \"Model compatibility changes. Confirm the accepted model directly in OpenAI's current Images API reference before deployment. Do not assume that every image-generation model supports every Images endpoint.\"\n            }\n        },\n        {\n            \"@type\": \"Question\",\n            \"name\": \"Why does my variations request reject a JPEG?\",\n            \"acceptedAnswer\": {\n                \"@type\": \"Answer\",\n                \"text\": \"The endpoint may require a specific format, dimensions, shape, or file-size limit. Normalize the source to the live documentation's requirements, commonly a square PNG in older examples, and validate the decoded file before uploading.\"\n            }\n        },\n        {\n            \"@type\": \"Question\",\n            \"name\": \"Can the API preserve a logo or face exactly?\",\n            \"acceptedAnswer\": {\n                \"@type\": \"Answer\",\n                \"text\": \"You should not promise exact preservation from a generative variation. Test identity, geometry, spelling, and brand colors at full resolution. Use editing, masking, compositing, or a non-generative graphics workflow when fidelity is mandatory.\"\n            }\n        },\n        {\n            \"@type\": \"Question\",\n            \"name\": \"How many variations should I request?\",\n            \"acceptedAnswer\": {\n                \"@type\": \"Answer\",\n                \"text\": \"Start with a small batch, often one or two outputs, and measure acceptance rate before scaling. More outputs increase cost and review work; they do not guarantee that any image will satisfy a strict brand requirement.\"\n            }\n        }\n    ]\n}<\/script>\n\n\n\n<aside aria-label=\"\u6765\u6e90\u6ce8\u91ca\" style=\"box-sizing:border-box;margin:28px 0;padding:16px 18px;border-left:4px solid #536c8b;background:#f2f5f8;color:#344659\"><strong>\u6e90\u8fb9\u754c\uff1a<\/strong> \u6240\u63d0\u4f9b\u7684\u53c2\u8003\u9875\u9762\u4e3a\u5185\u5bb9\u7ed3\u6784\u548c\u641c\u7d22\u610f\u56fe\u63d0\u4f9b\u4e86\u4f9d\u636e\u3002\u52a8\u6001\u4ea7\u54c1\u58f0\u660e\u4ecd\u5f52\u56e0\u4e8e\u6587\u7ae0\u4e2d\u94fe\u63a5\u7684\u5b98\u65b9\u6765\u6e90\uff1b\u4efb\u4f55\u5173\u4e8eGlobalGPT\u7684\u8bc4\u8bba\u5747\u5c5e\u4e8e\u72ec\u7acb\u7684\u6587\u672c\u5de5\u4f5c\u6d41\u89c2\u5bdf\u7ed3\u679c\u3002.<\/aside>","protected":false},"excerpt":{"rendered":"<p>Quick answer The OpenAI Image Variations API is a narrow, legacy-style endpoint for producing visual alternatives from an input image. It is useful when you want the same broad subject or composition expressed as several new images, but it is not the right tool for precise, instruction-led edits. It does not give you a natural-language [&hellip;]<\/p>","protected":false},"author":16,"featured_media":20353,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_seopress_robots_primary_cat":"","_seopress_titles_title":"OpenAI Image Variations API: What It Does and Which Route to Use (2026)","_seopress_titles_desc":"Learn openai image variations api with current sources, practical tests, clear limits, and a safer path from first trial to production.","_seopress_robots_index":"","footnotes":""},"categories":[7],"tags":[],"class_list":["post-20344","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ai-chat"],"acf":[],"_links":{"self":[{"href":"https:\/\/wp.glbgpt.com\/zh\/wp-json\/wp\/v2\/posts\/20344","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.glbgpt.com\/zh\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.glbgpt.com\/zh\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.glbgpt.com\/zh\/wp-json\/wp\/v2\/users\/16"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.glbgpt.com\/zh\/wp-json\/wp\/v2\/comments?post=20344"}],"version-history":[{"count":3,"href":"https:\/\/wp.glbgpt.com\/zh\/wp-json\/wp\/v2\/posts\/20344\/revisions"}],"predecessor-version":[{"id":20347,"href":"https:\/\/wp.glbgpt.com\/zh\/wp-json\/wp\/v2\/posts\/20344\/revisions\/20347"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wp.glbgpt.com\/zh\/wp-json\/wp\/v2\/media\/20353"}],"wp:attachment":[{"href":"https:\/\/wp.glbgpt.com\/zh\/wp-json\/wp\/v2\/media?parent=20344"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.glbgpt.com\/zh\/wp-json\/wp\/v2\/categories?post=20344"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.glbgpt.com\/zh\/wp-json\/wp\/v2\/tags?post=20344"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}