Getting Started
Get up and running with itWrites APIs. This guide provides all the necessary steps to register, set up your account, and start integrating our advanced AI services into your applications.
Welcome to itWrites
Embark on your journey with itWrites, where advanced AI meets practical applications. Our APIs are tailored to empower developers and companies by providing cutting-edge tools across diverse industries, from fashion and real estate to legal and security services.
Step-by-Step Setup Guide
To utilize the itWrites API services, follow these straightforward steps to get started:
1. Sign Up
Start by creating your account. Register here by providing the necessary details to set up your user profile.
2. Create an Organization
Once your account is active, log in and go to the Organization Settings page. Here, create your organization which will help you manage your projects and API usage.
3. Generate an API Key
Navigate to the 'API Keys' section within your organization settings. Click 'Generate New API Key' and securely store this key; it is crucial for all your API requests and cannot be retrieved once lost.
Integrating itWrites APIs
Once your setup is complete, you are ready to integrate our APIs into your applications:
- Visit the Services Page to explore the available APIs.
- Select an API and review its documentation for specific integration guidelines and endpoint details.
- Ensure that your API key is included in the request header as shown in our examples.
Example: Using the Mannequin to Human Generator API
This Node.js example demonstrates calling the Mannequin to Human Generator API using the axios
library to send HTTP requests.
const axios = require('axios');
const apiKey = 'YOUR_API_KEY'; // Replace this with your actual API key
const apiUrl = 'https://beta.itwrites.ai/ai-fashion-models/mannequin-generator';
const imageBase64 = 'data:image/jpeg;base64,...'; // Your base64 image string
const maskImageBase64 = 'data:image/jpeg;base64,...'; // Your base64 mask image string
const headers = {
'Content-Type': 'application/json',
'x-itwrites-token': apiKey
};
const data = {
photo: imageBase64,
photo_mask: maskImageBase64
};
axios.post(apiUrl, data, { headers })
.then(response => {
console.log('API Call Successful:', response.data);
})
.catch(error => {
console.error('API Call Failed:', error.response.data);
});