All integrations

PHP OpenAI clients with Meridian

Route any OpenAI-compatible PHP client through Meridian by swapping the base URI. Drop-in replacement — no SDK fork required.

INSTALLopenai-php/client
composer require openai-php/client
CONFIGUREMeridian endpoint
$client = OpenAI::factory()
    ->withApiKey('meridian-xxxxxxxx')
    ->withBaseUri('https://api.meridian.gateway/v1')
    ->make();
USAGEchat completions
$result = $client->chat()->create([
    'model' => 'gpt-4o',
    'messages' => [
        ['role' => 'user', 'content' => 'Hello!'],
    ],
]);

echo $result->choices[0]->message->content;

All requests are encrypted in transit. Your API key never touches the upstream provider.