ComfyUI Node
GPT4V-Image-Captioner
A ComfyUI node in Sanmi Nodes/GPT with 12 inputs and 2 outputs.
GPT4V-Image-Captioner
- image
- prompt
- full_prompt
◄api_key►
◄api_url►
◄seed1►
◄modelgpt-4o►
◄img_qualityauto►
◄timeout30►
◄enable_weightfalse►
◄weight1.0►
◄custom_promptAs an AI image tagging expert, please provide precise tags for these images to enhance CLIP model's understanding of the content. Employ succinct keywords or phrases, steering clear of elaborate sentences and extraneous conjunctions. Prioritize the tags by relevance. Your tags should capture key elements such as the main subject, setting, artistic style, composition, image quality, color tone, filter, and camera specifications, and any other tags crucial for the image. When tagging photos of people, include specific details like gender, nationality, attire, actions, pose, expressions, accessories, makeup, composition type, age, etc. For other image categories, apply appropriate and common descriptive tags as well. Recognize and tag any celebrities, well-known landmark or IPs if clearly featured in the image. Your tags should be accurate, non-duplicative, and within a 20-75 word count range. These tags will use for image re-creation, so the closer the resemblance to the original image, the better the tag quality. Tags should be comma-separated. Exceptional tagging will be rewarded with $10 per image.►
◄exclude_words►
◄add_words►
CategorySanmi Nodes/GPT
Inputs (12)
| Name | Type | Default | Description |
|---|---|---|---|
| api_key | STRING | 例如:sk-xxxx | |
| api_url | STRING | 例如:https://XXX/v1/chat/completions | |
| seed | INT | 11–18446744073709550000 | — |
| model | COMBO | gpt-4o | 4 options: gpt-4-vision-preview, gpt-4o, gpt-4o-ca, gpt-4-turbo |
| img_quality | COMBO | auto | 3 options: auto, high, low |
| timeout | INT | 301–999 | 设定超时时间,基于网络情况,必须提供足够的反应时间,过短会无法接受到返回的信息. |
| enable_weight | BOOLEAN | false | — |
| weight | FLOAT | 1.00–8.201 | — |
| custom_prompt | STRING | As an AI image tagging expert, please provide precise tags for these images to enhance CLIP model's understanding of the content. Employ succinct keywords or phrases, steering clear of elaborate sentences and extraneous conjunctions. Prioritize the tags by relevance. Your tags should capture key elements such as the main subject, setting, artistic style, composition, image quality, color tone, filter, and camera specifications, and any other tags crucial for the image. When tagging photos of people, include specific details like gender, nationality, attire, actions, pose, expressions, accessories, makeup, composition type, age, etc. For other image categories, apply appropriate and common descriptive tags as well. Recognize and tag any celebrities, well-known landmark or IPs if clearly featured in the image. Your tags should be accurate, non-duplicative, and within a 20-75 word count range. These tags will use for image re-creation, so the closer the resemblance to the original image, the better the tag quality. Tags should be comma-separated. Exceptional tagging will be rewarded with $10 per image. | — |
| exclude_words | STRING | — | |
| add_words | STRING | — | |
| image | IMAGE | — |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| prompt | STRING | — |
| full_prompt | STRING | — |