Prelabel with GPT
Overview
Draws object detection boxes on a dataset’s images with a GPT model, so labelers start from prelabels instead of empty images. The model looks for the dataset’s own classes, told either their names or shown a few labeled examples of each, and the boxes land in a new dataset next to the original images.
Run it beside Prelabel with Claude and Prelabel with Gemini on the same images, score each run with Compare prelabels with ground truth, and rank them with Compare prelabeling models. The badge shows how many images got boxes and how many failed.
Prerequisites
How it works
For Visual examples, cuts the largest labeled objects of each class out of Reference images, each with its box drawn in red, at most seven in all.
FAQ
Should I use class names or visual examples?
Class names work when the class is something the model already knows by name. Visual examples help with an unusual class, or a common word that means something specific in your data. Run the node once with each and compare both runs to decide.
What should go in Reference images?
A few hand-checked images where every class appears clearly. Keep them out of the dataset you prelabel: an image the model was shown as an example would score better than it should.
How many tiles should I use?
A model lists only so many objects in one answer and then stops, however many more the image holds. On crowded images, such as stacks of pipes or shelves of products, 3 x 3 tiles find several times more objects than the whole image does. On images with a handful of large objects, None finds the same boxes for a fraction of the tokens, and an object larger than a tile is cut between tiles.
Why are some images counted as failed?
The model returned an error, refused, or answered with something that wasn’t a list of boxes. A failed image gets no annotation and the run carries on with the rest. A missing or rejected API key, an unknown model, or running out of credits stops the whole run instead.
Why do the boxes carry no confidence?
A language model answers with boxes only, with no score for each one. Every box it returns is kept, so there is no threshold to tune and no precision-recall curve to read.
What happens when I run the node again?
The new boxes go into a new version of the same prelabel dataset, so earlier runs stay in its history.
What does a run cost?
Each tile is one request to OpenAI, billed by the tokens it takes, so 3 x 3 tiles cost several times what one request per image does. On OvalBee Cloud each request is charged to the workspace’s credits. The tokens of every image are saved on its annotation, and Compare prelabeling models adds them up per model.
Inputs
Images to pre-label. Its classes are what the model looks for. The images are left untouched here and copied, with the predicted boxes, into the node’s pre-label dataset. Key: DATASET.
GPT model that draws the boxes. It runs on the instance’s OpenAI API key, which an instance administrator adds under Admin, Configuration, Integrations. Key: LLM_MODEL.
Options:
- GPT-6.1 Sol (
gpt-6.1-sol) - GPT-6 Astra (
gpt-6-astra) - GPT-6 Luna (
gpt-6-luna) - GPT-5.6 Sol (
gpt-5.6-sol) - GPT-5.6 Terra (
gpt-5.6-terra) - GPT-5.6 Luna (
gpt-5.6-luna) - GPT-5.4 mini (
gpt-5.4-mini)
How the model is told what to look for. Visual examples also shows it labeled objects of each class, cut from Reference images, with every image. Key: PROMPT_MODE.
Options:
- Visual examples (
visual) - Class names (
text)
Labeled images the visual examples are cut from, the largest objects of each class first. Needed only for Visual examples. Key: REFERENCE_DATASET.
Cut each image into overlapping tiles and ask the model about each tile on its own. A model lists only so many objects in one answer, so tiles find far more on crowded images, at one request per tile. Key: TILE_GRID.
Options:
- None (
1) - 2 x 2 (
2) - 3 x 3 (
3)
Labeled objects of each class shown with every image. A request carries at most seven examples, shared out between the classes. Minimum: 1. Maximum: 7. Step: 1. Key: EXAMPLES_PER_CLASS.
Outputs
The node’s pre-label dataset, holding the input images with the model’s boxes as their annotations. Each annotation records the model, the prompt, the time and the tokens it took, which Compare prelabeling models reads. Key: OUTPUT_DATASET.
How many images got boxes, and how many failed. Shown on the node as a badge. Key: PRED_COUNT.
Models and configuration
Model picks the OpenAI model that draws the boxes; every option runs on the same instance key. Prompt decides what the model is told: Class names sends only the names of the dataset’s classes, and Visual examples also sends labeled objects of each class cut from Reference images. Examples per class sets how many objects of each class are sent, at most seven in all.
Models
- GPT-6.1 Sol (default)
- GPT-6 Astra
- GPT-6 Luna
- GPT-5.6 Sol
- GPT-5.6 Terra
- GPT-5.6 Luna
- GPT-5.4 mini
Runtime
Runs on a CPU worker. The model itself runs at OpenAI, reached through the instance’s LLM route, so the worker needs no GPU.
JSON config
Machine-readable node interface for automation and advanced usage.