OpenAI-compatible chat completions
Creates a chat completion using the OpenAI wire format, proxying to the selected provider with credentials resolved on the server (secret store first, environment second) — callers never handle provider API keys. Model must be '{provider}:{model_name}' for a built-in provider (one of anthropic, aws, azure_openai, cerebras, deepseek, fireworks, google, groq, moonshot, ollama, openai, perplexity, together, xai) or 'custom:{provider_id}:{model_name}' for a stored custom provider, e.g. 'openai:gpt-4o' or 'anthropic:claude-sonnet-4-5'. Set stream: true for server-sent events of chat.completion.chunk payloads terminated by data: [DONE]. Tool calling is not supported.
Phoenix is not an AI gateway. The same server also takes on trace ingestion traffic, so routing production LLM calls through it competes with ingestion. Use this endpoint only to quickly try out different models in non-production environments.
Request body
Example request
{
"messages": [
{
"content": "You are a helpful assistant.",
"role": "system"
},
{
"content": "Say hello.",
"role": "user"
}
],
"model": "openai:gpt-4o"
}Response
Successful Response