Skip to main content
Tatiana Kunakina
New Member
Oct 30, 2026 6:02 PM UTC
Question

Figma Make Preview: HTTP 520 when calling OpenAI API from server-side backend

Hello,

I am developing an academic wellbeing application using Figma Make Preview with a Next.js/Payload backend.

I have configured an OpenAI API key as a sensitive environment variable and implemented a server-side integration with the OpenAI Responses API.

However, requests to https://api.openai.com/v1/responses return HTTP 520 Server Error.

Diagnostic findings:

  • One isolated diagnostic request was performed using synthetic data.

  • The request was sent server-side with store: false.

  • The response status was HTTP 520.

  • No recognizable OpenAI response headers were returned, including x-request-id, openai-processing-ms, and openai-version.

  • No valid AI response was received.

  • The selected model, gpt-4.1-mini, supports the Responses API and structured outputs.

  • No user data was modified during testing.

This may indicate a problem with the Figma Make Preview outbound proxy or network egress layer.

My questions:

  1. Are server-side HTTPS requests to api.openai.com supported in Figma Make Preview?

  2. Does Preview use an outbound proxy or allowlist that could cause HTTP 520?

  3. Are there any known restrictions or issues affecting OpenAI API requests from Preview?

  4. Is there a recommended way to integrate an external LLM into a Figma Make application without publishing it?

I would appreciate your guidance.

Thank you!

1 reply

adamsmasher
Figmate
Figmate
Oct 31, 2026 5:14 PM UTC

Thanks for your post, ​@Tatiana Kunakina - easy to see why you’d like this to work with the preview so you don’t need to publish to test.

 

I’m going to check with the team to see what your options are for this, and whether this is something we can support. I’m not aware of a specific restriction for OpenAI, so I think it’s more of a general need to whitelist domains in Figma Make. 

 

In the meantime, could you let me know if the response body contains Origin is disallowed?