# Assistants API (and more) Wrapper in Swift

**URL:** <https://community.openai.com/t/assistants-api-and-more-wrapper-in-swift/564379>\
**Category:** GPT builders\
**Tags:** swift, ios\
**Created:** [December 19, 2023, 8:00am UTC](https://community.openai.com/t/assistants-api-and-more-wrapper-in-swift/564379 "2023-12-19T08:00:23Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jamesrochabrun](https://avatars.discourse-cdn.com/v4/letter/j/d2c977/32.png) [@jamesrochabrun](https://community.openai.com/u/jamesrochabrun)\
**Post date:** [December 19, 2023, 8:00am UTC](https://community.openai.com/t/assistants-api-and-more-wrapper-in-swift/564379/1 "2023-12-19T08:00:23Z")

</div>

I was trying to find a Swift Wrapper that is updated and supports the latest endpoints of OpenAI, I was not able to find one so I created this [GitHub - jamesrochabrun/SwiftOpenAI: An open-source Swift package for interacting with OpenAI's public API.](https://github.com/jamesrochabrun/SwiftOpenAI)  
This library supports, Vision, TTS, Assistants API and even log probs in chat completions.

---

<div class="post-metadata">

**Author:** ![jamesrochabrun](https://avatars.discourse-cdn.com/v4/letter/j/d2c977/32.png) [@jamesrochabrun](https://community.openai.com/u/jamesrochabrun)\
**Post date:** [March 23, 2024, 4:57am UTC](https://community.openai.com/t/assistants-api-and-more-wrapper-in-swift/564379/2 "2024-03-23T04:57:22Z")

</div>

Now with stream support [Release Assistant API Stream · jamesrochabrun/SwiftOpenAI · GitHub](https://github.com/jamesrochabrun/SwiftOpenAI/releases/tag/2.0)

---

<div class="post-metadata">

**Author:** ![mattia.dacampo](https://avatars.discourse-cdn.com/v4/letter/m/919ad9/32.png) [@mattia.dacampo](https://community.openai.com/u/mattia.dacampo)\
**Post date:** [May 3, 2024, 10:26am UTC](https://community.openai.com/t/assistants-api-and-more-wrapper-in-swift/564379/3 "2024-05-03T10:26:20Z")

</div>

About to try it now! I’ve been trying to enable assistant streaming for a while now. Please save me!

---

<div class="post-metadata">

**Author:** ![s.yara.sultan](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/s.yara.sultan/32/147574_2.png) [@s.yara.sultan](https://community.openai.com/u/s.yara.sultan)\
**Post date:** [May 7, 2024, 2:14pm UTC](https://community.openai.com/t/assistants-api-and-more-wrapper-in-swift/564379/4 "2024-05-07T14:14:04Z")

</div>

can you contact me or make a youtube tutorial helping me to integrate my assistant api with swift? i can even pay if you want but i need it this week.

---

<div class="post-metadata">

**Author:** ![mattia.dacampo](https://avatars.discourse-cdn.com/v4/letter/m/919ad9/32.png) [@mattia.dacampo](https://community.openai.com/u/mattia.dacampo)\
**Post date:** [May 16, 2024, 3:04pm UTC](https://community.openai.com/t/assistants-api-and-more-wrapper-in-swift/564379/5 "2024-05-16T15:04:57Z")

</div>

I’ve implemented it. The only thing i’m missing is streaming.

---

<div class="post-metadata">

**Author:** ![josejaimefelixgarcia](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/josejaimefelixgarcia/32/481219_2.png) [@josejaimefelixgarcia](https://community.openai.com/u/josejaimefelixgarcia)\
**Post date:** [October 16, 2024, 2:02pm UTC](https://community.openai.com/t/assistants-api-and-more-wrapper-in-swift/564379/6 "2024-10-16T14:02:49Z")

</div>

Using the SwiftOpenAIExample, upon selecting “Configure Assistant”, I want to use my assistant that I have made. How do I use it?

---

<div class="post-metadata">

**Author:** ![jamesrochabrun](https://avatars.discourse-cdn.com/v4/letter/j/d2c977/32.png) [@jamesrochabrun](https://community.openai.com/u/jamesrochabrun)\
**Post date:** [October 20, 2024, 4:37am UTC](https://community.openai.com/t/assistants-api-and-more-wrapper-in-swift/564379/7 "2024-10-20T04:37:12Z")

</div>

if you use your api key you should be able to see your agent.
