Activate your AI API access
Select a quota, complete the checkout, and receive a one-time API key for the OpenAI-compatible endpoint.
30 day access
OpenAI-compatible
Usage tracking
Free Trial Key (Model: ai-chat)
Use this key for testing. Limited to 10,000 free tokens.
sk-ai-Gzetec3NaGf2GFWVXTuU15ve
How to use your API key
POST https://shapeshadows.tech/ai/v1/chat/completions
curl -X POST https://shapeshadows.tech/ai/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "ai-chat",
"messages": [
{"role": "user", "content": "Hello!"}
]
}'
$payload = [
'model' => 'ai-chat',
'messages' => [
['role' => 'user', 'content' => 'Hello!']
],
];
$ch = curl_init('https://shapeshadows.tech/ai/v1/chat/completions');
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer YOUR_API_KEY',
'Content-Type: application/json',
],
CURLOPT_POSTFIELDS => json_encode($payload, JSON_UNESCAPED_SLASHES),
CURLOPT_RETURNTRANSFER => true,
]);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
const response = await fetch('https://shapeshadows.tech/ai/v1/chat/completions', {
method: 'POST',
headers: {
Authorization: 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
model: 'ai-chat',
messages: [{ role: 'user', content: 'Hello!' }],
}),
});
const data = await response.json();
console.log(data);
curl -X POST https://shapeshadows.tech/ai/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "ai-chat",
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "Analyze this image. What can you see?"
},
{
"type": "image_url",
"image_url": {
"url": "data:image/jpeg;base64,PUT_BASE64_IMAGE_HERE"
}
}
]
}
]
}'
curl -X POST https://shapeshadows.tech/ai/v1/attachments \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "file=@receipt.jpg"
# Send the response.content array as a message content value:
curl -X POST https://shapeshadows.tech/ai/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "ai-chat",
"messages": [
{
"role": "user",
"content": [
{"type": "text", "text": "Summarize this attachment."}
]
}
]
}'
Payment
Secure checkout
PayMongo QR Ph
Selected plan
Your API key