YOLOv8 Classification is the image classification variant of the YOLOv8 model family from Ultralytics, released in January 2023. Unlike the primary YOLOv8 detection and segmentation models, which predict bounding boxes or pixel masks, YOLOv8 Classification predicts a single class label for a full input image, supporting standard single-label image classification tasks. It shares the YOLOv8 backbone architecture, including the C2f (Cross-Stage Partial with 2 convolutions) module, with the detection variants, making it straightforward to use within the same Ultralytics training and inference workflow as other YOLOv8 tasks.
YOLOv8 Classification is released at five sizes: YOLOv8n-cls (nano, 2.7M parameters), YOLOv8s-cls (small, 6.4M), YOLOv8m-cls (medium, 17.0M), YOLOv8l-cls (large, 37.5M), and YOLOv8x-cls (extra-large, 57.4M). These variants allow users to trade off accuracy against inference speed and memory footprint. Pretrained checkpoints are provided for ImageNet classification at 224 pixel resolution, and the model can be fine-tuned on custom datasets using the Ultralytics Python API or command-line tools. The model supports export to common deployment formats including ONNX, TensorRT, CoreML, and TensorFlow Lite. YOLOv8 Classification is distributed under the AGPL-3.0 license, with an Enterprise License available from Ultralytics for proprietary deployments. The YOLOv8 family has since been succeeded by YOLO11 (September 2024) and YOLO26 (January 2026), each of which includes equivalent classification variants.
Usage
Past 30 DaysNot available
Not in Playground
Not yet ranked in arena
Other models worth comparing for similar use cases.
YOLOv8 Classification is released under AGPL-3.0, the most restrictive of the common model licenses. AGPL-3.0 requires the user to open-source any code changes they make, including the code of any other projects that connect directly to the model, so the YOLOv8 Classification license usually means a separate commercial license for business use.
Serving YOLOv8 Classification behind an API or inside a hosted product counts: AGPL-3.0 reaches the code of other projects that connect directly to the model, which is what catches most commercial deployments by surprise.
Read the full AGPL-3.0 license ↗A commercial license is a separate license which gives you the right to use YOLOv8 Classification without an obligation to open-source related code changes. Roboflow plans include commercial licenses for the supported models listed on the licensing page, scoped by deployment method: Roboflow Managed Cloud on Public plans, a Self-Hosted Inference Server on Core, and deployment outside the Roboflow ecosystem on Enterprise.
Do not hesitate to reach out with questions for your commercial project — our team will help you start solving business problems on the first call. See Roboflow commercial licensing for the models included in each plan.
Talk to salesThis model is released under the GNU Affero General Public License v3.0 (AGPL-3.0), a strong copyleft license. Like GPL-3.0, derivative works must be released under the same license, and AGPL-3.0 extends this requirement to network deployment.
Commercial use is permitted under AGPL-3.0, but if you offer this model as part of a network service (such as a public API or web app), you must make the complete source code of your modified version available to all users of that service. Many commercial users prefer to acquire a separate license from the model authors to avoid this requirement.
AGPL-3.0 closes the "SaaS loophole" in GPL-3.0: even hosting the model behind an API counts as distribution and triggers the source-disclosure requirement.
To use YOLOv8 Classification in a commercial project without the AGPL-3.0 conditions, you need a commercial license. As a paid Roboflow customer, you're automatically granted commercial-use rights for YOLOv8 Classification models trained on or uploaded to our platform. See the Roboflow Licensing guide for the deployment-method by plan matrix.
If you're a free Roboflow customer, you can use YOLOv8 Classification through our serverless hosted API at no cost. Self-hosted commercial use requires a paid plan.
License information is provided as a guide and is not legal advice.