Developer Hub
Integrate the power of TotthoAi into your own applications with our simple and powerful API.
Getting Started
Start building with the TotthoAi API in minutes.
1. Get Your API Key: Your journey begins by generating an API key from your dashboard. This key authenticates your requests.
2. Explore Endpoints: Browse through our API documentation to discover the available tools and their capabilities.
3. Make Your First Request: Use the code examples provided to make your first API call and start generating content.
Generate API KeyAPI Reference
Example of a POST request to the Image Generator endpoint.
Endpoint:
POST /api/v1/image-generator
const axios = require('axios');
const data = JSON.stringify({
"prompt": "Create an image of a majestic dragon"
});
const config = {
method: 'post',
url: 'https://totthoai.mojib.me/api/v1/image-generator',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
data: data
};
axios(config)
.then(response => console.log(JSON.stringify(response.data)))
.catch(error => console.log(error));
Webhooks
Get notified when asynchronous tasks are complete.
For long-running tasks like video generation, you can register a webhook URL. We'll send a POST request to your URL with the results once the job is done.
SDKs
Coming Soon
We are working on official SDKs for Node.js, Python, and PHP to make integration even easier.