ImageAI

부분 유료
분류별 LukaszF | 업데이트됨 hace 2 meses | Artificial Intelligence/Machine Learning
인기

6 / 10

지연 시간

2,062ms

서비스 수준

100%

Health Check

N/A

모든 자습서로 돌아가기 (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