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.
Loading actions...
Skill content
Main instructions and any bundled files for this skill.
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 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
from top to bottom: ChatGPT, GPT-4, GPT-4 32K | prompt: a landscape
GPT-4 | prompt: a social network mockup, mobile app, simple vector
GPT-4 | prompt: an illustration of a person
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
- Copy
chatgpt.inxandchatgpt.pyto your Inkscape extensions folder.
- The path to it can be found in Inkscape by going to Edit > Preferences > System, under User extensions.
- Get an OpenAI API key from here.
- 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
- 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
- The prompt is based on this comment on r/ChatGPT (and the post OP got the prompt from).
Related Skills
Frontend Typescript Linting.mdc
TypeScript and ESLint rules that MUST be followed when creating, modifying, or reviewing any file under apps/frontend/, including .ts, .tsx, .js, and .jsx files. Also apply when discussing frontend li...
2. Apply Deepthink Protocol (reason about dependencies
risks