ImageAI

GRATIS CON POSSIBILITÀ DI UPGRADE
Da LukaszF | Aggiornamento il y a 2 mois | Artificial Intelligence/Machine Learning
Popolarità

6 / 10

Latenza

2,062ms

Livello di servizio

100%

Health Check

N/A

Torna a tutti i tutorial (2)

Create user - > get user token

Step 1: User Registration

To get started, follow these simple steps to register a new user:

Endpoint: /register

Request:
{
“email”: “Your_email@.com”,
“password”: “Your_password123.”
}

Step 2: User Login

Once registered, use the login endpoint to obtain an access token and refresh token:

Endpoint: /login

Request:
{
“email”: “Your_email@.com”,
“password”: “Your_password123.”
}

Response:
{
“tokenType”: “Bearer”,
“accessToken”: “your_access_token”,
“expiresIn”: 3600,
“refreshToken”: “your_refresh_token”
}

Refresh Token
A refresh token is a special credential that, when used, allows you to obtain a new access token without requiring the user to log in again. It enhances security by reducing the frequency of logins and ensures uninterrupted access to your resources.

Refresh tokens are available in our "MEGA"and “ULTRA” plan, providing extended capabilities and features beyond the basic offering. Upgrade to the “MEGA” or “ULTRA” plan for enhanced security and a seamless user experience.

Endpoint: /refresh
Request:
{
“refreshToken”: “striyour_refresh_tokenn”
}

Step 3: Accessing Image Endpoints

Now that you have the access_token, use it to call image-related endpoints (next tutorial:):

  • /Image
  • /Image/txt2img