Skip to main content

AILabTools API - Querying credits - API

Request

  • URL: https://www.ailabapi.com/api/common/query-credits
  • Method: GET
FieldRequiredTypeDescription
ailabapi-api-keyYESstringApplication API KEY.

Response

Public Parameters

Viewing Public Parameters and Error Codes

Business Parameters

FieldTypeScopeDescription
dataarray
+unique_signstringScopeUnique identification. View Details
+namestringName.
+balancefloatCredit Balance.
+totalfloatTotal Credits.
+last_recharge_balancefloatBalance after last purchase.
+balance_warningfloatCredit Balance Early Warning Value.
+first_buy_timeintegerTime of first purchase.
+last_update_timeintegerLast update time.

unique_sign

CategoryAPI NameUnique identification
Image EnhancementImage Dehazeimage_dehazing
Image Upscalerimage_lossless_enlargement
Stretched Image Restorationimage_distortion_correction
Image sharpness enhancementimage_clarity_enhancement
Image contrast enhancementimage_contrast_enhancement
Image color enhancementimage_color_enhancement
Image EffectsAI Cartoon Generatorimage_ai_cartoon_generator
AI Photo Colorizeimage_coloring
Photo to Paintingimage_style_transfer
Style transferimage_style_migration
Color Migrationimage_color_migration
HD color migrationimage_hd_color_migration
Image Micro Motionimage_micro_motion
Image EditingAI Image croppingimage_cropping
Intelligent Compositionimage_intelligent_composition
Photo retouchimage_photo_editing
Image Invisible Picture Watermarkimage_invisible_image_watermark
Image Invisible Text Watermarkimage_invisible_text_watermark
Image Erasureimage_erasure
Image scoringImage composition aesthetics scoreimage_composition_aesthetics_rating
Image exposure scoreimage_exposure_rating

Example

{
"error_code": 0,
"error_code_str": "",
"error_msg": "",
"error_detail": {
"status_code": 200,
"code": "",
"code_message": "",
"message": ""
},
"data": [
{
"unique_sign": "",
"name": "",
"balance": 0,
"total": 0,
"last_recharge_balance": 0,
"balance_warning": 0,
"first_buy_time": 0,
"last_update_time": 0
}
]
}

Code example