API For AI Tattoo
December 10, 2024Less than 1 minute
API For AI Tattoo
AI Tattoo Describe
Welcome to the AI Tattoo Generator, where you can customize your own tattoo design. Simply provide your ideas, preferences, or inspirations, and it will generate a tattoo image that matches your vision.
Considerations
- Before using the API, make sure you have obtained the API key. Refer to the link below for instructions on how to obtain it. API For API Key Settings
- All generated images will be automatically deleted after 24 hours. Please make sure to save the images you need to your local storage in a timely manner.
Credits Consumption
Each time consumes 3 credits.
Header Attributes
Parameter | Description |
---|---|
Authorization | Your API Key used for request authorization. |
Create Job
Request Url
--request POST https://developer.remaker.ai/api/remaker/v2/ai-tattoo/create-job
Body Attributes
Parameter | Type | Required | Description |
---|---|---|---|
prompt | string | true | Text for generating tattoos |
demo
import requests
url = "https://developer.remaker.ai/api/remaker/v2/ai-tattoo/create-job"
headers = {
'accept': 'application/json',
'Authorization': 'your token',
}
payload = {
'prompt': 'your text ',
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
Response
{
"code": 100000,
"result": {
"job_id": "your-job-id"
},
"message": {
"en": "Request Success."
}
}
Fetch Job
Request Url
--request GET https://developer.remaker.ai/api/remaker/v2/ai-tattoo/get-job/your-job-id
Body Attributes
Parameter | Description |
---|---|
job_id | job_id returned by create task |
demo
import requests
url = 'https://developer.remaker.ai/api/remaker/v2/ai-tattoo/get-job/your-job-id'
headers = {
'accept': 'application/json',
'Authorization': 'your token',
}
response = requests.get(url, headers=headers)
print(response.json()) # Print the response content
Response
{
"code": 100000,
"result": {
"output": [
"https://image.remaker.ai/datarm7/ai-tattoo/output/2024-12-30/your-output-image.png"
]
},
"message": {
"en": "Request Success."
}
}