{"id":155326,"date":"2026-07-07T11:00:00","date_gmt":"2026-07-07T02:00:00","guid":{"rendered":"https:\/\/support.questetra.com\/?p=155326"},"modified":"2026-07-07T11:01:18","modified_gmt":"2026-07-07T02:01:18","slug":"service-task-openai-dalle-image-generate","status":"publish","type":"post","link":"https:\/\/support.questetra.com\/en\/bpmn-icons\/service-task-openai-dalle-image-generate\/","title":{"rendered":"OpenAI: Generate Image"},"content":{"rendered":"\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"58\" data-attachment-id=\"113160\" data-permalink=\"https:\/\/support.questetra.com\/en\/developer-blog\/how-to-use-timer-start-event\/attachment\/advanced-banner-new-en\/\" data-orig-file=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/05\/advanced-banner-new-en.png?fit=1200%2C68&amp;ssl=1\" data-orig-size=\"1200,68\" data-comments-opened=\"0\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"advanced-banner-new-en\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/05\/advanced-banner-new-en.png?fit=1024%2C58&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/05\/advanced-banner-new-en-1024x58.png?resize=1024%2C58&#038;ssl=1\" alt=\"\" class=\"wp-image-113160\" srcset=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/05\/advanced-banner-new-en.png?resize=1024%2C58&amp;ssl=1 1024w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/05\/advanced-banner-new-en.png?resize=600%2C34&amp;ssl=1 600w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/05\/advanced-banner-new-en.png?resize=768%2C44&amp;ssl=1 768w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/05\/advanced-banner-new-en.png?w=1200&amp;ssl=1 1200w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/figure>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h4 class=\"wp-block-heading has-border-color has-product-main-border-color has-white-color has-product-main-background-color has-text-color has-background has-link-color\" style=\"border-width:2px;margin-top:0;margin-right:0;margin-bottom:0;margin-left:0;padding-top:var(--wp--preset--spacing--10);padding-right:var(--wp--preset--spacing--20);padding-bottom:var(--wp--preset--spacing--10);padding-left:var(--wp--preset--spacing--20)\"><strong>OpenAI: Generate Image<\/strong><\/h4>\n\n\n\n<p class=\"has-text-align-right has-border-color has-product-main-border-color has-white-color has-product-main-background-color has-text-color has-background has-link-color has-small-font-size mt-0 pt-0 wp-block-paragraph\" style=\"border-width:2px;margin-top:0;margin-right:0;margin-bottom:0;margin-left:0;padding-top:0;padding-right:var(--wp--preset--spacing--20);padding-bottom:0;padding-left:var(--wp--preset--spacing--20)\"><a href=\"https:\/\/support.questetra.com\/en\/bpmn-icons\/service-task-openai-dalle-image-generate\/\">OpenAI: \u753b\u50cf\u751f\u6210<\/a><\/p>\n\n\n\n<p class=\"has-border-color has-product-main-border-color has-text-color has-white-background-color has-background has-link-color mt-0 pt-0 wp-block-paragraph\" style=\"border-width:2px;margin-top:0;margin-right:0;margin-bottom:var(--wp--preset--spacing--30);margin-left:0;padding-top:var(--wp--preset--spacing--20);padding-right:var(--wp--preset--spacing--20);padding-bottom:var(--wp--preset--spacing--20);padding-left:var(--wp--preset--spacing--20)\">This item generates an image using OpenAI&#8217;s model.<\/p>\n\n\n\n<figure class=\"wp-block-image alignright has-custom-border is-style-default\" style=\"margin-top: 0px;\"><img decoding=\"async\" src=\"data:image\/png;base64,\n        iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAABclJREFUWEfN\n        V3tQlFUU\/12esiCwrCIhKugiL0VAUASc8pEZmI2K5Wu3MRtDK5Wm0RlndAEbK2VEa\/JRYQZkmu9I\n        a\/KVvBQfgOKKDwhwDUXQXcTl4QK3uRd2XdhvgbFm6P73fd895\/zOOb\/z+Aj6+JDe2nfflSBqtMds\n        2kYngdBgAJ4AEbfLUzWAClBSSCzIWTstDle9n9DQG909Ahj4vcJNZ4k1hCCOAv16qbSJUuy0bsUX\n        NYsTH3Qn0y0AcZoijhKaDBD73hg2vUO1hJJP1PLEnebkzQJwSk\/YTkCXvZjhzlIUZEedLGG5kC5B\n        AE7p6\/cSkPn\/hXG9Dgr6U50saUFXnSYAevL8Q78IvD08EEMdnKFra8PVx\/exveQ8TleV9ohXKBKd\n        ALTnHDuENDlY2yI1ag4mu0tR3ViPwkdVcLLphzEuL8ECBPv+ugoLQnC59m9kqkrwVNcsCIhQLDPm\n        hAEAZ7sVLTVHuM1h0ZB7j8WxSiU+vnicG3AXOWJj6HTEDPGFFbEwGNQ8a0Tq7Uv4tOiMAAiqtW4h\n        Un11GAA4pylSQLCqqwTzfIV\/BN6RjsWDxnrEnNzDja8KiMJyvwkQ29ohr7oSm4vPIae6AjOG+GF1\n        4MvwdpRge8kFbCg6LVAc2KqRJ8azDxwAbzIi+qhrnU9198bG0NcgdZSAgCC9tABppQXYFBaNQBc3\n        XFdXcwMs\/+yuSqvBrboa+DgNRGpULBysbfBeziFcrr3XCQQBmuwaiIQ1Kw5AnJGwiFKabnxLr2Sw\n        vSMOlhdj3vAxOFKpRO7DSiiCpmDPnSvYVHwOMmkIlvuGw8d5IOp1zZwLG4rO8Kgt9RmPFGU2tilz\n        TaJACJGpFyVkcADOaYpUELxrfEsRPBVLfcZh18183HpSi+SwaA7gYo0KH\/lH4PNrf0IuHYtgiTuO\n        q25y4rH3YQM8cE9bx58XjgjG7tuXsPHqWaE07NbIE5e0A0hfXwAQ1t8N59AUGaT9JVicfQDeTgMM\n        ABgP4nzD0UYp7jyphcRWBArwUmTEYxGJD4iCZ38xmltbOFChCAC0UCNLCtEDePx8sLRjODpVzlk+\n        +bdvOcv1EWAA5NIQbC7O4gYZSTeFvY5Yz9G4oXnIOZFfo8JnodMR6zkKRytvYFneEaFqUGtkSS4d\n        ABTMiU7nqwlvcsOrL55AU2sLtoW\/wWufNZ7ZnqOw8sIvyHpQzmXWjpmEt7wCOYDIQcNwuEKJ+PxM\n        7J+0AEESd3yQdwynqu6YgNDIEolZAMxI8rgY3K6rwcoLmfCwd8K6oCnwd3ZFbZMWcXlHOgGY6xXI\n        QbEKYSc882usDIhEfMBEfHMrX5AHRgDWm6SAKdkVORtzvUajol6NFGUOL0OWY9YD2PlSmQt\/sSuv\n        EK3uGQdlDGDRiGAkhrzKU2VKRGqcAlMS6nng5+SKhlYdj4Cyo+5ZjndGzMJ0j5G4+1SD8w\/vImLQ\n        MJMIbBk3g6dr7ZXfsbesqEsKjEkoUIZ6AF4OLliSc5BHgnlqY2GFR81aWBNL\/FhWiC3KHKwKiOQk\n        XGGUgqTC09gyPgZVDfWYeeoH09lA8bwMhRoRA8D6\/\/wRQUguzsJWZQ5CB3jwEnuiaza02A0h0xA9\n        xBd3n6qx8Nw+ZLw8D4NFjtxbdo\/xR4iAnRqRuVbMDH4XNQe2llZQFJzEz+XXuGJWeuuCJhsickJ1\n        E+sK\/uBlu3tiLFxsRXw+sE7ZtQ0zeZNWzJuRmWHEiMTY72xrx\/PNmoubqD8fxXpO6HeBHRGzMHOo\n        H5KvZyPlerZA7Xe8ol2GEXvd3Thmnq0JfIW3WXsrGzja2PLxe6C8GBllhZygS0aGYYLrUORWV0KW\n        td\/sPgCYGccMRHcLibE7UYM8kRQyjU9Ey449oLFFh19VJYZdwZz7ZhcSvUBPK5mxYjYxR4vd8Kyt\n        FWful3XjdbtUjyvZcxB9uJS+SCTMs82853qZ\/++PiR5hn\/6aGYe2z35Oe8rvv\/3+D7A\/zj\/ftsWS\n        AAAAAElFTkSuQmCC\n    \" alt=\"Auto Step icon\" class=\"has-border-color has-ast-global-color-6-border-color\" style=\"border-width:0.5em\"\/><\/figure>\n\n\n\n<div class=\"wp-block-coblocks-accordion\">\n<div class=\"wp-block-coblocks-accordion-item\"><details open><summary class=\"wp-block-coblocks-accordion-item__title\">Basic Configs<\/summary><div class=\"wp-block-coblocks-accordion-item__content\">\n<dl style=\"0 0 -0.7em 0\">\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #C3C3C3;\"><\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">Step Name<\/dd>\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #C3C3C3;\"><\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">Note<\/dd>\n<\/dl>\n<\/div><\/details><\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-coblocks-accordion\">\n<div class=\"wp-block-coblocks-accordion-item\"><details open><summary class=\"wp-block-coblocks-accordion-item__title\">Configs for this Auto Step<\/summary><div class=\"wp-block-coblocks-accordion-item__content\">\n<dl style=\"0 0 -0.7em 0\">\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #aaa;\">conf_Auth<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">C1: Authorization Setting in which Project API Key is set<span style=\"color:#990000;\"> *<\/span><\/dd>\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #aaa;\">conf_Model<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">C2: Model<span style=\"color:#990000;\"> *<\/span><\/dd>\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #aaa;\">conf_Prompt<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">C3: Prompt<span style=\"color:#990000;\"> *<\/span><span style=\"color:#000099;\"><sup style=\"font-style:italic;\">#{EL}<\/sup><\/span><\/dd>\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #aaa;\">conf_Size<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">C4: Image Size (auto if not selected)<\/dd>\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #aaa;\">conf_Format<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">C5: Image Format (PNG if not selected)<\/dd>\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #aaa;\">conf_Quality<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">C6: Image Quality (auto if not selected)<\/dd>\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #aaa;\">conf_File<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">C7: Data item to add the generated file<span style=\"color:#990000;\"> *<\/span><\/dd>\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #aaa;\">conf_FileName<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">C8: File name to save as<span style=\"color:#990000;\"> *<\/span><span style=\"color:#000099;\"><sup style=\"font-style:italic;\">#{EL}<\/sup><\/span><\/dd>\n\n<\/dl>\n<\/div><\/details><\/div>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\" style=\"margin-top:var(--wp--preset--spacing--30)\"><span>Notes<\/span><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Project API Keys can be created&nbsp;<a href=\"https:\/\/platform.openai.com\/api-keys\" target=\"_blank\" rel=\"noreferrer noopener\">here<\/a><\/li>\n\n\n\n<li>In [C2: Model], if you want to use a model that is not listed in the pull-down menu, select \u201cFixed Value\u201d and enter the model name in the input field\n<ul class=\"wp-block-list\">\n<li>Model names should be written according to OpenAI documentation\n<ul class=\"wp-block-list\">\n<li>See the \u201c<a href=\"https:\/\/platform.openai.com\/docs\/models\/\" data-type=\"link\" data-id=\"https:\/\/platform.openai.com\/docs\/models\/\" target=\"_blank\" rel=\"noreferrer noopener\">Models<\/a>\u201d in the OpenAI Platform documentation<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Only those models which support image generation can be used\n<ul class=\"wp-block-list\">\n<li>Please refer to the details of each model&#8217;s details in the OpenAI documentation above<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Some options are only supported on certain models\n<ul class=\"wp-block-list\">\n<li>For more details, please refer to the <a href=\"https:\/\/platform.openai.com\/docs\/api-reference\/images\/create\" target=\"_blank\" rel=\"noreferrer noopener\">OpenAI API Reference<\/a><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" style=\"margin-top:var(--wp--preset--spacing--30)\"><span>See also<\/span><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/support.questetra.com\/en\/bpmn-icons\/intermediate-error-catch-event-boundary-type\/\" target=\"_blank\" rel=\"noreferrer noopener\">Intermediate Error Catch Event (Boundary Type)<\/a><\/li>\n<\/ul>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div class=\"wp-block-coblocks-accordion\">\n<div class=\"wp-block-coblocks-accordion-item\"><details><summary class=\"wp-block-coblocks-accordion-item__title\">Script (click to open)<\/summary><div class=\"wp-block-coblocks-accordion-item__content\">\n<ul class=\"wp-block-list\">\n<li>An XML file that contains the code below is available to download\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/gh-cdn.questetra.net\/Questetra\/Addon-XML\/release-2026-06-02\/openai-dalle-image-generate.xml\" target=\"_blank\" rel=\"noreferrer noopener\">openai-dalle-image-generate.xml<\/a> (C) Questetra, Inc. (MIT License)<\/li>\n\n\n\n<li>If you are using Professional, you can modify the contents of this file and use it as your own add-on auto step<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>\nfunction main() {\n    \/\/\/\/\/\/ == \u5de5\u7a0b\u30b3\u30f3\u30d5\u30a3\u30b0\u30fb\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u30c7\u30fc\u30bf\u306e\u53c2\u7167 \/ Config &amp; Data Retrieving ==\n    const auth = configs.getObject(&apos;conf_Auth&apos;);   \/\/\/ REQUIRED\n    const model = retrieveModel();\n    const prompt = configs.get(&apos;conf_Prompt&apos;);\n    if (prompt === &apos;&apos;) {\n        throw new Error(&apos;Prompt is empty.&apos;);\n    }\n\n    const size = retrieveSize();\n    const format = retrieveSelectItem(&apos;conf_Format&apos;);\n    const quality = retrieveSelectItem(&apos;conf_Quality&apos;);\n    const fileName = configs.get(&apos;conf_FileName&apos;);\n    if (fileName === &apos;&apos;) {\n        throw new Error(&apos;File name is empty.&apos;);\n    }\n\n    \/\/\/\/\/\/ == \u6f14\u7b97 \/ Calculating ==\n    const newFile = generateImage(auth, model, prompt, size, format, quality, fileName);\n\n    saveFileData(&apos;conf_File&apos;, newFile);\n}\n\n\/**\n * config \u304b\u3089\u30e2\u30c7\u30eb ID \u3092\u8aad\u307f\u51fa\u3059\n * \u30e2\u30c7\u30eb ID \u3068\u3057\u3066\u4e0d\u6b63\u306a\u5834\u5408\u306f\u30a8\u30e9\u30fc\n * @return {String}\n *\/\nconst retrieveModel = () =&gt; {\n    const model = configs.get(&apos;conf_Model&apos;);\n    const reg = new RegExp(&apos;^[a-z0-9.-]+$&apos;);\n    if (!reg.test(model)) {\n        throw new Error(&apos;Model is invalid. It contains an invalid character.&apos;);\n    }\n    return model;\n};\n\n\/**\n * config \u304b\u3089\u30b5\u30a4\u30ba\u3092\u8aad\u307f\u51fa\u3059\n * \u5f62\u5f0f: WIDTHxHEIGHT (\u4f8b: 1024x1024)\n * \u6307\u5b9a\u306a\u3057\u306e\u5834\u5408\u306f undefined\n * \u5f62\u5f0f\u304c\u4e0d\u6b63\u306a\u5834\u5408\u306f\u30a8\u30e9\u30fc\n * \u7d30\u304b\u306a\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u306f API \u306b\u4efb\u305b\u3001\u3053\u3053\u3067\u306f\u30c1\u30a7\u30c3\u30af\u3057\u306a\u3044\n * @return {String}\n *\/\nconst retrieveSize = () =&gt; {\n    const size = retrieveSelectItem(&apos;conf_Size&apos;);\n    if (size === undefined) {\n        return undefined;\n    }\n\n    \/\/ \u57fa\u672c\u7684\u306a\u5f62\u5f0f\u30c1\u30a7\u30c3\u30af: \u6570\u5b57x\u6570\u5b57\uff081\u301c4\u6841\uff09\n    const formatRegex = \/^([1-9]\\d{0,3})x([1-9]\\d{0,3})$\/;\n    if (!formatRegex.test(size)) {\n        throw new Error(&apos;Size is invalid. It must be WIDTHxHEIGHT.&apos;);\n    }\n\n    return size;\n};\n\n\/**\n * form-type=&quot;SELECT_ITEM&quot; \u306e\u8a2d\u5b9a\u5024\u3092\u53d6\u5f97\u3059\u308b\n * \u7a7a\u306e\u5834\u5408\u3001undefined \u3092\u8fd4\u3059\n * @param configName\n * @returns {undefined|String}\n *\/\nconst retrieveSelectItem = (configName) =&gt; {\n    const value = configs.get(configName);\n    if (value === &apos;&apos;) {\n        return undefined;\n    }\n    return value;\n};\n\n\/**\n * \u753b\u50cf\u751f\u6210\n * @param auth\n * @param model\n * @param prompt\n * @param size\n * @param format\n * @param quality\n * @returns {String} answer1\n *\/\nconst generateImage = (auth, model, prompt, size, format, quality, fileName) =&gt; {\n    \/\/ https:\/\/platform.openai.com\/docs\/guides\/safety-best-practices\n    \/\/ Sending end-user IDs in your requests can be a useful tool to help OpenAI monitor and detect abuse.\n    const user = `m${processInstance.getProcessModelInfoId().toString()}`;\n\n    \/\/\/ prepare json\n    const requestJson = {\n        model,\n        prompt,\n        size,\n        output_format: format,\n        quality,\n        user,\n        n: 1,\n    };\n\n    const response = httpClient.begin().authSetting(auth)\n        .body(JSON.stringify(requestJson), &apos;application\/json&apos;)\n        .post(&apos;https:\/\/api.openai.com\/v1\/images\/generations&apos;);\n\n    const responseCode = response.getStatusCode();\n    const responseBody = response.getResponseAsString();\n    if (responseCode !== 200) {\n        engine.log(responseBody);\n        throw new Error(`Failed to request. status: ${responseCode}`);\n    }\n    const responseJson = JSON.parse(responseBody);\n    const usage = responseJson.usage;\n    engine.log(`Input Tokens: ${usage.input_tokens}`);\n    engine.log(`Output Tokens: ${usage.output_tokens}`);\n    engine.log(`Total Tokens: ${usage.total_tokens}`);\n\n    const image = base64.decodeFromStringToByteArray(responseJson.data[0].b64_json);\n\n    let contentType = &quot;image\/png&quot;;\n    if (format !== undefined) {\n        contentType = `image\/${format}`;\n    }\n\n    return new com.questetra.bpms.core.event.scripttask.NewQfile(\n        fileName,\n        contentType,\n        image\n    );\n};\n\n\/**\n * \u30c7\u30fc\u30bf\u9805\u76ee\u3078\u306e\u4fdd\u5b58\n * @param configName\n * @param newFile\n *\/\nconst saveFileData = (configName, newFile) =&gt; {\n    const def = configs.getObject(configName);\n    if (def === null) {\n        return;\n    }\n    let files = engine.findData(def);\n    if (files === null) {\n        files = new java.util.ArrayList();\n    }\n    files.add(newFile);\n    engine.setData(def, files);\n};\n<\/code><\/pre><\/div>\n<\/div><\/details><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>This item generates an image using OpenAI&#8217;s model.<\/p>\n","protected":false},"author":17,"featured_media":149944,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":"","_uag_custom_page_level_css":"","advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_seo_schema_type":"","_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_wpcom_ai_launchpad_first_post":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"{title}\n\n{excerpt}\n\n{url}","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_wpas_customize_per_network":false,"jetpack_post_was_ever_published":false},"categories":[551],"tags":[3429],"class_list":["post-155326","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-bpmn-icons","tag-openai-api"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/08\/bpmn-icon-service-task-openai-chat.png?fit=1200%2C675&ssl=1","uagb_featured_image_src":{"full":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/08\/bpmn-icon-service-task-openai-chat.png?fit=1200%2C675&ssl=1",1200,675,false],"thumbnail":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/08\/bpmn-icon-service-task-openai-chat.png?resize=440%2C440&ssl=1",440,440,true],"medium":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/08\/bpmn-icon-service-task-openai-chat.png?fit=560%2C315&ssl=1",560,315,true],"medium_large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/08\/bpmn-icon-service-task-openai-chat.png?fit=768%2C432&ssl=1",768,432,true],"large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/08\/bpmn-icon-service-task-openai-chat.png?fit=1024%2C576&ssl=1",1024,576,true],"1536x1536":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/08\/bpmn-icon-service-task-openai-chat.png?fit=1200%2C675&ssl=1",1200,675,true],"2048x2048":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/08\/bpmn-icon-service-task-openai-chat.png?fit=1200%2C675&ssl=1",1200,675,true],"newspack-article-block-landscape-large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/08\/bpmn-icon-service-task-openai-chat.png?resize=1200%2C675&ssl=1",1200,675,true],"newspack-article-block-portrait-large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/08\/bpmn-icon-service-task-openai-chat.png?resize=900%2C675&ssl=1",900,675,true],"newspack-article-block-square-large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/08\/bpmn-icon-service-task-openai-chat.png?resize=1200%2C675&ssl=1",1200,675,true],"newspack-article-block-landscape-medium":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/08\/bpmn-icon-service-task-openai-chat.png?resize=800%2C600&ssl=1",800,600,true],"newspack-article-block-portrait-medium":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/08\/bpmn-icon-service-task-openai-chat.png?resize=600%2C675&ssl=1",600,675,true],"newspack-article-block-square-medium":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/08\/bpmn-icon-service-task-openai-chat.png?resize=800%2C675&ssl=1",800,675,true],"newspack-article-block-landscape-intermediate":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/08\/bpmn-icon-service-task-openai-chat.png?resize=600%2C450&ssl=1",600,450,true],"newspack-article-block-portrait-intermediate":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/08\/bpmn-icon-service-task-openai-chat.png?resize=450%2C600&ssl=1",450,600,true],"newspack-article-block-square-intermediate":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/08\/bpmn-icon-service-task-openai-chat.png?resize=600%2C600&ssl=1",600,600,true],"newspack-article-block-landscape-small":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/08\/bpmn-icon-service-task-openai-chat.png?resize=400%2C300&ssl=1",400,300,true],"newspack-article-block-portrait-small":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/08\/bpmn-icon-service-task-openai-chat.png?resize=300%2C400&ssl=1",300,400,true],"newspack-article-block-square-small":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/08\/bpmn-icon-service-task-openai-chat.png?resize=400%2C400&ssl=1",400,400,true],"newspack-article-block-landscape-tiny":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/08\/bpmn-icon-service-task-openai-chat.png?resize=200%2C150&ssl=1",200,150,true],"newspack-article-block-portrait-tiny":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/08\/bpmn-icon-service-task-openai-chat.png?resize=150%2C200&ssl=1",150,200,true],"newspack-article-block-square-tiny":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/08\/bpmn-icon-service-task-openai-chat.png?resize=200%2C200&ssl=1",200,200,true],"newspack-article-block-uncropped":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/08\/bpmn-icon-service-task-openai-chat.png?fit=1200%2C675&ssl=1",1200,675,true]},"uagb_author_info":{"display_name":"Shiho Tatsumi","author_link":"https:\/\/support.questetra.com\/en\/author\/tatsumi48c607ec82\/"},"uagb_comment_info":1,"uagb_excerpt":"This item generates an image using OpenAI's model.","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9DiIh-Epg","jetpack_likes_enabled":true,"jetpack-related-posts":[{"id":148436,"url":"https:\/\/support.questetra.com\/en\/templates\/ai-art-creation-process-20230713\/","url_meta":{"origin":155326,"position":0},"title":"AI Image Creation Process, OpenAI API DallE2","author":"IMAMURA, Genichi","date":"2023-07-25","format":false,"excerpt":"This is the process of creating AI art using image-generating AI. The person in charge (Prompter\/Arranger) repeatedly uses the OpenAI API (Dall-E 2) to complete the AI art (image file). The reviewer (Reviewer) ensures that the AI art does not (and will not) infringe the copyright of other companies.","rel":"","context":"In &quot;Workflow Apps&quot;","block_context":{"text":"Workflow Apps","link":"https:\/\/support.questetra.com\/en\/category\/templates\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/ai-art-creation-process-20230713-nocode-en.png?fit=960%2C540&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/ai-art-creation-process-20230713-nocode-en.png?fit=960%2C540&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/ai-art-creation-process-20230713-nocode-en.png?fit=960%2C540&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/ai-art-creation-process-20230713-nocode-en.png?fit=960%2C540&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":175598,"url":"https:\/\/support.questetra.com\/en\/developer-blog\/ai-service-comparison\/","url_meta":{"origin":155326,"position":1},"title":"Comparison and Utilization Guide for Generative AI Automation Items","author":"komatsuquestetra","date":"2025-09-08","format":false,"excerpt":"We will explain the features of AI Auto-steps and how to use them.","rel":"","context":"In &quot;Questetra Developers Blog&quot;","block_context":{"text":"Questetra Developers Blog","link":"https:\/\/support.questetra.com\/en\/category\/developer-blog\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2025\/08\/ai-service-comparison-v2.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2025\/08\/ai-service-comparison-v2.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2025\/08\/ai-service-comparison-v2.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2025\/08\/ai-service-comparison-v2.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2025\/08\/ai-service-comparison-v2.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":155334,"url":"https:\/\/support.questetra.com\/ja\/bpmn-icons\/service-task-openai-dalle-image-generate\/","url_meta":{"origin":155326,"position":2},"title":"OpenAI: \u753b\u50cf\u751f\u6210","author":"Shiho Tatsumi","date":"2026-07-07","format":false,"excerpt":"\u3053\u306e\u5de5\u7a0b\u306f\u3001OpenAI \u306e\u30e2\u30c7\u30eb\u3092\u7528\u3044\u3066\u3001\u753b\u50cf\u3092\u751f\u6210\u3057\u307e\u3059\u3002","rel":"","context":"In &quot;BPMN\u30a2\u30a4\u30b3\u30f3&quot;","block_context":{"text":"BPMN\u30a2\u30a4\u30b3\u30f3","link":"https:\/\/support.questetra.com\/ja\/category\/bpmn-icons\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/08\/bpmn-icon-service-task-openai-chat.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/08\/bpmn-icon-service-task-openai-chat.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/08\/bpmn-icon-service-task-openai-chat.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/08\/bpmn-icon-service-task-openai-chat.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/08\/bpmn-icon-service-task-openai-chat.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":149583,"url":"https:\/\/support.questetra.com\/en\/bpmn-icons\/service-task-openai-chatgpt-chat\/","url_meta":{"origin":155326,"position":3},"title":"OpenAI ChatGPT: Chat","author":"Shiho Tatsumi","date":"2026-07-07","format":false,"excerpt":"This item sends a message to OpenAI ChatGPT and stores the response in the specified data item.","rel":"","context":"In &quot;BPMN Icons&quot;","block_context":{"text":"BPMN Icons","link":"https:\/\/support.questetra.com\/en\/category\/bpmn-icons\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/08\/bpmn-icon-service-task-openai-chat.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/08\/bpmn-icon-service-task-openai-chat.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/08\/bpmn-icon-service-task-openai-chat.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/08\/bpmn-icon-service-task-openai-chat.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/08\/bpmn-icon-service-task-openai-chat.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":154220,"url":"https:\/\/support.questetra.com\/en\/addons\/openai-images-generate-202311\/","url_meta":{"origin":155326,"position":4},"title":"OpenAI #Images: Generate","author":"IMAMURA, Genichi","date":"2023-11-08","format":false,"excerpt":"Creates an image given a PROMPT text by the \"DALL-E 3 MODEL\" via OpenAI API. By default a 1024x1024 image is generated, but 1024x1792 or 1792x1024 are also available. Note that PROMPT must be defined within 4000 characters.","rel":"","context":"In &quot;Add-ons&quot;","block_context":{"text":"Add-ons","link":"https:\/\/support.questetra.com\/en\/category\/addons\/"},"img":{"alt_text":"OpenAI #Images: Generate","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/11\/openai-images-generate-202311-en.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/11\/openai-images-generate-202311-en.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/11\/openai-images-generate-202311-en.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/11\/openai-images-generate-202311-en.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/11\/openai-images-generate-202311-en.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":154206,"url":"https:\/\/support.questetra.com\/en\/addons\/openai-chat-answer-prompt-with-images-202311\/","url_meta":{"origin":155326,"position":5},"title":"OpenAI #Chat: Answer Prompt with Images","author":"IMAMURA, Genichi","date":"2023-11-07","format":false,"excerpt":"Creates a response for a prompt with images. MODEL (GPT-4 with Vision) takes in images and answers questions related to them, such as what the image represents, what is in the image, and more (eg. ideas for dinner based on what is in fridge).","rel":"","context":"In &quot;Add-ons&quot;","block_context":{"text":"Add-ons","link":"https:\/\/support.questetra.com\/en\/category\/addons\/"},"img":{"alt_text":"OpenAI #Chat: Answer Prompt with Images","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/11\/openai-chat-answer-prompt-with-images-202311-en.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/11\/openai-chat-answer-prompt-with-images-202311-en.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/11\/openai-chat-answer-prompt-with-images-202311-en.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/11\/openai-chat-answer-prompt-with-images-202311-en.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/11\/openai-chat-answer-prompt-with-images-202311-en.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]}],"amp_enabled":false,"_links":{"self":[{"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/posts\/155326","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/users\/17"}],"replies":[{"embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/comments?post=155326"}],"version-history":[{"count":10,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/posts\/155326\/revisions"}],"predecessor-version":[{"id":189232,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/posts\/155326\/revisions\/189232"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/media\/149944"}],"wp:attachment":[{"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/media?parent=155326"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/categories?post=155326"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/tags?post=155326"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}