Nodes/ComfyUI-GPT4V-Image-Captioner/GPT4V-Image-Captioner
ComfyUI Node

GPT4V-Image-Captioner

A ComfyUI node in Sanmi Nodes/GPT with 12 inputs and 2 outputs.

By 438443467·Created 2 years ago·Updated about a year ago· 27
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)

NameTypeDefaultDescription
api_keySTRING例如:sk-xxxx
api_urlSTRING例如:https://XXX/v1/chat/completions
seedINT11–18446744073709550000
modelCOMBOgpt-4o4 options: gpt-4-vision-preview, gpt-4o, gpt-4o-ca, gpt-4-turbo
img_qualityCOMBOauto3 options: auto, high, low
timeoutINT301–999设定超时时间,基于网络情况,必须提供足够的反应时间,过短会无法接受到返回的信息.
enable_weightBOOLEANfalse
weightFLOAT1.00–8.201
custom_promptSTRINGAs 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_wordsSTRING
add_wordsSTRING
imageIMAGE

Outputs (2)

NameTypeDescription
promptSTRING
full_promptSTRING