Welcome to Nextcraftai! This guide will help you get up and running with our API in just a few minutes.
Sign up for a free account and get access to a 7-day trial with starter plan features.
Navigate to your dashboard and create a new API key. Keep it secure!
Use the example code below to send your first API request. Replace YOUR_API_KEY with your actual key.
Try this example to make your first API call.
curl -X POST https://api.nextcraftai.com/v1/chat \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "google/gemini-2.5-flash",
"messages": [
{
"role": "user",
"prompt": "Hello, world!"
}
]
}'Replace YOUR_API_KEY with your actual API key. Learn more about authentication and endpoints.