# Fine tuned model API integration into Square Space website

**URL:** <https://discuss.huggingface.co/t/fine-tuned-model-api-integration-into-square-space-website/164513>\
**Category:** Beginners\
**Created:** [July 25, 2025, 4:08pm UTC](https://discuss.huggingface.co/t/fine-tuned-model-api-integration-into-square-space-website/164513 "2025-07-25T16:08:28Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](https://discuss.huggingface.co/u/John6666)\
**Post date:** [July 25, 2025, 11:12pm UTC](https://discuss.huggingface.co/t/fine-tuned-model-api-integration-into-square-space-website/164513/2 "2025-07-25T23:12:04Z")

</div>

I’m not very good at JavaScript and UI, so I’ll leave that to someone else…

For now, since [server-side implementation seems difficult with Squarespace](https://stackoverflow.com/questions/77875960/can-you-run-server-side-code-on-squarespace), it would be best to [leave traffic management and other tasks to CloudFlare as much as possible](https://developers.cloudflare.com/durable-objects/examples/build-a-rate-limiter/).

> 2

There is virtually no way to safely call the API from browser code on its own. [With Spaces, embedding on other pages is possible in Public setting](https://discuss.huggingface.co/t/getting-a-cors-error-when-embedding-the-my-private-space/142466), and token obfuscation is possible with proper implementation, but the endpoint itself does not appear to have such functionality. The only option seems to be setting up a minimal proxy somewhere and handling the processing there.

### Examples (Hugging Face Endpoint with CloudFlare)

> **[GitHub - blue-pen5805/llm-proxy-on-cloudflare-workers: Serverless proxy built on Cloudflare Workers that...](https://github.com/blue-pen5805/llm-proxy-on-cloudflare-workers)**
>
> Serverless proxy built on Cloudflare Workers that integrates with multiple Large Language Model (LLM) APIs

> **[GitHub - lopins/serverless-api-proxy: Multi-API Proxy Gateway Based on Vercel Routes,...](https://github.com/lopins/serverless-api-proxy)**
>
> Multi-API Proxy Gateway Based on Vercel Routes, Cloudflare Workers, and Netlify Redirects

> **[GitHub - BerriAI/litellm: Python SDK, Proxy Server (AI Gateway) to call 100+...](https://github.com/BerriAI/litellm)**
>
> Python SDK, Proxy Server (AI Gateway) to call 100+ LLM APIs in OpenAI (or native) format, with cost tracking, guardrails, loadbalancing and logging. \[Bedrock, Azure, OpenAI, VertexAI, Cohere, Anthropic, Sagemaker, HuggingFace, VLLM, NVIDIA NIM\]

---

_[View the full topic](https://discuss.huggingface.co/t/fine-tuned-model-api-integration-into-square-space-website/164513)._
