As an alternative to creating a region-specific project, you can select regional processing for an individual request by using the prefixed…
OpenAI API Data Usage → · 2026-10-28T23:20:19.022Z
- 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21require "openai" + 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22require "openai" - response = client.with_options(data_residency: :eu).responses.create( model: "gpt-5.6-terra", input: "Reply with OK." ) puts(response.output_text) + # EU processing requires a key from an EU-region project. response = client.with_options(data_residency: :eu, api_key: ENV.fetch("OPENAI_EU_API_KEY"), organization: nil, project: nil).responses.create( model: "gpt-5.6-terra", input: "Reply with OK." ) puts(response.output_text)