# Label Studio SDK

**URL:** https://community.labelstud.io/c/ls-sdk/13.md

[Latest](https://community.labelstud.io/latest.md) · [Categories](https://community.labelstud.io/categories.md) · [Tags](https://community.labelstud.io/tags.md)

---

## [Label Studio SDK](https://community.labelstud.io/t/label-studio-sdk/162)

<div class="topic-metadata">

**Author:** [@sajarin](https://community.labelstud.io/u/sajarin)\
**Replies:** 0

</div>

Discuss Label Studio SDK usage and development. Explore and share knowledge about integrating and utilizing the Label Studio SDK. Perfect for questions on implementation, troubleshooting SDK issues, and sharing tips. U…

---

## [How to enable \<Vector\> tags in Label Studio?](https://community.labelstud.io/t/how-to-enable-vector-tags-in-label-studio/654)

<div class="topic-metadata">

**Author:** [@Vedavyas\_Chowdary](https://community.labelstud.io/u/Vedavyas_Chowdary)\
**Replies:** 1\
**Last updated:** [November 13, 2025, 3:32pm UTC](https://community.labelstud.io/t/how-to-enable-vector-tags-in-label-studio/654 "2025-11-13T15:32:06Z")

</div>

Interface: \<View\> \<Image name="image" value="$image\_url" /\> \<Vector name="vec" toName="image" curves="true" closable="true" skeleton="true" strokeColor="#00FF00" strokeWidth="2" pointSize="medium" /\> \<Ve…

---

## [Create project via API with custom agreement metric](https://community.labelstud.io/t/create-project-via-api-with-custom-agreement-metric/652)

<div class="topic-metadata">

**Author:** [@ras](https://community.labelstud.io/u/ras)\
**Replies:** 2\
**Last updated:** [November 10, 2025, 2:03am UTC](https://community.labelstud.io/t/create-project-via-api-with-custom-agreement-metric/652 "2025-11-10T02:03:13Z")

</div>

I am using the Label Studio API to create projects, and I can configure all my settings directly from the API call except the custom agreement metric. Does anyone have any experience with this / any idea on how to achiev…

---

## [Persistent Label Studio API Connection Issue from Python - 401 "Invalid token" Error](https://community.labelstud.io/t/persistent-label-studio-api-connection-issue-from-python-401-invalid-token-error/599)

<div class="topic-metadata">

**Author:** [@Eliran\_Tzarfati](https://community.labelstud.io/u/Eliran_Tzarfati)\
**Replies:** 3\
**Last updated:** [September 16, 2025, 2:23pm UTC](https://community.labelstud.io/t/persistent-label-studio-api-connection-issue-from-python-401-invalid-token-error/599 "2025-09-16T14:23:46Z")

</div>

Hello everyone, I’m encountering a consistent issue when trying to connect to the Label Studio API from a Python script using the label-studio-sdk. I’m repeatedly getting a 401 Client Error: Unauthorized with the detail…

---

## [Using Label Studio to verify and modify OCR results](https://community.labelstud.io/t/using-label-studio-to-verify-and-modify-ocr-results/623)

<div class="topic-metadata">

**Author:** [@nadil](https://community.labelstud.io/u/nadil)\
**Replies:** 0\
**Last updated:** [August 21, 2025, 8:48am UTC](https://community.labelstud.io/t/using-label-studio-to-verify-and-modify-ocr-results/623 "2025-08-21T08:48:35Z")

</div>

Hello, I would like to know if it is possible to use Label Studio to verify my OCR results. Specifically, I want to import a scanned document with bounding boxes around each extracted field, allowing us to select and mod…

---

## [Exporting images and annotations using SDK](https://community.labelstud.io/t/exporting-images-and-annotations-using-sdk/233)

<div class="topic-metadata">

**Author:** [@ras](https://community.labelstud.io/u/ras)\
**Replies:** 7\
**Last updated:** [March 5, 2025, 3:01am UTC](https://community.labelstud.io/t/exporting-images-and-annotations-using-sdk/233 "2025-03-05T03:01:09Z")

</div>

Hi! I am trying to export my annotations through the SDK in the YOLO format. However, It does not export the images. I want the SDK to export images as well as the annotations. Can anyone help me?

---

## [Need help in debugging ML Backend automatization](https://community.labelstud.io/t/need-help-in-debugging-ml-backend-automatization/411)

<div class="topic-metadata">

**Author:** [@Anton\_Ziuhan](https://community.labelstud.io/u/Anton_Ziuhan)\
**Replies:** 0\
**Last updated:** [November 16, 2024, 9:34pm UTC](https://community.labelstud.io/t/need-help-in-debugging-ml-backend-automatization/411 "2024-11-16T21:34:32Z")

</div>

I implemented the code according to the documentation. After launching everything works in principle, but there are some problems with integration and loading predictions back to the studio. Error : ml-backend | \[2024-1…

---

## [Exporting Annotations directly to S3](https://community.labelstud.io/t/exporting-annotations-directly-to-s3/403)

<div class="topic-metadata">

**Author:** [@ras](https://community.labelstud.io/u/ras)\
**Replies:** 0\
**Last updated:** [November 8, 2024, 4:08am UTC](https://community.labelstud.io/t/exporting-annotations-directly-to-s3/403 "2024-11-08T04:08:24Z")

</div>

Hi, I have written a script to use the Label Studio SDK to export annotations into JSON format then use the convert\_to\_yolo function to convert the annotations into YOLO. I need to export these annotations directly int…

---

## [Gliner annotations input format help](https://community.labelstud.io/t/gliner-annotations-input-format-help/366)

<div class="topic-metadata">

**Author:** [@Garv](https://community.labelstud.io/u/Garv)\
**Replies:** 0\
**Last updated:** [October 2, 2024, 11:10pm UTC](https://community.labelstud.io/t/gliner-annotations-input-format-help/366 "2024-10-02T23:10:50Z")

</div>

Gliner model.py file takes into input labelled tasks for fine-tuning, however label studios output format does not include text tokens , but gliner requires tokens and labels as input for fine-tuning. How can I modify my…

---

## [Could Someone Give me Advice on Integrating Custom Label Types in Label Studio?](https://community.labelstud.io/t/could-someone-give-me-advice-on-integrating-custom-label-types-in-label-studio/306)

<div class="topic-metadata">

**Author:** [@besosseno](https://community.labelstud.io/u/besosseno)\
**Replies:** 1\
**Last updated:** [August 15, 2024, 1:51pm UTC](https://community.labelstud.io/t/could-someone-give-me-advice-on-integrating-custom-label-types-in-label-studio/306 "2024-08-15T13:51:51Z")

</div>

Hello there, I am working on a project where I need to incorporate custom label types into Label Studio. I have successfully set up basic labels for text classification tasks; but now I am looking to extend this by inte…

---

## [Unable to sync local storage (APIError)](https://community.labelstud.io/t/unable-to-sync-local-storage-apierror/275)

<div class="topic-metadata">

**Author:** [@Dang\_Ho](https://community.labelstud.io/u/Dang_Ho)\
**Replies:** 1\
**Last updated:** [July 10, 2024, 9:22am UTC](https://community.labelstud.io/t/unable-to-sync-local-storage-apierror/275 "2024-07-10T09:22:50Z")

</div>

from label\_studio\_sdk.client import LabelStudio a = LabelStudio(api\_key = "xxx") a.import\_storage.local.sync(id=1) I tried to use the above function to sync the local storage to Label Studio, but it returned this error …

---

## [Project.update\_annotations()](https://community.labelstud.io/t/project-update-annotations/261)

<div class="topic-metadata">

**Author:** [@ras](https://community.labelstud.io/u/ras)\
**Replies:** 1\
**Last updated:** [June 28, 2024, 2:29am UTC](https://community.labelstud.io/t/project-update-annotations/261 "2024-06-28T02:29:36Z")

</div>

Hi, I want to use the update\_annotation function to update the ‘polygonlabels’ value in my annotations. From what I can tell this value is under annotations \> result \> values \> polygonlabels. I want to change the value…

---

## [Create Filter - annotation\_results](https://community.labelstud.io/t/create-filter-annotation-results/240)

<div class="topic-metadata">

**Author:** [@ras](https://community.labelstud.io/u/ras)\
**Replies:** 3\
**Last updated:** [June 12, 2024, 12:43am UTC](https://community.labelstud.io/t/create-filter-annotation-results/240 "2024-06-12T00:43:51Z")

</div>

Hi, I want to create a filter using the sdk to filter out images where the ‘annotation\_results’ column is a an empty dictionary. I tried to do so with the following code but it does not seem to work: filters = Filters.…

---

## [Exporting Combined Annotation Arrays and Mapping Task IDs to Image Names in Label Studio](https://community.labelstud.io/t/exporting-combined-annotation-arrays-and-mapping-task-ids-to-image-names-in-label-studio/174)

<div class="topic-metadata">

**Author:** [@sajarin](https://community.labelstud.io/u/sajarin)\
**Replies:** 1\
**Last updated:** [May 10, 2024, 6:46pm UTC](https://community.labelstud.io/t/exporting-combined-annotation-arrays-and-mapping-task-ids-to-image-names-in-label-studio/174 "2024-05-10T18:46:04Z")

</div>

Question Is there a way within Label Studio to export a single annotation array for each task when using tools like the brush and magic wand? Answer: Label Studio does not natively provide a feature to automatically c…

---

## [Displaying Only Label Values in Data Manager of Annotation Tool](https://community.labelstud.io/t/displaying-only-label-values-in-data-manager-of-annotation-tool/170)

<div class="topic-metadata">

**Author:** [@sajarin](https://community.labelstud.io/u/sajarin)\
**Replies:** 0\
**Last updated:** [May 10, 2024, 6:23pm UTC](https://community.labelstud.io/t/displaying-only-label-values-in-data-manager-of-annotation-tool/170 "2024-05-10T18:23:22Z")

</div>

Question: In the data manager of our annotation tool, the annotation results display the entire content of the result including metadata. I am interested in finding a way to show only the label values, regardless of the…
