Skip to main content

Overview

Most general AI chat apps connect to AI Sonar through the standard OpenAI-compatible chat path. In practice that means:
  • use https://api.aisonar.dev/v1 as the base URL unless the app explicitly asks for a full endpoint URL
  • use your AI Sonar API key as the OpenAI-style API key
  • pick models that the app can use in a standard chat workflow
General chat apps are usually chat-completions oriented, not Codex Responses WebSocket clients. For Codex CLI/App, Cursor, or other coding tools that need Responses-specific behavior, use the dedicated integration guides instead.
Type: Chat AppPrimary Path: OpenAI-compatible chat-completionsSupport Confidence: Supported path

Supported Applications

Default Connection Values

If an app asks for a full endpoint URL instead of a base URL, use:
  • Chat Completions: https://api.aisonar.dev/v1/chat/completions

Example App Setups

Self-hosted LobeChat
LobeChat Cloud
  1. Open SettingsAI Service Provider
  2. Select OpenAI
  3. Enter your AI Sonar API key
  4. Set the custom endpoint to https://api.aisonar.dev/v1

Safer Model Defaults

Tips

Most apps are easier to configure and less fragile when you provide https://api.aisonar.dev/v1 as a base URL instead of a full endpoint URL.
Start with gpt-5.4-mini or deepseek-v4-flash for everyday chat, then move heavier reasoning tasks to gpt-5.4 or claude-opus-4-8.
General chat apps and coding agents often need different endpoint behavior. Keep Codex/Cursor-style tools on their dedicated integration pages.

Troubleshooting

  • Verify the base URL is exactly https://api.aisonar.dev/v1
  • Remove trailing slashes if the app auto-appends paths
  • If the app wants a full endpoint URL, use https://api.aisonar.dev/v1/chat/completions
  • Double-check your API key
  • Confirm the key is active in AI Sonar dashboard
  • Make sure there are no extra spaces or line breaks
  • Verify the model name exactly
  • Try a widely supported default like gpt-5.4-mini, deepseek-v4-flash, or claude-sonnet-5
  • Check current availability in AI Sonar docs or dashboard