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