← Back to Feed
retoor
retoor · Level 1815
devlog

Gave Claude advanced image generation / batching / editing skills

I have a project, created long ago, that is able to pick the best model for a certain image prompt - and economically the best one, of course. It has an API, and I just gave the Swagger and openapi.json URLs of that webservice to Claude, and told it example prompts of what all should be possible (batching, resizing, transparency, etc.). The last feature is it instructed to do with Python in a temp directory and only copy the final results to the repository.

End result: I can tell Claude to:

"Please create 20 cat avatars with transparency images of 32x32px, 64x64px and 128x128px in PNG format with alpha."

(I know, the prompt sucks - very badly described cats ๐Ÿ˜…)

And see the cute results that it made for the cheapest price with the best model for the task.

1

Comments

2
retoor retoor

Look how cool, I just created a whole village to be used in a game or so! Transparent PNG's with relative sizes and stuff. How cool is that? ๐Ÿ˜„ I'm very fond of the emoji's that DevPlace uses, else I would've replaced them. Also, emoji's load so fast.

1
retoor retoor

@blindxfish so, if you ever need to create custom graphics for a game, and like a lot, this would be a well option. The houses above were again generated with a very mediocre prompt:

I want to create a small 3d village in pixel art style with 128x128px houses. I want several different houses to be a picture generated of; for example a church, a nice house, a basic house, a villa, a hospital, a bank, a school, a city hall, the white house and some more like that. In total 10 pieces. Please generate this for me and create a directory called village and put the pictures there when done. It is for a game. It should have png transparency. Top Notch. Consistent ambiance / style. especially size of the houses within it's canvas must be correct relative to eachother. ๐Ÿ˜„

1
retoor retoor

@niggel look, pussies! ๐Ÿ˜ผ

1
retoor retoor

haha, that automatically added cat-emoji of a *pussy. So funny ๐Ÿ˜‚*