{"id":461146,"date":"2025-05-27T15:00:08","date_gmt":"2025-05-27T15:00:08","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=461146"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=461146","title":{"rendered":"<span>\u0413\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u043a\u0430\u0440\u0442 \u0422\u0430\u0440\u043e \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 OpenAI \u043c\u043e\u0434\u0435\u043b\u0438 GPT-Image-1<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u042f \u0440\u0435\u0448\u0438\u043b \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u0443\u044e \u043a\u043e\u043b\u043e\u0434\u0443 \u043a\u0430\u0440\u0442 \u0422\u0430\u0440\u043e.\u00a0\u0417\u0430\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0438\u0445 \u0443 \u0444\u0440\u0438\u043b\u0430\u043d\u0441-\u0445\u0443\u0434\u043e\u0436\u043d\u0438\u043a\u043e\u0432 \u0434\u043e\u0440\u043e\u0433\u043e:\u00a0\u043a\u0430\u0436\u0434\u0430\u044f \u043a\u0430\u0440\u0442\u0430 \u0441\u0442\u043e\u0438\u0442 \u043e\u0442 5 USD,\u00a0\u0442\u0430\u043a \u0447\u0442\u043e \u0434\u043b\u044f \u043f\u043e\u043b\u043d\u043e\u0439 \u043a\u043e\u043b\u043e\u0434\u044b \u0438\u0437 78 \u043a\u0430\u0440\u0442 \u044d\u0442\u043e \u0432\u044b\u0445\u043e\u0434\u0438\u0442 390 USD.\u00a0\u041f\u0435\u0440\u0435\u0431\u0440\u0430\u0432 \u0440\u0430\u0437\u043d\u044b\u0435 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u044b \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439,\u00a0\u044f \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0441\u044f \u043d\u0430 \u043c\u043e\u0434\u0435\u043b\u0438 GPT-Image-1 \u043e\u0442 OpenAI,\u00a0\u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043e\u043d\u0430 \u0432\u044b\u0434\u0430\u0451\u0442 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u043e \u0438 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u043f\u0440\u043e\u0446\u0435\u043d\u0442 \u043e\u0448\u0438\u0431\u043e\u043a.\u00a0\u0412 \u0441\u0440\u0435\u0434\u043d\u0435\u043c \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u043e\u0434\u043d\u043e\u0439 \u043a\u0430\u0440\u0442\u044b \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u043e\u043a\u043e\u043b\u043e \u043c\u0438\u043d\u0443\u0442\u044b.\u00a0\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043e\u0434\u043d\u043e\u0439 \u043a\u043e\u043b\u043e\u0434\u044b \u043e\u0431\u043e\u0448\u043b\u043e\u0441\u044c \u043c\u043d\u0435 \u0432\u00a025 USD.\u00a0\u0412 \u0438\u0442\u043e\u0433\u0435 \u044f \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043b \u0442\u0440\u0438 \u043a\u043e\u043b\u043e\u0434\u044b \u0441 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u0441\u0442\u0438\u043b\u044f\u043c\u0438 \u0438 \u043f\u043e\u0442\u0440\u0430\u0442\u0438\u043b \u043d\u0430 \u044d\u0442\u043e \u0432 \u043e\u0431\u0449\u0435\u0439 \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u0438 75 USD. <\/p>\n<figure class=\"full-width\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/103\/015\/d66\/103015d6696c183742309b1a873b199e.png\" width=\"1307\" height=\"1090\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/103\/015\/d66\/103015d6696c183742309b1a873b199e.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/103\/015\/d66\/103015d6696c183742309b1a873b199e.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/figure>\n<p>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0437\u0434\u0435\u0441\u044c:\u00a0<a href=\"https:\/\/evgenyigumnov.github.io\/ai-tarot\" rel=\"noopener noreferrer nofollow\">https:\/\/evgenyigumnov.github.io\/ai-tarot<\/a>  <\/p>\n<p>\u041e\u043f\u0438\u0448\u0443 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f Python \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0434\u043b\u044f \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u043a\u0430\u0440\u0442 \u0422\u0430\u0440\u043e.\u00a0\u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u044f \u043e\u043f\u0438\u0441\u0430\u043b \u0432\u0441\u0435 \u043a\u0430\u0440\u0442\u044b \u0442\u0430\u0440\u043e \u0432\u043e\u0442 \u0432 \u0442\u0430\u043a\u043e\u043c \u043c\u0430\u0441\u0441\u0438\u0432\u0435: <\/p>\n<pre><code class=\"python\">CARDS = [   {     \"number\": 0,     \"name\": \"The Fool\",     \"description\": \"A youth with a knapsack on a staff stepping at the edge of a cliff, with a small dog beside him\",     \"meaning\": \"The beginning of a journey, spontaneity, freedom\"   },   {     \"number\": 1,     \"name\": \"The Magician\",     \"description\": \"A figure stands behind a table with symbols of the four elements, staff raised upwards\",     \"meaning\": \"Willpower, skill, manifestation of power\"   },   {     \"number\": 2,     \"name\": \"The High Priestess\",     \"description\": \"A woman sits between two pillars with a book on her lap, a crescent at her feet\",     \"meaning\": \"Intuition, hidden knowledge, sacred wisdom\"   },   ... ]<\/code><\/pre>\n<p>\u0414\u0430\u043b\u0435\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u0444\u0443\u043d\u043a\u0446\u0438\u044e,\u00a0\u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 OpenAI API \u0434\u043b\u044f \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u0442 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443 \u043d\u0430 \u0434\u0438\u0441\u043a:  <\/p>\n<pre><code class=\"python\">def generate_and_save(prompt: str, filepath: str):   if os.path.exists(filepath):     print(f\"File already exists: {filepath}\")     return   img = client.images.generate(     model=model,     prompt=prompt,     n=1,     size=\"1024x1536\",     quality=quality   )   image_bytes = base64.b64decode(img.data[0].b64_json)   with open(filepath, \"wb\") as f:     f.write(image_bytes)     print(f\"Created: {filepath}\")<\/code><\/pre>\n<p>\u0414\u043b\u044f \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438 \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b prompt \u0432 \u0432\u0438\u0434\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u043b \u0432 OpenAI API,\u00a0\u0433\u0434\u0435\u00a0style\u00a0&#8212;\u00a0\u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0441\u0442\u0438\u043b\u044f \u043a\u0430\u0440\u0442\u044b:  <\/p>\n<pre><code>    \"number\": {card[\"number\"]},     \"name\": \"{card[\"name\"]}\",     \"description\": \"{card[\"description\"]}\",     \"meaning\": \"{card[\"meaning\"]}\"      Background: Light     Write the card name: bottom center.     Write the card number: top center only for major arcana      Draw this tarot card in style: {style}  <\/code><\/pre>\n<p>\u0412\u043e\u0442 \u043f\u0440\u0438\u043c\u0435\u0440\u044b style:<\/p>\n<ul>\n<li>\n<p>Anime realistic style<\/p>\n<\/li>\n<li>\n<p>Anime futuristic style<\/p>\n<\/li>\n<li>\n<p>Digital painting in modern realistic style, modernity 2025, white skin, luxury, professional makeup. Natural lighting, with soft painterly textures, office places<\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u043e\u0442\u043e\u043c \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u0446\u0438\u043a\u043b \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0435\u0440\u0435\u0431\u0438\u0440\u0430\u0435\u0442 \u043a\u0430\u0440\u0442\u044b \u0432 \u043c\u0430\u0441\u0441\u0438\u0432\u0435 CARDS \u0438 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u043a\u0430\u0440\u0442\u044b \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443 \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u0442 \u043d\u0430 \u0434\u0438\u0441\u043a.\u00a0\u0412 \u0446\u0438\u043a\u043b\u0435 \u044f \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u044e \u043d\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u043b\u0438 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0430 \u043d\u0430 \u0434\u0438\u0441\u043a\u0435 \u0438 \u0435\u0441\u043b\u0438 \u0434\u0430 \u0442\u043e \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u0430\u044e \u0435\u0435,\u00a0\u0438\u043d\u0430\u0447\u0435 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u044e \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443 \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u044e \u043d\u0430 \u0434\u0438\u0441\u043a.<\/p>\n<pre><code class=\"python\">i = 0 for card in CARDS:     filepath = os.path.join(output_dir, f\"{i}.png\")      if os.path.exists(filepath):         print(f\"File already exists: {filepath}\")         i += 1         continue      number = f\"\"\"     \"number\": {card[\"number\"]},     \"\"\"     number_desc = \"Write the card number: top center only for major arcana\"     if i&gt;21:         number = \"\"         number_desc = \"\"     prompt = f\"\"\"     {number}     \"name\": \"{card[\"name\"]}\",     \"description\": \"{card[\"description\"]}\",     \"meaning\": \"{card[\"meaning\"]}\"      Background: Light     Write the card name: bottom center.     {number_desc}      Draw this tarot card in style: {style}        \"\"\"      print(prompt)     generate_and_save(prompt, filepath)     i += 1<\/code><\/pre>\n<p>\u0418\u0442\u043e\u0433\u043e\u0432\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442,\u00a0\u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043c\u043e\u0436\u043d\u043e \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u0430\u0440\u0442\u044b,\u00a0\u0432\u044b\u043b\u043e\u0436\u0435\u043d \u0432 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438:\u00a0<a href=\"https:\/\/github.com\/evgenyigumnov\/ai-tarot\" rel=\"noopener noreferrer nofollow\">https:\/\/github.com\/evgenyigumnov\/ai-tarot<\/a><\/p>\n<p>\u0415\u0441\u043b\u0438 \u043a\u0442\u043e-\u0442\u043e \u0437\u0430\u0445\u043e\u0447\u0435\u0442 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0441\u0432\u043e\u0438 \u043a\u0430\u0440\u0442\u044b \u0432 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438,\u00a0\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c pull request:\u00a0<a href=\"https:\/\/github.com\/evgenyigumnov\/ai-tarot\/pulls\" rel=\"noopener noreferrer nofollow\">https:\/\/github.com\/evgenyigumnov\/ai-tarot\/pulls<\/a><\/p>\n<p>\u0412\u0430\u0448\u0430 \u043a\u043e\u043b\u043e\u0434\u0430 \u0431\u0443\u0434\u0435\u0442 \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043d\u0430 \u043d\u0430 \u0441\u0430\u0439\u0442\u0435\u00a0<a href=\"https:\/\/evgenyigumnov.github.io\/ai-tarot\" rel=\"noopener noreferrer nofollow\">https:\/\/evgenyigumnov.github.io\/ai-tarot<\/a><\/p>\n<p>PS<\/p>\n<p>\u0423 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u0435\u0441\u0442\u044c \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u043a: \u043d\u0435\u0442 \u0435\u0434\u0438\u043d\u043e\u0433\u043e \u0441\u0442\u0438\u043b\u044f \u043a\u0430\u0440\u0442. \u042d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c, \u0434\u043e\u0431\u0430\u0432\u0438\u0432 \u0432 \u0437\u0430\u043f\u0440\u043e\u0441 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u00ab\u043f\u0443\u0441\u0442\u043e\u0439\u00bb \u043a\u0430\u0440\u0442\u044b \u043f\u043e\u043c\u0438\u043c\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0435\u0451 \u0432\u043d\u0435\u0448\u043d\u0435\u0433\u043e \u0432\u0438\u0434\u0430. \u0422\u043e\u0433\u0434\u0430 \u043d\u0430\u0434\u043f\u0438\u0441\u0438, \u0446\u0438\u0444\u0440\u044b \u0438 \u043e\u043a\u0430\u043d\u0442\u043e\u0432\u043a\u0438 \u0431\u0443\u0434\u0443\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u044b \u0432 \u043e\u0434\u043d\u043e\u043c \u0441\u0442\u0438\u043b\u0435. \u041d\u043e \u044d\u0442\u043e \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0442 \u0441\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u043a\u0430\u0436\u0434\u043e\u0439 \u043a\u0430\u0440\u0442\u044b. \u0412 \u043e\u0431\u0449\u0435\u043c, \u0435\u0441\u043b\u0438 \u043a\u043e\u043c\u0443 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u2014 \u043b\u0438\u0431\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0439\u0442\u0435 \u0441\u0430\u043c\u0438, \u043b\u0438\u0431\u043e \u043f\u0438\u0448\u0438\u0442\u0435 \u043c\u043d\u0435 \u0432 \u043b\u0438\u0447\u043a\u0443.<\/p>\n<p>\u0412\u043e\u0442 \u0434\u043b\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u0448\u0430\u0431\u043b\u043e\u043d \u043f\u0443\u0441\u0442\u043e\u0439 \u0434\u043b\u044f \u043a\u0430\u0440\u0442\u044b:<\/p>\n<figure class=\"full-width\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/fc2\/69a\/106\/fc269a106e86cebe7317011ab8dae604.png\" width=\"796\" height=\"1260\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/fc2\/69a\/106\/fc269a106e86cebe7317011ab8dae604.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/fc2\/69a\/106\/fc269a106e86cebe7317011ab8dae604.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/figure>\n<p>\u0412\u043e\u0442 \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 2 \u043a\u0430\u0440\u0442\u044b:<\/p>\n<figure class=\"full-width\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/cc2\/041\/e7c\/cc2041e7c5d41f877523208f31363592.png\" width=\"1028\" height=\"1562\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/cc2\/041\/e7c\/cc2041e7c5d41f877523208f31363592.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/cc2\/041\/e7c\/cc2041e7c5d41f877523208f31363592.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/figure>\n<figure class=\"full-width\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/d60\/f87\/61b\/d60f8761bdbcc0480c2e66a3d0ac1ae0.png\" width=\"1039\" height=\"1568\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/d60\/f87\/61b\/d60f8761bdbcc0480c2e66a3d0ac1ae0.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/d60\/f87\/61b\/d60f8761bdbcc0480c2e66a3d0ac1ae0.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/figure>\n<p>\u041f\u043e\u0447\u0442\u0438 \u0432 \u0441\u0442\u0438\u043b\u044c \u043f\u043e\u043f\u0430\u043b \ud83d\ude42<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/913142\/\"> https:\/\/habr.com\/ru\/articles\/913142\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u042f \u0440\u0435\u0448\u0438\u043b \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u0443\u044e \u043a\u043e\u043b\u043e\u0434\u0443 \u043a\u0430\u0440\u0442 \u0422\u0430\u0440\u043e.\u00a0\u0417\u0430\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0438\u0445 \u0443 \u0444\u0440\u0438\u043b\u0430\u043d\u0441-\u0445\u0443\u0434\u043e\u0436\u043d\u0438\u043a\u043e\u0432 \u0434\u043e\u0440\u043e\u0433\u043e:\u00a0\u043a\u0430\u0436\u0434\u0430\u044f \u043a\u0430\u0440\u0442\u0430 \u0441\u0442\u043e\u0438\u0442 \u043e\u0442 5 USD,\u00a0\u0442\u0430\u043a \u0447\u0442\u043e \u0434\u043b\u044f \u043f\u043e\u043b\u043d\u043e\u0439 \u043a\u043e\u043b\u043e\u0434\u044b \u0438\u0437 78 \u043a\u0430\u0440\u0442 \u044d\u0442\u043e \u0432\u044b\u0445\u043e\u0434\u0438\u0442 390 USD.\u00a0\u041f\u0435\u0440\u0435\u0431\u0440\u0430\u0432 \u0440\u0430\u0437\u043d\u044b\u0435 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u044b \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439,\u00a0\u044f \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0441\u044f \u043d\u0430 \u043c\u043e\u0434\u0435\u043b\u0438 GPT-Image-1 \u043e\u0442 OpenAI,\u00a0\u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043e\u043d\u0430 \u0432\u044b\u0434\u0430\u0451\u0442 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u043e \u0438 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u043f\u0440\u043e\u0446\u0435\u043d\u0442 \u043e\u0448\u0438\u0431\u043e\u043a.\u00a0\u0412 \u0441\u0440\u0435\u0434\u043d\u0435\u043c \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u043e\u0434\u043d\u043e\u0439 \u043a\u0430\u0440\u0442\u044b \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u043e\u043a\u043e\u043b\u043e \u043c\u0438\u043d\u0443\u0442\u044b.\u00a0\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043e\u0434\u043d\u043e\u0439 \u043a\u043e\u043b\u043e\u0434\u044b \u043e\u0431\u043e\u0448\u043b\u043e\u0441\u044c \u043c\u043d\u0435 \u0432\u00a025 USD.\u00a0\u0412 \u0438\u0442\u043e\u0433\u0435 \u044f \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043b \u0442\u0440\u0438 \u043a\u043e\u043b\u043e\u0434\u044b \u0441 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u0441\u0442\u0438\u043b\u044f\u043c\u0438 \u0438 \u043f\u043e\u0442\u0440\u0430\u0442\u0438\u043b \u043d\u0430 \u044d\u0442\u043e \u0432 \u043e\u0431\u0449\u0435\u0439 \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u0438 75 USD. <\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0437\u0434\u0435\u0441\u044c:\u00a0<a href=\"https:\/\/evgenyigumnov.github.io\/ai-tarot\" rel=\"noopener noreferrer nofollow\">https:\/\/evgenyigumnov.github.io\/ai-tarot<\/a>  <\/p>\n<p>\u041e\u043f\u0438\u0448\u0443 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f Python \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0434\u043b\u044f \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u043a\u0430\u0440\u0442 \u0422\u0430\u0440\u043e.\u00a0\u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u044f \u043e\u043f\u0438\u0441\u0430\u043b \u0432\u0441\u0435 \u043a\u0430\u0440\u0442\u044b \u0442\u0430\u0440\u043e \u0432\u043e\u0442 \u0432 \u0442\u0430\u043a\u043e\u043c \u043c\u0430\u0441\u0441\u0438\u0432\u0435: <\/p>\n<pre><code class=\"python\">CARDS = [   {     \"number\": 0,     \"name\": \"The Fool\",     \"description\": \"A youth with a knapsack on a staff stepping at the edge of a cliff, with a small dog beside him\",     \"meaning\": \"The beginning of a journey, spontaneity, freedom\"   },   {     \"number\": 1,     \"name\": \"The Magician\",     \"description\": \"A figure stands behind a table with symbols of the four elements, staff raised upwards\",     \"meaning\": \"Willpower, skill, manifestation of power\"   },   {     \"number\": 2,     \"name\": \"The High Priestess\",     \"description\": \"A woman sits between two pillars with a book on her lap, a crescent at her feet\",     \"meaning\": \"Intuition, hidden knowledge, sacred wisdom\"   },   ... ]<\/code><\/pre>\n<p>\u0414\u0430\u043b\u0435\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u0444\u0443\u043d\u043a\u0446\u0438\u044e,\u00a0\u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 OpenAI API \u0434\u043b\u044f \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u0442 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443 \u043d\u0430 \u0434\u0438\u0441\u043a:  <\/p>\n<pre><code class=\"python\">def generate_and_save(prompt: str, filepath: str):   if os.path.exists(filepath):     print(f\"File already exists: {filepath}\")     return   img = client.images.generate(     model=model,     prompt=prompt,     n=1,     size=\"1024x1536\",     quality=quality   )   image_bytes = base64.b64decode(img.data[0].b64_json)   with open(filepath, \"wb\") as f:     f.write(image_bytes)     print(f\"Created: {filepath}\")<\/code><\/pre>\n<p>\u0414\u043b\u044f \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438 \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b prompt \u0432 \u0432\u0438\u0434\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u043b \u0432 OpenAI API,\u00a0\u0433\u0434\u0435\u00a0style\u00a0&#8212;\u00a0\u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0441\u0442\u0438\u043b\u044f \u043a\u0430\u0440\u0442\u044b:  <\/p>\n<pre><code>    \"number\": {card[\"number\"]},     \"name\": \"{card[\"name\"]}\",     \"description\": \"{card[\"description\"]}\",     \"meaning\": \"{card[\"meaning\"]}\"      Background: Light     Write the card name: bottom center.     Write the card number: top center only for major arcana      Draw this tarot card in style: {style}  <\/code><\/pre>\n<p>\u0412\u043e\u0442 \u043f\u0440\u0438\u043c\u0435\u0440\u044b style:<\/p>\n<ul>\n<li>\n<p>Anime realistic style<\/p>\n<\/li>\n<li>\n<p>Anime futuristic style<\/p>\n<\/li>\n<li>\n<p>Digital painting in modern realistic style, modernity 2025, white skin, luxury, professional makeup. Natural lighting, with soft painterly textures, office places<\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u043e\u0442\u043e\u043c \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u0446\u0438\u043a\u043b \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0435\u0440\u0435\u0431\u0438\u0440\u0430\u0435\u0442 \u043a\u0430\u0440\u0442\u044b \u0432 \u043c\u0430\u0441\u0441\u0438\u0432\u0435 CARDS \u0438 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u043a\u0430\u0440\u0442\u044b \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443 \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u0442 \u043d\u0430 \u0434\u0438\u0441\u043a.\u00a0\u0412 \u0446\u0438\u043a\u043b\u0435 \u044f \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u044e \u043d\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u043b\u0438 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0430 \u043d\u0430 \u0434\u0438\u0441\u043a\u0435 \u0438 \u0435\u0441\u043b\u0438 \u0434\u0430 \u0442\u043e \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u0430\u044e \u0435\u0435,\u00a0\u0438\u043d\u0430\u0447\u0435 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u044e \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443 \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u044e \u043d\u0430 \u0434\u0438\u0441\u043a.<\/p>\n<pre><code class=\"python\">i = 0 for card in CARDS:     filepath = os.path.join(output_dir, f\"{i}.png\")      if os.path.exists(filepath):         print(f\"File already exists: {filepath}\")         i += 1         continue      number = f\"\"\"     \"number\": {card[\"number\"]},     \"\"\"     number_desc = \"Write the card number: top center only for major arcana\"     if i&gt;21:         number = \"\"         number_desc = \"\"     prompt = f\"\"\"     {number}     \"name\": \"{card[\"name\"]}\",     \"description\": \"{card[\"description\"]}\",     \"meaning\": \"{card[\"meaning\"]}\"      Background: Light     Write the card name: bottom center.     {number_desc}      Draw this tarot card in style: {style}        \"\"\"      print(prompt)     generate_and_save(prompt, filepath)     i += 1<\/code><\/pre>\n<p>\u0418\u0442\u043e\u0433\u043e\u0432\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442,\u00a0\u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043c\u043e\u0436\u043d\u043e \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u0430\u0440\u0442\u044b,\u00a0\u0432\u044b\u043b\u043e\u0436\u0435\u043d \u0432 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438:\u00a0<a href=\"https:\/\/github.com\/evgenyigumnov\/ai-tarot\" rel=\"noopener noreferrer nofollow\">https:\/\/github.com\/evgenyigumnov\/ai-tarot<\/a><\/p>\n<p>\u0415\u0441\u043b\u0438 \u043a\u0442\u043e-\u0442\u043e \u0437\u0430\u0445\u043e\u0447\u0435\u0442 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0441\u0432\u043e\u0438 \u043a\u0430\u0440\u0442\u044b \u0432 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438,\u00a0\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c pull request:\u00a0<a href=\"https:\/\/github.com\/evgenyigumnov\/ai-tarot\/pulls\" rel=\"noopener noreferrer nofollow\">https:\/\/github.com\/evgenyigumnov\/ai-tarot\/pulls<\/a><\/p>\n<p>\u0412\u0430\u0448\u0430 \u043a\u043e\u043b\u043e\u0434\u0430 \u0431\u0443\u0434\u0435\u0442 \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043d\u0430 \u043d\u0430 \u0441\u0430\u0439\u0442\u0435\u00a0<a href=\"https:\/\/evgenyigumnov.github.io\/ai-tarot\" rel=\"noopener noreferrer nofollow\">https:\/\/evgenyigumnov.github.io\/ai-tarot<\/a><\/p>\n<p>PS<\/p>\n<p>\u0423 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u0435\u0441\u0442\u044c \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u043a: \u043d\u0435\u0442 \u0435\u0434\u0438\u043d\u043e\u0433\u043e \u0441\u0442\u0438\u043b\u044f \u043a\u0430\u0440\u0442. \u042d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c, \u0434\u043e\u0431\u0430\u0432\u0438\u0432 \u0432 \u0437\u0430\u043f\u0440\u043e\u0441 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u00ab\u043f\u0443\u0441\u0442\u043e\u0439\u00bb \u043a\u0430\u0440\u0442\u044b \u043f\u043e\u043c\u0438\u043c\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0435\u0451 \u0432\u043d\u0435\u0448\u043d\u0435\u0433\u043e \u0432\u0438\u0434\u0430. \u0422\u043e\u0433\u0434\u0430 \u043d\u0430\u0434\u043f\u0438\u0441\u0438, \u0446\u0438\u0444\u0440\u044b \u0438 \u043e\u043a\u0430\u043d\u0442\u043e\u0432\u043a\u0438 \u0431\u0443\u0434\u0443\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u044b \u0432 \u043e\u0434\u043d\u043e\u043c \u0441\u0442\u0438\u043b\u0435. \u041d\u043e \u044d\u0442\u043e \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0442 \u0441\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u043a\u0430\u0436\u0434\u043e\u0439 \u043a\u0430\u0440\u0442\u044b. \u0412 \u043e\u0431\u0449\u0435\u043c, \u0435\u0441\u043b\u0438 \u043a\u043e\u043c\u0443 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u2014 \u043b\u0438\u0431\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0439\u0442\u0435 \u0441\u0430\u043c\u0438, \u043b\u0438\u0431\u043e \u043f\u0438\u0448\u0438\u0442\u0435 \u043c\u043d\u0435 \u0432 \u043b\u0438\u0447\u043a\u0443.<\/p>\n<p>\u0412\u043e\u0442 \u0434\u043b\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u0448\u0430\u0431\u043b\u043e\u043d \u043f\u0443\u0441\u0442\u043e\u0439 \u0434\u043b\u044f \u043a\u0430\u0440\u0442\u044b:<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u0412\u043e\u0442 \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 2 \u043a\u0430\u0440\u0442\u044b:<\/p>\n<figure class=\"full-width\"><\/figure>\n<figure class=\"full-width\"><\/figure>\n<p>\u041f\u043e\u0447\u0442\u0438 \u0432 \u0441\u0442\u0438\u043b\u044c \u043f\u043e\u043f\u0430\u043b \ud83d\ude42<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/913142\/\"> https:\/\/habr.com\/ru\/articles\/913142\/<\/a><br \/><\/br><\/br><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-461146","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/461146","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=461146"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/461146\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=461146"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=461146"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=461146"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}