Zero-friction setup
Point your base URL to QFOXAI. Keep your SDKs.
Use our API and Free Chat to ship features in hours, not weeks. Ideal for CRMs, SaaS, and internal tools — no servers to manage.
DepositController
with Stripe webhooks.Point your base URL to QFOXAI. Keep your SDKs.
Examples for Guzzle, Symfony HTTP, and raw cURL.
Team seats, usage insights, and robust controls.
Use the same SDKs and endpoints you already know. Just point base URL to QFOXAI.
Snippets and generators tailored for PHP ecosystems. Works great with Guzzle, Symfony HTTP, etc.
Let your team or clients explore instantly with our hosted chat interface.
API keys and prompts are encrypted at rest. No servers for you to manage.
Generate CRUD, refactor legacy PHP, get instant explanations and reviews.
From solo devs to teams, QFOXAI grows with your usage.
$ch = curl_init('https://api.qfoxai.com/v1/chat/completions');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Content-Type: application/json',
'Authorization: Bearer '.getenv('QFOXAI_API_KEY'),
],
CURLOPT_POSTFIELDS => json_encode([
'model' => 'qfox-coder-14b',
'messages' => [
['role' => 'system','content' => 'You are QFOXAI, expert PHP/Laravel assistant.'],
['role' => 'user','content' => 'Generate a Laravel controller for deposits.']
],
]),
]);
$body = json_decode(curl_exec($ch), true);
echo $body['choices'][0]['message']['content'] ?? 'error';
$client = new \GuzzleHttp\Client(['base_uri' => 'https://api.qfoxai.com']);
$res = $client->post('/v1/chat/completions', [
'headers' => [ 'Authorization' => 'Bearer '.config('services.qfoxai.key') ],
'json' => [
'model' => 'qfox-coder-14b',
'messages' => [
['role' => 'system','content' => 'You are QFOXAI, expert PHP/Laravel assistant.'],
['role' => 'user','content' => 'Draft a migration for transactions table.']
]
]
]);
$body = json_decode($res->getBody()->getContents(), true);
return $body['choices'][0]['message']['content'];
// config/services.php
'qfoxai' => [
'key' => env('QFOXAI_API_KEY'),
'base' => env('QFOXAI_BASE', 'https://api.qfoxai.com'),
],
// .env
QFOXAI_API_KEY=your_secret_key
QFOXAI_BASE=https://api.qfoxai.com
Feature | QFOXAI | Typical API |
---|---|---|
OpenAI-compatible | ✔ | △ |
Laravel/PHP snippets | ✔ | — |
Free hosted Chat | ✔ | — |
Logs & rate limiting | ✔ | △ |
Team seats | ✔ | △ |
Yes. Same auth header and schema. Update your base URL to https://api.qfoxai.com
and you’re set.
Absolutely. Use Guzzle or Symfony HTTP client; we provide drop-in snippets.
Prompts and responses are encrypted at rest. You control retention via settings (per team).
Spin up QFOXAI today — no servers, no hassle, just ship.