Generate high-quality AI content programmatically with our Enterprise API
Visit your Settings page and purchase Enterprise API credits. Choose from Starter (1,000 credits) or Professional (2,000 credits) plans.
In your Settings page, scroll to the "Enterprise API" section and click "Generate API Key". Store it securely - you won't be able to see it again!
Use your API key in the Authorization header to start generating content. Each generation costs 1 credit.
All API requests must include your API key in the Authorization header using the Bearer token format:
Authorization: Bearer mk_your_api_key_hereenterpriseGeneratePostGenerate high-quality blog posts, articles, or any written content using AI.
prompttonelengthcurl -X POST https://us-central1-make-it-write-5c378.cloudfunctions.net/enterpriseGeneratePost \
-H "Authorization: Bearer mk_your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"prompt": "Write a blog post about the future of AI",
"tone": "professional",
"length": 500
}'const response = await fetch(
'https://us-central1-make-it-write-5c378.cloudfunctions.net/enterpriseGeneratePost',
{
method: 'POST',
headers: {
'Authorization': 'Bearer mk_your_api_key_here',
'Content-Type': 'application/json'
},
body: JSON.stringify({
prompt: 'Write a blog post about the future of AI',
tone: 'professional',
length: 500
})
}
);
const data = await response.json();
console.log(data.content);
console.log('Credits remaining:', data.creditsRemaining);import requests
url = "https://us-central1-make-it-write-5c378.cloudfunctions.net/enterpriseGeneratePost"
headers = {
"Authorization": "Bearer mk_your_api_key_here",
"Content-Type": "application/json"
}
data = {
"prompt": "Write a blog post about the future of AI",
"tone": "professional",
"length": 500
}
response = requests.post(url, headers=headers, json=data)
result = response.json()
print(result['content'])
print(f"Credits remaining: {result['creditsRemaining']}"){
"success": true,
"content": "The Future of AI: A Transformative Journey\n\nArtificial Intelligence...",
"creditsRemaining": 999,
"responseTime": 1234
}{
"error": "Insufficient credits. Need 1, have 0",
"message": "Please purchase more Enterprise API credits to continue."
}enterpriseCheckCreditsCheck your remaining API credits without consuming any.
curl -X GET https://us-central1-make-it-write-5c378.cloudfunctions.net/enterpriseCheckCredits \ -H "Authorization: Bearer mk_your_api_key_here"{
"success": true,
"credits": 1000,
"plan": "Enterprise Starter"
}Invalid or missing API key
Insufficient credits. Purchase more to continue.
Something went wrong on our end. Please try again.
Never expose your API key in client-side code, public repositories, or logs. Use environment variables and keep keys server-side only.
Use the Check Credits endpoint to monitor your balance. Set up alerts when credits drop below a threshold.
The more specific your prompt, the better the output. Include tone, length, and any specific requirements.
Check your API usage history in the Settings page to understand your consumption patterns.
Have questions or need support? We're here to help!