Retrieve your PixVerse.ai account information (credits etc)

December 6, 2024

Table of contents

  1. Request Headers
  2. Query Parameters
  3. Responses
  4. Model
  5. Examples
  6. Try It

Retrieve your PixVerse.ai account information, see Setup PixVerse for details.

https://api.useapi.net/v2/pixverse/features/?…

Request Headers
Authorization: Bearer {API token}
Content-Type: application/json
Query Parameters
  • email is optional when only one account configured. However, if you have multiple accounts configured, this parameter becomes required.
Responses
  • 200 OK

    {
        "user_id": 11223344,
        "member_id": 5566778899,
        "product_id": 9988776655,
        "plan_name": "Pro Plan",
        "next_plan_name": "Pro Plan",
        "next_plan_type": 2,
        "current_plan_type": 2,
        "type": 0,
        "credit_daily": 30,
        "credit_daily_gift": 30,
        "initial_credit_gift": 0,
        "credit_monthly": 5600,
        "credit_monthly_gift": 6000,
        "credit_package": 20,
        "expired_date": "2025-01-01T21:21:21Z",
        "price": "30",
        "billing_period": 1,
        "next_billing_period": 1,
        "billing_renewal_date": "2025-01-01T21:21:21Z",
        "payment": 1,
        "invoice_url": "https://stripe.pay.pixverse.ai/...",
        "stripe_bill_url": "https://stripe.pay.pixverse.ai/...",
        "gen_simultaneously": 5,
        "allow_fast_mode": 1,
        "allow_relaxed_mode": 1,
        "allow_use_new_feat": 1,
        "allow_private_generate": 1,
        "remove_watermark": 1,
        "allow_purchase_credit": 1,
        "sub_order_in_progress": 0,
        "allow_effect": 1
    }
    
  • 400 Bad Request

    {
        "error": "<Error message>",
        "code": 400
    }
    
  • 401 Unauthorized

    {
      "error": "Unauthorized",
      "code": 401
    }
    
Model
{ // TypeScript, all fields are optional
    user_id: number
    member_id: number
    product_id: number
    plan_name: string
    next_plan_name: string
    next_plan_type: number
    current_plan_type: number
    type: number
    credit_daily: number
    credit_daily_gift: number
    initial_credit_gift: number
    credit_monthly: number
    credit_monthly_gift: number
    credit_package: number
    expired_date: string
    price: string
    billing_period: number
    next_billing_period: number
    billing_renewal_date: string
    payment: number
    invoice_url: string
    stripe_bill_url: string
    gen_simultaneously: number
    allow_fast_mode: number
    allow_relaxed_mode: number
    allow_use_new_feat: number
    allow_private_generate: number
    remove_watermark: number
    allow_purchase_credit: number
    sub_order_in_progress: number
    allow_effect: number
}
Examples
  • curl "https://api.useapi.net/v2/pixverse/features/?email=email" \
       -H "Accept: application/json" \
       -H "Authorization: Bearer …" 
    
  • const token = "API token";
    const email= "Previously configured account email"; 
    const apiUrl = `https://api.useapi.net/v2/pixverse/features/?email=${email}`; 
    const response = await fetch(apiUrl, {
      headers: {
        "Authorization": `Bearer ${token}`,
      },
    });
    const result = await response.json();
    console.log("response", {response, result});
    
  • import requests
    token = "API token"
    email= "Previously configured account email"
    apiUrl = f"https://api.useapi.net/v2/pixverse/features/?email={email}"
    headers = {
        "Content-Type": "application/json", 
        "Authorization" : f"Bearer {token}"
    }
    response = requests.get(apiUrl, headers=headers)
    print(response, response.json())
    
Try It