- HTML/Vanilla JS
- Python (Soon)
- React/Axios (Soon)
To acquire a token, send an email to us at haghiri75@gmail.com and we'll reach out to you as soon as possible with a proposal and also the more detailed guide. Although we tried to make this part of the docs a very neat and understandable document for everyone, but we also may provide support for our B2B customers.
ENDPOINT : /verify_token
METHOD : POST
Using a curl command like this, you can verify that your token is valid or not.
curl -X POST -k -H 'Content-Type: application/json' -i 'https://galileo.manne.ir/verify_token' --data '{
"token": "manne-YOUR_TOKEN"
}'
The response from the server will be like this:
{
"message": "Your token is valid",
"name": "Mann-E"
}
ENDPOINT: /check_limit
METHOD: GET
using the following curl command, you'll find out how many images are left to create:
curl -X GET -H 'token: manne-YOUR_TOKEN' -i https://galileo.manne.ir/check_limit
and the response will be like:
{"remaining_limit":100}
ENDPOINT : /images
METHOD: POST
using the following curl command, you can create an image:
curl -X POST -k -H 'Content-Type: application/json' -H 'token: manne-YOUR_TOKEN' -i 'https://galileo.manne.ir/images' --data '{
"prompt" : "a young beautiful woman with orange hair, standing in front of a tree, analog photo",
"negative_prompt": "hands, arms",
"style" : "nostyle",
"ratio" : "1:1"
}'
And the result will be a json object like the following:
{
"prompt": "a young beautiful woman with orange hair, standing in front of a tree, analog photo",
"negative_prompt": "hands, arms",
"style": "nostyle",
"image": "BASE64_ENCODED_IMAGE"
"user": {
"id": 1,
"name": "Mann-E",
"token": "manne-YOUR_TOKEN",
"created_at": "2023-12-31T09:13:17.185Z",
"updated_at": "2023-12-31T09:13:17.196Z"
},
"width": 768,
"height": 768
}
prompt
is the prompt which can result in an image.negative_prompt
is like prompt, but the difference is what you put here won't be in the resulting image.style
is the style of the image. For more information please read Style Guide.ratio
is the height/weight ratio of the image. Currently1:1
(Square images),9:16
(Portrait) and16:9
(landscape) are supported.
200
: When the image is created successfully.400
: When your token is not valid.406
: When the prompt includes a filtered word (NSFW or otherwise)402
: When you reached your limits
ENDPOINT : /images
METHOD : GET
Using the following curl command, you can have a json array of all the images you have made.
curl -X GET -k -H 'token: manne-YOUR_TOKEN' -i 'https://galileo.manne.ir/images'
ENDPOINT : /images/:id
METHOD: GET
This is for a single image, and doesn't need a token. The curl request is like the following:
curl -X GET -k -i 'https://galileo.manne.ir/images/<IMAGE_ID>'
The response is identical to when you create an image.
For getting help and support, stay in contact with the support email/number we provide in our proposal.