OpenAI & Claude Configuration
Integrate OpenAI’s GPT-4o and Anthropic’s Claude 3.5 Sonnet into your editor workflow
For developers who already have active subscriptions or credits with OpenAI or Anthropic, AI Level Scatter supports full integration with these services. Both platforms offer top-tier layout calculations and design advice.
OpenAI Configuration
1. Retrieve API Credentials
- Go to the OpenAI Developer Platform.
- Navigate to the API Keys tab and click Create new secret key.
- Copy the secret key (it begins with
sk-).
2. Enter Credentials in Unity
- Select Tools → Decnet → AI Settings Manager.
- Change the Active Provider to OpenAI.
- Paste the key into the API Key input field.
- Select the model name:
gpt-4o: Best overall layout generator.gpt-4o-mini: High-speed, cost-effective generation.
- Click Test Connection to verify connection to
https://api.openai.com/v1/chat/completions.
Anthropic Claude Configuration
1. Retrieve API Credentials
- Go to the Anthropic Console.
- Navigate to API Keys and generate a new key (begins with
sk-ant-).
2. Enter Credentials in Unity
- In the AI Settings Manager, set Active Provider to Anthropic Claude.
- Paste the key into the API Key field.
- Select your model:
claude-3-5-sonnet-latest: Recommended for its extreme precision in spatial layout rules and design feedback.claude-3-haiku-latest: Fast response times for quick scatters.
- Click Test Connection to ping
https://api.anthropic.com/v1/messages.
API Comparison
| Feature | Google Gemini | OpenAI | Anthropic Claude |
|---|---|---|---|
| Response Latency | Low ($100-300\text{ms}$) | Medium ($300-600\text{ms}$) | Medium ($400-700\text{ms}$) |
| JSON Consistency | Excellent (Native) | Excellent (JSON Mode) | Good (Schema via system prompt) |
| Setup Overhead | Extremely Easy | Moderate | Moderate |
| Free Tier Available | Yes | No (Developer Credits) | No (Developer Credits) |
Custom API Endpoints (Proxies)
If you use a proxy server or custom endpoint to route your API calls:
- Enable the Use Custom Endpoint checkbox in the AI Settings Manager.
- Enter your custom base URL (e.g.
https://my-custom-proxy.dev/v1/chat/completions). - Ensure your proxy correctly passes the authorization headers and forwards payload structures without modifying JSON properties.
[!WARNING] Do not use untrusted proxy endpoints. Standard API requests contain your private developer keys, which could be captured by malicious intermediate servers.
[!TIP] If your company restricts external network access in the corporate firewall, look into setting up a local offline proxy or switching to the Local Offline Ollama setup to keep all data local.