OpenAI-Compatible API
My AI tool only has settings for OpenAI, but I want to use DeepSeek. Can I just swap the Base URL and API Key?
My AI tool only has settings for OpenAI, but I want to use DeepSeek. Can I just swap the Base URL and API Key?
messages / inputSend the question and context, then receive a text answer.
basic formatThese formats come from different OpenAI API endpoints; compatibility only means a similar request shape, not that every service supports every capability.
The tool sends a familiar request: The tool sends a request with familiar paths and fields, so connecting to different model services looks similar.
The model service generates the result: The model service receives the request, processes it, and generates the answer. Different services may use different models and processing rules.
Check each capability separately: For example, a text-only model may accept an image field without being able to understand the image. Tool calls and streaming also need separate tests.
Check which OpenAI-compatible endpoints the tool and model service both support, then use non-sensitive requests to test ordinary chat and tool calling separately. Record the actual URL, status code, and missing capabilities without printing the real key.