99.9%
Uptime SLA
Access 50+ AI models through a single, unified API. Simple, powerful, and built for developers.
99.9%
Uptime SLA
<100ms
Avg Latency
50+
AI Models
10M+
API Calls/Day
Get started with just a few lines of code.
const response = await fetch('https://api.promptha.com/v1/generate/text', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
model: 'gpt-4o',
prompt: 'Write a product description for...',
maxTokens: 500
})
});
const data = await response.json();
console.log(data.text);import requests
response = requests.post(
'https://api.promptha.com/v1/generate/image',
headers={'Authorization': 'Bearer YOUR_API_KEY'},
json={
'model': 'flux-1.1-pro',
'prompt': 'A futuristic city at sunset',
'width': 1024,
'height': 1024
}
)
image_url = response.json()['url']Native libraries for your favorite language.
npm install @promptha/sdk
pip install promptha
go get github.com/promptha/go-sdk
gem install promptha
Everything you need to build AI-powered applications.
Choose between REST API or GraphQL based on your needs.
Get notified when generations complete with real-time webhooks.
Create multiple API keys with different permission scopes.
Built-in rate limiting with customizable quotas per key.
Low-latency access from anywhere with global infrastructure.
Track API usage, costs, and performance in real time.
See how developers use the API.
Add AI features to your app.
Build automated pipelines.
Resell AI capabilities.
Scale AI across your organization.
Get your API key and start building AI-powered applications.