image-gen-server

image-gen-server

149

Image-Gen-Server is a tool designed for seamless integration with Cursor IDE, allowing users to generate and manage images based on text descriptions. Key features include text-to-image conversion, automatic saving, and custom save paths, making it highly functional for developers using the Cursor environment.

What should I do if the black window disappears quickly after configuration?

Ensure the command is correct, check the server.py path, and verify that the environment dependencies are properly set up. Try different terminal environments if necessary.

How can I view logs or debug the server?

Change the command to uv run --with fastmcp fastmcp dev D:/code/image-gen-service/server.py or use fastmcp dev D:/code/image-gen-service/server.py in a terminal to enter debug mode.

How do I obtain the Jimeng API token?

Visit the Jimeng website, log in, open developer tools, and find the sessionid in Application > Cookies. Set this sessionid in the server.py file.

What are the system requirements for running Image-Gen-Server?

Ensure you have Python 3.10+, npm, and Node.js (version 20 recommended) installed. Also, install the necessary Python and Node.js packages as specified in the setup instructions.

Can I customize the image generation settings?

Yes, you can customize settings such as image width, height, and sample strength in the generate_image function within the server code.