Retrieve Kling API accounts configuration
April 18, 2025
Table of contents
For your convenience, you can specify your Kling configuration values under your Kling account. If you specify multiple Kling accounts, the API will automatically perform load balancing by randomly selecting an account with available capacity before making calls to Kling.
This endpoint retrieves the complete list of configured API accounts for Kling.
https://api.useapi.net/v1/kling/accounts
Request Headers
Authorization: Bearer {API token}
Content-Type: application/json
# Alternatively you can use multipart/form-data
# Content-Type: multipart/form-data
API token
is required, see Setup useapi.net for details.
Responses
-
{ "<email #1>": { "email": "<email #1>", "session": { "userId": "user12345", "ExpireTime": 123456789, "ExpireTimeUTC": "2025-01-01T12:13:14.000Z" }, "maxJobs": 8, "password": "…secured…" }, "<email #2>": { "email": "<email #2>", "session": { "userId": "user67890", "ExpireTime": 123456789, "ExpireTimeUTC": "2025-01-01T12:13:14.000Z" }, "maxJobs": 3, "password": "…secured…" } }
-
{ "error": "Unauthorized", "code": 401 }
-
Configuration not found. To create configuration use POST /accounts.
Model
{ // TypeScript, all fields are optional
[email: string]: {
email: string
session: {
userId: string
ExpireTime: number
ExpireTimeUTC: string
}
maxJobs: number
password: string
}
}
Examples
-
curl https://api.useapi.net/v1/kling/accounts \ -H "Accept: application/json" \ -H "Authorization: Bearer …"
-
const token = "API token"; const apiUrl = "https://api.useapi.net/v1/kling/accounts"; const response = await fetch(apiUrl, { headers: { "Authorization": `Bearer ${token}`, }, }); const result = await response.json(); console.log("response", {response, result});
-
import requests token = "API token" apiUrl = "https://api.useapi.net/v1/kling/accounts" headers = { "Content-Type": "application/json", "Authorization" : f"Bearer {token}" } response = requests.get(apiUrl, headers=headers) print(response, response.json())