This repository is now discontinued

The code will remain available, but I won't support it anymore. Please support real artists, especially in hard times, instead of using AI to create art.

Views1
PublishedJan 14, 2026

Loading actions...

5 minBeginnerpromptSingle file

Skill content

Main instructions and any bundled files for this skill.

markdown

This repository is now discontinued

The code will remain available, but I won't support it anymore. Please support real artists, especially in hard times, instead of using AI to create art.

ChatGPT in Inkscape

Logo - the letters 'CGI' written in a circle

(logo generated by GPT-4 with the prompt "a simple logo for the "ChatGPT in Inkscape" project"

Just like the name suggests, this is an Inkscape extension for requesting images from ChatGPT or GPT-4, using the OpenAI API.

It works by asking the AI to generate an SVG, then importing it.

Examples

3 simple landscapes

from top to bottom: ChatGPT, GPT-4, GPT-4 32K | prompt: a landscape

List of gray circles and squares on a light gray background

GPT-4 | prompt: a social network mockup, mobile app, simple vector

Simple illustration of a human

GPT-4 | prompt: an illustration of a person

Simple illustration of a human

ChatGPT | prompt: a smiley face with hearts for eyes

Download

To download a stable version, go to the Releases page and click on "Source code (.zip)".

To download the in-development version, click the Download icon, then "zip".

Installation

  1. Copy chatgpt.inx and chatgpt.py to your Inkscape extensions folder.
  • The path to it can be found in Inkscape by going to Edit > Preferences > System, under User extensions.
  1. Get an OpenAI API key from here.
  2. Add your API key to chatgpt.py:
# find the line with:
OPENAI_API_KEY = "(Enter your API key here)"
# and replace (Enter your API key here) with your API key
  1. Open Inkscape. The extension should be available in Extensions > AI > ChatGPT.

Notes

  • To use GPT-4 you must have API access; having a ChatGPT Plus subscription is not enough.
  • As these models are not meant for art, this extension can only generate simpler images. Asking for anything complex, like landscapes, will result in the AI recommending you use another program and the script crashing. For that reason, you can add "simple" to your prompt for anything complex.

So no, this thing can't replace a graphic designer.

  • Inkscape might appear to freeze, which is normal as the script is making a request to OpenAI. I'll optimize this in a future update.
  • Live Preview is untested. It's advised not to use it with this extension as it will waste credits on generating partial prompts and might cause Inkscape to crash.

Acknowledgements

Share: